MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Anonymous
Unregistered
Re: .Net Question, How to reference a dll with different names
02/03/07 10:08 AM


> Thanks for the help and reply. I think I get what you are saying in the first
> example,
> but if you get a chance some example code would help me get it to click.

I'll dig some out next week.

> Do you have
> any
> standard you follow for naming the two functions?

Normally I append CF to the end of the name of the compact framework version & DT to the end of the desktop one. The delegate or wrapper function gets the name of the function, so looking at it you think it's just C/C++.

> I have no experience with and I'll have to check if I can use a delegate, but I've
> put it
> on my list of things to read up on.

delegate's are the equivalent of function pointers from C. You call them in the same way as a function, but you can point it at whatever you want. I'll try to dig out a simple example. You can also now pass them to unmanaged dll's as callbacks/function pointers, you've always had the ability on the desktop but compact framework 1 didn't let you do it. I recently wrote a managed wrapper around stone street one's bluetopia bluetooth stack, which heavily relies on callbacks. That waa quite fun.

smf







Entire thread
Subject Posted by Posted on
* .Net Question, How to reference a dll with different names 2600 01/26/07 11:31 PM
. * Re: .Net Question, How to reference a dll with different names alpa  03/06/07 12:24 PM
. * Re: .Net Question, How to reference a dll with different names twistyAdministrator  03/06/07 03:51 PM
. * Re: .Net Question, How to reference a dll with different names Anonymous  01/28/07 11:16 PM
. * Re: .Net Question, How to reference a dll with different names 2600  01/29/07 07:32 PM
. * Re: .Net Question, How to reference a dll with different names Anonymous  02/28/07 05:22 PM
. * Re: .Net Question, How to reference a dll with different names Anonymous  02/03/07 10:08 AM
. * Re: .Net Question, How to reference a dll with different names kkd  02/14/07 07:25 PM
. * Re: .Net Question, How to reference a dll with different names Anonymous  02/14/07 09:42 PM
. * Re: .Net Question, How to reference a dll with different names kkd  02/15/07 12:01 AM
. * Re: .Net Question, How to reference a dll with different names Anonymous  02/16/07 06:28 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 59 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4887