If you want to write your dll in managed code for ease... then c# that and
write a managed c++ wrapper that is c callable. It's not too bad and dark.
Well, some exceptions but for the most part easy just for a wrapper. There
was another neat workaround somewhere - read an article a while back about
tweaking your IL to make it c callable though... but since you find the c++
easy to do.. then the managed wrapper is the easiest.
This wasn't the article but is related dealing with callbacks.
http://www.dotnet247.com/247reference/msgs/17/87210.aspx
and
http://www.codeproject.com/csharp/cdeclcallback.asp?df=100&forumid=248333&ex
p=0&select=1317814#xx1317814xx

but the managed route is best because of thread calling reasons:
http://blogs.msdn.com/cbrumme/archive/2003/04/15/51325.aspx






-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Shawn Wildermuth
Sent: Sunday, January 28, 2007 11:02 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] C Callable DLL

I am working with an old API that wants me to write a C Callable DLL.  I can
do this in C++ easily (and did that years ago).  Before I delve into the
dark world of MC++, does anyone know if there is another route in .NET to do
this?





Thanks,



Shawn Wildermuth

Wildermuth Consulting Services, LLC

 <http://wildermuthconsulting.com/> http://wildermuthconsulting.com

 <http://adoguy.com/> http://adoguy.com

Microsoft MVP (C#), MCSD.NET, Author and Speaker




===================================
This list is hosted by DevelopMentor.  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to