Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MCI problems in Win2k
Message
From
04/12/2001 18:26:21
 
 
To
04/12/2001 17:45:33
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00589552
Message ID:
00589565
Views:
24
>Hello All,
>
>I have an app that uses the Windows API MCI commands to play a wave and avi files. The calls work fine under Win9X however I am getting error messages when run under Win2K. Any comments would be appreciated.

With no code and no error messages, it's difficult to do.

If it returns a value (typically a 0) to indicate failure, and you need to get the failure code, you must declare the following before making the API Cal
DECLARE INTEGER GetLastError IN WIN32API
*
*  Make your call, return result to nResult, eg:
*    nResult = MyAPICall(<i>foor, bar, mumble, bletch</i>)
*
IF nResult = 0
   WAIT WINDOW 'ERROR ' + TRANSFORM(GetLastError())
ENDIF
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform