Results 1 to 2 of 2

Thread: Unresolved Externals

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222

    Angry Unresolved Externals

    Hello

    I'm having probs linking a dll with my app, it keep son giving me unresolved externals:

    Compiling...
    authenticate32.cpp
    Linking...
    authenticate32.obj : error LNK2001: unresolved external symbol __chkesp
    LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
    Debug/authenticate32.exe : fatal error LNK1120: 2 unresolved externals
    Error executing link.exe.

    authenticate32.exe - 3 error(s), 0 warning(s)



    I don't know where to begin to solve them, I was hoping some one could give me guidance or advice on where to start.

    Heres a link to the project files:
    http://www.uea.ac.uk/~u9945296/authenticate32.zip

    its a main project with the dll in the sub folder.

    cheers for any advice

    Andy

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    It doesn't include the CRT libraries. Unselect "Link -> Ignore all default libraries."

    On your code: are you porting a 16-bit app?

    FAR and PASCAL are only used for compatibility. You should either use STDCALL like with WinMain and WndProc or CALLBACK.

    hPrevInstance is always NULL in Win32. No exception.

    Although it's exactly the same, you usually use UINT as second parameter to wndprocs and dlgprocs.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width