Re: C libraries in C#
From: Paul G. Tobey [eMVP] (ptobey)
Date: 08/24/04
- Next message: Alex Yakhnin [MVP]: "RE: Microsoft.WindowsCE.Forms.Message to get Parent Control?"
- Previous message: Ian: "RE: WebException via ActiveSync"
- In reply to: Naveen Mukkelli: "Re: C libraries in C#"
- Next in thread: Naveen Mukkelli: "Re: C libraries in C#"
- Reply: Naveen Mukkelli: "Re: C libraries in C#"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Aug 2004 08:30:42 -0700
You don't have to register anything, but you should make sure that you are
compiling the exported functions in the DLL as C functions, not C++. C++,
as you certainly must know, changes the exported names of functions so that
their parameter and return types are part of their name. This allows
overloading of functions, since you can distinguish between int A( float b )
and int A( long b ) by the mangled function name, but it also makes it
harder to call from systems where you have to know the actual exported name.
The depends.exe tool will show you the actual exported names from a DLL and
you should be able to use this tool to see if what you are telling your C#
code to call is actually what the DLL is exporting...
Paul T.
"Naveen Mukkelli" <NaveenMukkelli@discussions.microsoft.com> wrote in
message news:33E6561E-25BB-4AD6-94F1-E0EBC9350758@microsoft.com...
> Hi Steve,
>
> Thank you for your response.
> I when I tried a samle program, I got "Missing method exception" in my
> PDA.
>
> I am wondering are we supposed to install and register the "DLL" in PDA.
>
> Kindly let me know.
>
> Cheers,
>
> Naveen
>
> "Steve Maillet (eMVP)" wrote:
>
>> In particular search for "dll import" or "PInvoke"
>>
>> --
>> Steve Maillet
>> EmbeddedFusion
>> www.EmbeddedFusion.com
>>
>> Do have an opinion on the effectiveness of Microsoft Windows Mobile and
>> Embedded newsgroups? Let us know!
>> https://www.windowsembeddedeval.com/community/newsgroups
>>
>>
>>
- Next message: Alex Yakhnin [MVP]: "RE: Microsoft.WindowsCE.Forms.Message to get Parent Control?"
- Previous message: Ian: "RE: WebException via ActiveSync"
- In reply to: Naveen Mukkelli: "Re: C libraries in C#"
- Next in thread: Naveen Mukkelli: "Re: C libraries in C#"
- Reply: Naveen Mukkelli: "Re: C libraries in C#"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|