I'm using VS 6, Windows 2003.
I get this error:Code:hLayerFile = CreateFile("ltmp.dat", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
When I hover the mouse over the CreateFile() function, it gives a weird declaration of it.Code:error C2440: '=' : cannot convert from 'void *' to 'struct HWND__ *'
Did I miss something? What happened to CreateFile?Code:void *__cdecl CreateFile(unsigned short *, unsigned long, unsigned long, _SECURITY_ATTRIBUTES *, unsigned long, unsigned long, void *);
More on my project, as I have a feeling it has something to do with the error. I'm writing a dll plugin for a program. Here's the top part of driver.cpp:
Any ideas on what I should do? I created a new Win32 Dynamic-Link Library project and started coding. I'm having no other (known)errors other than the few CreateFile() calls. Thanks for help.Code:#define WIN32_LEAN_AND_MEAN #include <windows.h>



LinkBack URL
About LinkBacks


