|
-
Jul 9th, 2001, 06:04 PM
#1
Thread Starter
Lively Member
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?
-
Jul 10th, 2001, 02:44 AM
#2
Monday Morning Lunatic
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
-
Jul 10th, 2001, 06:24 AM
#3
Thread Starter
Lively Member
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)
-
Jul 10th, 2001, 04:35 PM
#4
Monday Morning Lunatic
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
-
Jul 10th, 2001, 04:56 PM
#5
Thread Starter
Lively Member
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
-
Jul 10th, 2001, 05:06 PM
#6
Monday Morning Lunatic
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|