Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Sat, 15 Mar 2008 01:38:00 -0700,    group: microsoft.public.vstudio.development        back       


Use fucntion in c# from c++ dll   
Hi,
I want to write a dll for bluetooth functionality with functions i can use 
in a c# program.
I tryd some diferent ways but keep getting errors when loading the function.
last error was "badimageformatexception".

can i find a tutorial or sample project for this on the web ?
or can someone help me on the way...

Thanks , Blue Doorman.
date: Sat, 15 Mar 2008 01:38:00 -0700   author:   Blue Doorman Blue

Re: Use fucntion in c# from c++ dll   
If the DLL is to be written in C++, you'll need to compile the DLL code with 
/CLR and add some managed/ref classes that the C# code will be able to use.

Lots of good info can be found here:

Mixed (Native and Managed) Assemblies 
http://msdn2.microsoft.com/en-us/library/x0w2664k%28VS.80%29.aspx


Mark

-- 
Mark Salsbery
Microsoft MVP - Visual C++



"Blue Doorman" <Blue Doorman@discussions.microsoft.com> wrote in message 
news:C7DF6175-6480-4381-9DA7-01F43E2A791E@microsoft.com...
> Hi,
> I want to write a dll for bluetooth functionality with functions i can use
> in a c# program.
> I tryd some diferent ways but keep getting errors when loading the 
> function.
> last error was "badimageformatexception".
>
> can i find a tutorial or sample project for this on the web ?
> or can someone help me on the way...
>
> Thanks , Blue Doorman.
date: Tue, 18 Mar 2008 15:45:58 -0700   author:   Mark Salsbery [MVP] MarkSalsbery[MVP]@newsgroup.nospam

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us