Error Compiling Gina
-
I got a Democode (publish by Microsoft) to replace msgina.dll. I open it in a new IDE,I found the compile option is disabled so to create the DLL I use Rebuild and it created DLL without any error.What I understood that it is a Make file. After Rebuilt I found that all the .obj files are created outside the Debug Folder. I copied the completed code into a new Workspace in Win32 Application Dll (choosing empty project option).Now it is showing me error and warnings I am not understanding what is the problem. Pls Help me Thanx in advance
-
I got a Democode (publish by Microsoft) to replace msgina.dll. I open it in a new IDE,I found the compile option is disabled so to create the DLL I use Rebuild and it created DLL without any error.What I understood that it is a Make file. After Rebuilt I found that all the .obj files are created outside the Debug Folder. I copied the completed code into a new Workspace in Win32 Application Dll (choosing empty project option).Now it is showing me error and warnings I am not understanding what is the problem. Pls Help me Thanx in advance
This the output of the Democode.From the output what I understood related Unicode.But Still I am confused.Pls help me
**Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. gina.c
gina.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. debug.c
debug.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. welcome.c
welcome.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. shutdown.c
shutdown.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. options.c
options.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. logon.c
logon.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. util.c
util.c
rc -r -fo gina.res res.rc
link /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO -entry:_DllMainCRTStartup@12 -dll -ignore:4078 -subsystem:native,4.0 -def:gina.def -out:gina.dll gina.obj debug.obj welcome.obj shutdown
.obj options.obj logon.obj util.obj gina.res msvcrt.lib oldnames.lib kernel32.lib ws2_32.lib mswsock.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib comctl32.lib
Creating library gina.lib and object gina.expgina.dll - 0 error(s), 0 warning(s)**
-- modified at 2:42 Thursday 8th December, 2005
-
This the output of the Democode.From the output what I understood related Unicode.But Still I am confused.Pls help me
**Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. gina.c
gina.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. debug.c
debug.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. welcome.c
welcome.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. shutdown.c
shutdown.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. options.c
options.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. logon.c
logon.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. util.c
util.c
rc -r -fo gina.res res.rc
link /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO -entry:_DllMainCRTStartup@12 -dll -ignore:4078 -subsystem:native,4.0 -def:gina.def -out:gina.dll gina.obj debug.obj welcome.obj shutdown
.obj options.obj logon.obj util.obj gina.res msvcrt.lib oldnames.lib kernel32.lib ws2_32.lib mswsock.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib comctl32.lib
Creating library gina.lib and object gina.expgina.dll - 0 error(s), 0 warning(s)**
-- modified at 2:42 Thursday 8th December, 2005
-
:confused: "gina.dll - 0 error(s), 0 warning(s)" What errors and warnings do you get when you compile your version? Kakan
the above output is of Democode which build without any error but when i copy the same project in new Workspace (Win32 Dynamic link Library) then it shows error
Compiling...
SHUTDOWN.C
e:\gina\shutdown.c(21) : error C2053: 'szShutdownSettingPath' : wide string mismatch
e:\gina\shutdown.c(48) : warning C4133: 'function' : incompatible types - from 'unsigned short []' to 'const char *'
e:\gina\shutdown.c(142) : warning C4133: 'function' : incompatible types - from 'unsigned short []' to 'const char *'
GINA.C
E:\gina\GINA.C(186) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
E:\gina\GINA.C(234) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
E:\gina\GINA.C(295) : warning C4133: 'function' : incompatible types - from 'unsigned short [260]' to 'char *'
E:\gina\GINA.C(299) : warning C4133: 'function' : incompatible types - from 'char [2]' to 'const unsigned short *'
E:\gina\GINA.C(304) : warning C4133: '=' : incompatible types - from 'unsigned short *' to 'char *'
E:\gina\GINA.C(310) : warning C4133: '=' : incompatible types - from 'unsigned short *' to 'char *'
E:\gina\GINA.C(318) : warning C4133: 'function' : incompatible types - from 'unsigned short *' to 'char *'
E:\gina\GINA.C(335) : warning C4133: 'function' : incompatible types - from 'char [2]' to 'const unsigned short *'
E:\gina\GINA.C(371) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
E:\gina\GINA.C(426) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
LOGON.C
E:\gina\LOGON.C(24) : error C2053: 'szMiniKey' : wide string mismatch
E:\gina\LOGON.C(32) : warning C4133: 'initializing' : incompatible types - from 'char [7]' to 'unsigned short *'
E:\gina\LOGON.C(32) : warning C4133: 'initializing' : incompatible types - from 'char [15]' to 'unsigned short *'
E:\gina\LOGON.C(32) : warning C4133: 'initializing' : incompatible types - from 'char [7]' to 'unsigned short *'
E:\gina\LOGON.C(32) : warning C4133: 'initializing' : incompatible types - from 'char [5]' to 'unsigned short *'
E:\gina\LOGON.C(33) : warning C4133: 'initializing' : incompatible types - from 'char [6]' to 'unsigned short *'
E:\gina\LOGON.C(33) : warning C4133: 'initializing' : incompatible types - from 'char [8]' to 'unsigned short *'
E:\gina\LOGON.C(33) : warning C4133: 'initializing' : incompatible types - from 'char [6]' to 'unsigned short *'
E:\gina\LOGON.C(33) : warning C4133: 'initializing' : incompatible t -
the above output is of Democode which build without any error but when i copy the same project in new Workspace (Win32 Dynamic link Library) then it shows error
Compiling...
SHUTDOWN.C
e:\gina\shutdown.c(21) : error C2053: 'szShutdownSettingPath' : wide string mismatch
e:\gina\shutdown.c(48) : warning C4133: 'function' : incompatible types - from 'unsigned short []' to 'const char *'
e:\gina\shutdown.c(142) : warning C4133: 'function' : incompatible types - from 'unsigned short []' to 'const char *'
GINA.C
E:\gina\GINA.C(186) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
E:\gina\GINA.C(234) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
E:\gina\GINA.C(295) : warning C4133: 'function' : incompatible types - from 'unsigned short [260]' to 'char *'
E:\gina\GINA.C(299) : warning C4133: 'function' : incompatible types - from 'char [2]' to 'const unsigned short *'
E:\gina\GINA.C(304) : warning C4133: '=' : incompatible types - from 'unsigned short *' to 'char *'
E:\gina\GINA.C(310) : warning C4133: '=' : incompatible types - from 'unsigned short *' to 'char *'
E:\gina\GINA.C(318) : warning C4133: 'function' : incompatible types - from 'unsigned short *' to 'char *'
E:\gina\GINA.C(335) : warning C4133: 'function' : incompatible types - from 'char [2]' to 'const unsigned short *'
E:\gina\GINA.C(371) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
E:\gina\GINA.C(426) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
LOGON.C
E:\gina\LOGON.C(24) : error C2053: 'szMiniKey' : wide string mismatch
E:\gina\LOGON.C(32) : warning C4133: 'initializing' : incompatible types - from 'char [7]' to 'unsigned short *'
E:\gina\LOGON.C(32) : warning C4133: 'initializing' : incompatible types - from 'char [15]' to 'unsigned short *'
E:\gina\LOGON.C(32) : warning C4133: 'initializing' : incompatible types - from 'char [7]' to 'unsigned short *'
E:\gina\LOGON.C(32) : warning C4133: 'initializing' : incompatible types - from 'char [5]' to 'unsigned short *'
E:\gina\LOGON.C(33) : warning C4133: 'initializing' : incompatible types - from 'char [6]' to 'unsigned short *'
E:\gina\LOGON.C(33) : warning C4133: 'initializing' : incompatible types - from 'char [8]' to 'unsigned short *'
E:\gina\LOGON.C(33) : warning C4133: 'initializing' : incompatible types - from 'char [6]' to 'unsigned short *'
E:\gina\LOGON.C(33) : warning C4133: 'initializing' : incompatible t -
Hello again, I'm sorry for the delay. As far as I can see, it's definately worth trying to build a unicode version. Then most (and probably all) warnings and errors will disappear. But you knew that already, right? Kakan
-
Sorry for the delay from my side too Pls tell me how to build in unicode version.What settings I have to do to build in unicode
can't you just
**#define** UNICODE?
My articles BlackDice -
can't you just
**#define** UNICODE?
My articles BlackDice