Re: Converting .lib to .dll



On 2008-06-18 16:08:03 +0100, "Andy Baker" <abaker@xxxxxxxxxxxxxxxxxx> said:

is there a way of
seeing what functions are contained in the sdccf10g.dll file

Copy the DLL off the device onto your development PC. Open a Visual Studio Command Prompt. Change the folder where you copied the DLL and issue the following command:

dumpbin /exports sdccf10g.dll

This will list the functions exported by the DLL. Check that these are the same as the functions listed in the header file. If so, then that's the DLL you need to reference in your P/Invoke prototypes.

If you're *really* stuck, email me directly (remove the '[nospam]' tokens from my alias) and we can help.

--
Neil Cowburn MVP
Principal Partner
OpenNETCF Consulting

.



Relevant Pages

  • Re: CByteBuffer implementation passed between modules
    ... If the RTL is dynamically linked, ... This forces the code to execute in the correct ... not in the context of the DLL. ... header file, but even if I did, it is legal and a valid way of coding. ...
    (microsoft.public.vc.mfc)
  • Re: CByteBuffer implementation passed between modules
    ... If the RTL is dynamically linked, ... By putting the code in the class definition, you force it to compile and ... not in the context of the DLL. ... header file, but even if I did, it is legal and a valid way of coding. ...
    (microsoft.public.vc.mfc)
  • Re: How to Move Two Dialogs at Once
    ... You would have to include the header file, because the resource.h for that DLL project has ... I hope we'd be able to fix this thing. ...
    (microsoft.public.vc.mfc)
  • Re: Exported function mangaled name
    ... that header file; it must be declared as __declspec ... You have to declare the function the same way in your .cpp file as in ... #define LIBSPEC __declspec ... See my essay on The Ultimate DLL Header File on my MVP Tips site. ...
    (microsoft.public.vc.mfc)
  • Re: problem using self built DLL
    ... class declaration in the header file. ... You should use your own macro instead of AFX_EXT_CLASS, ... your DLL won't be able to #include headers from another DLL that also uses ... "MyDll.lib" to the client project folder. ...
    (microsoft.public.vc.mfc)

Loading