469,607 Members | 1,879 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,607 developers. It's quick & easy.

How To: Generate C# Wrapper for Win32 DLL?

Is there a way to generate C# Wrapper for Win32 DLL?

Ivan Farkas
IF*****@Net-Ramp.com
Nov 16 '05 #1
2 3415
Wes
Hello Ivan,

I don't know of any automatic way to generate a C# wrapper for a Win32 DLL but if you want learn about wrapping Win32 API calls take a look at http://pinvoke.net for some nice examples.

HTH
Wes Haggard
http://weblogs.asp.net/whaggard/

Is there a way to generate C# Wrapper for Win32 DLL?

Ivan Farkas
IF*****@Net-Ramp.com


Nov 16 '05 #2
Hi Ivan... So if I have a C++ ATL COM component called JAL.dll with a
class
SQL2Table, open Visual Studio and go to Project --> Add Reference -->
COM
and select JAL.dll. To call the dll just do

using JALLib;
blah blah blah
SQL2Table myCOM= new SQL2Table();
blah blah

Regards,
Jeff
Is there a way to generate C# Wrapper for Win32 DLL?<

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Thomas Guettler | last post: by
reply views Thread by Brandon Langley | last post: by
29 posts views Thread by mastermagrath | last post: by
6 posts views Thread by Gilles Ganault | last post: by
9 posts views Thread by CMM | last post: by
2 posts views Thread by =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post: by
reply views Thread by guiromero | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.