RE: [OT] - Help with routine name in .dll

new topic     » goto parent     » topic index » view thread      » older message » newer message

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
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu