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.
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.