Solved

Error message using CreateFile!

Posted on 1998-12-11
2
449 Views
Last Modified: 2013-12-03

I need load my dynamic vxd , use CreateFile and DeviceIOControl, but I have a error message.
The CreateFile function return -1 and the GetLastError function return 50...

what`s up??
is my vxd make incorrectly??

I use dgbTerm (of TechSoft company).  In the dbgTerm Window I see any messages of the Out_Debug_String function that I
write under my vxd.

what can i do??

Thanks for all!
0
Comment
Question by:hpyam
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1417102
Error 50 means ERROR_NOT_SUPPORTED. Are you trying to load a VXD in WinNT? If so, NT does not support VXDs. Instead, you will have to write a kernel driver.

Make sure you are doing this in Windows 3.1x/95/98.
0
 

Author Comment

by:hpyam
ID: 1417103
I use WIN95
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video discusses moving either the default database or any database to a new volume.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now