Results 1 to 6 of 6

Thread: Program Entry Point in Win32 DLL

  1. #1

    Thread Starter
    Lively Member ExciteMouse's Avatar
    Join Date
    Jul 2000
    Location
    Dallas, TX
    Posts
    78

    Program Entry Point in Win32 DLL

    How do you access the `program entry point` to a DLL ?

    i thought:
    BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved);

    was it, but its not, thats just the start of the code. the "pep" is something else.

    can anyone explain?

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    It's something like _DllMainCRTStartup I think you can just supply a new one and the linker will take that rather than the predefined one.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Lively Member ExciteMouse's Avatar
    Join Date
    Jul 2000
    Location
    Dallas, TX
    Posts
    78
    woah.. thats odd that you brought that call up, cause another project i am working on gives me this error when i link:


    Linking...
    Microsoft (R) Incremental Linker Version 5.12.8181
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

    Creating library DskTopHk1.lib and object DskTopHk1.exp
    LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
    DskTopHk1.dll : fatal error LNK1120: 1 unresolved externals

    Link Finished - 2 error(s), 0 warning(s)

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Just seen your sig...you must be crusin' for a bruisin' showing that around

    As for your link error...never had a problem with that before
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Lively Member ExciteMouse's Avatar
    Join Date
    Jul 2000
    Location
    Dallas, TX
    Posts
    78

    Wink haha!

    haha, yes, i get more crap for that. Oh well. All the apps i work on at my job were created with MFC by other people, not my fault

    anyways, this isnt a problem with Visual C++, its a problem with a Masm project. but its all the same linker tools and whatnot.
    imma keep tryin!

    thanks

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Ah. The reason it's a problem with MASM is that you must implement that yourself, the CRT normally has it instead.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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