Ather.'s Q&A profile
Visual C++ Problem with "PlaySound" function ????? -platform SDK-
i am using the PlaySound function -Platform SDK: Windows Multimedia- to play .wav files, the problem is i need to know when this function finish playing the sound file and F.Y.I. when (fdwSound) parameter is set to SND_ASYNC "asynchronously", the function return immediately after beginning the sound. also when (fdwSound) parameter is set to SND_SYNC "Synchronous", the function wait till it end the file playing and then return i want to know : 1 - when the function finished playing the file if the (fdwSound)param. is SND_ASYNC 2 - OR how can i stop playing the file if the (fdwSound)param. is SND_SYNC thnx alot 4 ur time and concern !! Hi, I think you must calculate the time of your wave file to get when ...Show All
Windows Search Technologies Defining file locations to be indexed in WDS 3
I’m having several problem defining file locations to be searched. These problems seem to have appeared since I upgraded to WDS v3. I have reinstalled it twice. I have wholly deleted it and reinstalled once. I’m running XP Home SP2. I tend to run programs hygienically – generally as a limited account (user), and the user’s files are set “private” (though I have taken this off, and it appears to make no difference.) Problems: The documentation talks of the WDS Options having a “General” tab. I don’t get one. I just get a single window called “Indexing Options”. Maybe this is just a documentation error, because the same happens in the Admin account. When in the Admin account, the indexing option offers C: ...Show All
Visual Studio Team System Unlike Mercury Loadrunner, "value" null, "error", null displayed in web browser
Using LoadRunner, copied the body of the request into a form parameter and parameterised the values. Upon running the web test, instead of the next page appearing,the following are displayed on the web browser section of the results. "value" null, "error", null I looked at the context of the response and realised that the correct values of the form parameters were returned. However the body of the response displayed {{"value" null, "error", null }} and hence cannot make progress with scripting Hi Ed, The script is meant to replay the javascript actions like submitting buttons and check boxes on a pop up window. Unfortunately that does not occur 2162 ...Show All
Smart Device Development x509Certificate.CreateFromSignedFile(filename) member missing in CF 2.0
Hi, I want to read the certificate from an assembly into a byte array and pass it to the x509Certificate constructor in CF 2.0. How do I do it Open the assembly as a binary file and parse it Thanks, Suat ...Show All
SQL Server ORDER BY, only orders by the first character?
Hi, I am using a stored procedure that is databound to a dropdownlist. The stored procedure works fine, aside from the fact that the ORDER BY only sorts the list of items using the first character in the cell. E.g. The numbers 1, 20, 100 and 200 would be ordered as follows: 1 100 20 200 clearly i am doing something wrong and i apologise if it is a stupid question, but could anyone please offer me some help Thank you, Shep Thank you for your reply lkd, however i am still having trouble: When I try the above code i get the error message 'TABLE NOT SUPPORTED BY THIS EDITOR' I am using Visual Web Developer 2005 Express Edition, could this be the problem Shep ...Show All
SQL Server Shrinking the Log file on a DB that is mirrored
Hello, I'm having couple of DB that are mirrored. my concerne is regarding the Log file size. I'm running the following steps: BACKUP DATABASE [DBName] TO DISK = N'Backup_File' WITH NOFORMAT, INIT, SKIP, NOREWIND, NOUNLOAD, STATS = 10 then BACKUP LOG [DBName] TO DISK = N'Backup_File' WITH NOFORMAT, NOINIT, SKIP, NOREWIND, NOUNLOAD, STATS = 10 if I try to run a SHRINKFILE (DBName_log, 20) I receive the following info: Cannot shrink log file 2 (DBName_log) because all logical log files are in use I'n a bit tense using a BACKUP LOG [DBName] WITH TRUNCATE_ONLY as it's part of a mirroring. but I need to reduce the size of the log file. thank four your suggestions Eric ...Show All
Internet Explorer Development IE 7 / Vista - Legacy Mode
Does anyone know if the final release of Windows Vista will include the ability to run IE in a "Legacy Mode", i.e. running IE 6 in Vista We have many ERP applications that are unsupported on IE7 and we are looking to determine the impacts of upgrading. Any information on this would be greatly appreciated. Thanks for your help, Lance. Our specific issue to date is surrounding Siebel Application, which has heavy contingency on MS IE (lots of activex components). It would be nice if there were a "self contained" browser solution that would resolve this issue. Zero-footprint web applications that use MS IE and activex are a paradox. Thanks Again. ...Show All
Microsoft ISV Community Center Forums Completly Lost with Data Validation Code
I am trying to write a small script which will allow for multiple choices to be selected from a dropdown list, but for ONLY the dropdown list to accept input (ie data protection). I had asked for help before, and the nice people at Contextures sent me to their site to download one of their spreadsheets (dv0017 http://www.contextures.com/excelfiles.html). I have been looking at the code, and I am clearly in over my head. The code is below. Private Sub Worksheet_Change(ByVal Target As Range) Dim rngDV As Range Dim oldVal As String Dim newVal As String 'I think this means that if there is more than one cell selected, then exit If Target.Count > 1 Then GoTo exitHandler On Error Resume Next 'Absolutely no clue here. I have read a few di ...Show All
Visual Studio 2008 (Pre-release) Relationship between Viewport3D and GeometryModel3D?
I use Viewport3D in my WPF application. I use VisualBrush for the Material of the Model3D.I want the appearance of the 3D model the same size as my actual window(which the VisualBrush is from), and I want to control the size of the appearance at runtime time according to my actual window. I don't know how to transform the Camera(PerspectiveCamera), or the GeometryModel3D, or the Viewport to let the perspective on the ViewPort3D to be the same size as my actual window And what is the relationship between the Viewport3D and the GeometryModel3D in it Thank you very much, Is the ViewPort3D is exactly what we see on the screen or there is another transfrom between ViewPort3D to Screen I don't ...Show All
Smart Device Development JPG image loading and rotation on Pocket PC 2003
I have developed an app on PocketPC 2003 using VS2005. This application interfaces with a camera and retrieves JPG images from the camera. The app displays the images as thumbnails and allows the user to click the thumbnail to get the full size picture in a scrollable window. This all works fine, however loading the JPG is slow and rotation (the way I am doing it blows out the memory, no leaks that I can find. Image size: 2048(w) X 1536(h)). I am using imgdecmp library to load the JPG image to a DDB bitmap, and implement rotation by converting the DDB to a source DIB, then creating a destination DIB with rotated dimensions, then copy the source DIB to the dest. DIB, one pixel line at a time (very time consuming). When I use the Pict ...Show All
Visual C++ _CRT_SECURE_NO_DEPRECATE problem
I ported my project from Visual Studio 6.0 to Visual Studio 2005.I was able to compile perfectly in debug mode using the _CRT_SECURE_NO_DEPRECATE definition. Unfortunately when i ran it in release mode i got many errors like this: Error 5 error C2664: 'strcpy' : cannot convert parameter 1 from 'TCHAR [260]' to 'char *' When i didn't use the _CRT_SECURE_NO_DEPRECATE definition then the above was a warning in debug mode but these dissapeared after i inserted that definition. I put this definition in the Project Properties->Configuration Properties->PreProcessor->Preprocessor Definitions. My preprocessor options are the following: WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRE ...Show All
SQL Server Value and Date filter in Excel 2007
Hi, I am developing reports in Excel 2007 connecting to Analysis services cube. I have the following scenario Report has one Date attribute and a metric. When i apply Date filter option and value filter in Excel 2007 only one is applied to the data. Ex: If i apply date filter on Date attribute date between 1/1/2007 and 1/2/2007, data is filtered out properly but when i apply value filter i.e. metric > 100 ..... Date filter will be lost. Is there a way i can apply both filters Thanks Kiran Hi All There is an Option " ALLOW MULTIPLE FILTES PER FIELD " in pivot table options. Please check the same and you can do multiple filtes. Thankyou reddy ...Show All
Visual Studio SQL Server 2000 and SQL Server 2005 on same machine?
Hi, Can I install SQL Server 2000 and SQL Server 2005 on same machine Thank's Alexei ...Show All
Visual Studio Express Editions Another Problem
Hi, I was wondering if there is anyway to turn a huge amount of code into a simple function. Right now I have a bunch of check boxes and they are all named C1-C7 and W1-W7, instead of putting in code for each one when clicked, which results in a large amount of code, is there anyway I could make one function to handle all of these. I tried something like this. If C(num).checked=true then W(num).checked=false endif its just a basic example of what i want and i could really use this later on. Thanks I don't know if this is any shorter but it is more compact. I assume that you are toggleing between the two sets of check boxes. Private Sub c1_CheckedChanged(ByVal sender As ...Show All
SQL Server SQL Express edition upgrade
Hello. I want to Upgrade my database that is in SQL server Express Edition to SQL server 2005 standard. I am using Report server. So my question is, is there something I should do before I make the upgrade or it is a clean upgrade (meaning: only following wizard instructions). Thanks. The upgrade is pretty straight forward, the install program for standard should ask you what instance you would like to upgrade. If you select the express instance it should go through fine. If you already have the server installed the easiest way would be to just backup the database on the express system and restore it to a new database on the new server. Doing this the server will also perform some checks ...Show All
