RE: [OT] - Help with routine name in .dll
- Posted by Jonas Temple <jtemple at yhti.net> Jun 23, 2003
- 653 views
Matt/Pete, Thanks for the help! Matt, "_cwbUN_DisplayCommandPrompter@20" was the actual exported name. I'll definitely get Dependency Walker! Now a follow-up question. I'm getting the command prompter as expected but when I close the dialog I'm getting a machine error on the function call. Is there anything in the following C declaration that might cause this? --CWBAPI unsigned int WINAPI cwbUN_DisplayCommandPrompter( -- cwbCO_SysHandle systemHandle, -- UINT promptFlags, -- LPSTR commandString, -- UINT * dateFormat, -- BOOL * batchCommand); TIA, Jonas Matt Lewis wrote: > Not sure what __imp_ means, but I'd try _cwbUN_DisplayCommandPrompter@20 > first. That's a standard 'extern c' name decoration (add an underscore > and > the sum of the bytes for all the arguments that the func takes). If > that > doesn't work, try the other one. > > Do you have Dependency Walker (http://www.dependencywalker.com)? It's > great > for looking at a dll's exports. > > Matt Lewis >