472,098 Members | 2,382 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,098 software developers and data experts.

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 3510
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.