I'm using VS 6, Windows 2003.
Code:
hLayerFile = CreateFile("ltmp.dat", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
I get this error:
Code:
error C2440: '=' : cannot convert from 'void *' to 'struct HWND__ *'
When I hover the mouse over the CreateFile() function, it gives a weird declaration of it.
Code:
void *__cdecl CreateFile(unsigned short *, unsigned long, unsigned long, _SECURITY_ATTRIBUTES *, unsigned long, unsigned long, void *);
Did I miss something? What happened to CreateFile?
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:
Code:
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
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.