Solved

Error message using CreateFile!

Posted on 1998-12-11
2
461 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

626 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