Hello.
I am using MSVC++6 with Win98SE and I still can't get it working despite having followed all material I can get my hands on...
If I give you all the information about my set-up that I have perhaps someone could spot the problem!
I have my unicows.lib in VC98/Lib
unicows.dll in the project directory under \Debug
In the Project settings.
Under the C/C++ tab the preprocessor defintions are:
WIN32, _DEBUG, UNICODE, _UNICODE, _WINDOWS, _MBCS, DEBUG
and the project options are:
/nologo /MLd /W3 /GX /0d /D /"WIN32" /D"_DEBUG" /D /Fp"Debug\Animation Entity.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
Under the link tab the object/library modules are:
unicows.lib kernel32.lib advapi32.lib user32.lib gdi32.lib shell32.lib comdlg32.lib version.lib mpr.lib rasapi32.lib winmm.lib winspool.lib vfw32.lib secur32.lib oleacc.lib oledlg.lib sensapi.lib strmbasd.lib strmiids.lib d3dx9.lib d3d9.lib dxerr9.lib
And the project options are:
unicows.lib kernel32.lib advapi32.lib user32.lib gdi32.lib shell32.lib comdlg32.lib version.lib mpr.lib rasapi32.lib winmm.lib winspool.lib vfw32.lib secur32.lib oleacc.lib oledlg.lib sensapi.lib strmbasd.lib strmiids.lib d3dx9.lib d3d9.lib dxerr9.lib /nologo /subsystem:windows /incremental:yes /pdb:"Debug\Animation Entity.pdb" /debug /machine:I386 /nodefaultlib:unicows.lib /nodefaultlib:kernel32.lib /nodefaultlib:advapi32.lib /nodefaultlib:user32.lib /nodefaultlib:gdi32.lib /nodefaultlib:shell32.lib /nodefaultlib:comdlg32.lib /nodefaultlib:version.lib /nodefaultlib:mpr.lib /nodefaultlib:rasapi32.lib /nodefaultlib:winmm.lib /nodefaultlib:winspool.lib /nodefaultlib:vfw32.lib /nodefaultlib:secur32.lib /nodefaultlib:oleacc.lib /nodefaultlib:oledlg.lib /nodefaultlib:sensapi.lib /out:"Debug\Animation Entity.exe" /pdbtype:sept
'Generate debug info' and 'Link incrementally' and both checked.
I thought that this would work but I still get the error 120 from the following code:
WNDCLASSEX wc = {sizeof(WNDCLASSEX),
CS_CLASSDC,
0L,
0L,
hInstance,
NULL,
NULL,
NULL,
NULL,
L"Star Chart",
NULL};
RegisterClassEx(&wc);
SetLastError(0);
WCHAR error[80];
swprintf(error, L"Error Code: %i", GetLastError());
MessageBox(0, error, L"Error Code", 0);
Does anyone have any ideas? I am pulling my hair out over this!
Mark Coleman