Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Error Compiling Gina

Error Compiling Gina

Scheduled Pinned Locked Moved C / C++ / MFC
helpvisual-studiodebuggingquestionworkspace
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sunit5
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • S sunit5

      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

      S Offline
      S Offline
      sunit5
      wrote on last edited by
      #2

      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.exp

      gina.dll - 0 error(s), 0 warning(s)**

      -- modified at 2:42 Thursday 8th December, 2005

      K 1 Reply Last reply
      0
      • S sunit5

        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.exp

        gina.dll - 0 error(s), 0 warning(s)**

        -- modified at 2:42 Thursday 8th December, 2005

        K Offline
        K Offline
        kakan
        wrote on last edited by
        #3

        :confused: "gina.dll - 0 error(s), 0 warning(s)" What errors and warnings do you get when you compile your version? Kakan

        S 1 Reply Last reply
        0
        • K kakan

          :confused: "gina.dll - 0 error(s), 0 warning(s)" What errors and warnings do you get when you compile your version? Kakan

          S Offline
          S Offline
          sunit5
          wrote on last edited by
          #4

          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

          K 1 Reply Last reply
          0
          • S sunit5

            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

            K Offline
            K Offline
            kakan
            wrote on last edited by
            #5

            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

            S 1 Reply Last reply
            0
            • K kakan

              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

              S Offline
              S Offline
              sunit5
              wrote on last edited by
              #6

              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

              B 1 Reply Last reply
              0
              • S sunit5

                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

                B Offline
                B Offline
                BlackDice
                wrote on last edited by
                #7

                can't you just **#define** UNICODE? My articles BlackDice

                S 1 Reply Last reply
                0
                • B BlackDice

                  can't you just **#define** UNICODE? My articles BlackDice

                  S Offline
                  S Offline
                  sunit5
                  wrote on last edited by
                  #8

                  yeah thanx for knocking my head.

                  K 1 Reply Last reply
                  0
                  • S sunit5

                    yeah thanx for knocking my head.

                    K Offline
                    K Offline
                    kakan
                    wrote on last edited by
                    #9

                    Good morning. If you look at the original makefile, they define UNICODE in two ways. See this: -DUNICODE -D_UNICODE So I think you will have to define both UNICODE and _UNICODE Kakan

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups