473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

.NET Wrappers

I've to write a C# app that interfaces with a 3rd party aPI that is written
in C++

How do I write a .NET wrapper instead of using Pinvoke? Any good examples
or books that will help explain it to me?

Thanks
Nov 12 '08 #1
2 1284
Is the native API that you are going to use comprised of functions only or
does it have COM-visible objects?

If you are going to use functions from the external DLL, you will have to
use P/Invoke. Otherwise, you can add a reference to the library to your
project and Visual Studio will attempt to generate a wrapper around the COM
functionality for you to use.
--
Stanimir Stoyanov
http://stoyanoff.info

"David" <no****@spam.comwrote in message
news:uj**************@TK2MSFTNGP02.phx.gbl...
I've to write a C# app that interfaces with a 3rd party aPI that is
written in C++

How do I write a .NET wrapper instead of using Pinvoke? Any good examples
or books that will help explain it to me?

Thanks

Nov 12 '08 #2
David wrote:
I've to write a C# app that interfaces with a 3rd party aPI that is written
in C++

How do I write a .NET wrapper instead of using Pinvoke? Any good examples
or books that will help explain it to me?
I think the options are:
- Win32 DLL and DllImport
- COM DLL that is transparent
- mixed mode C++

Arne
Nov 13 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul Rudin | last post by:
I'm having a problem with the python wrappers generated from a type library. The symptom is that I get failures to find connections points inside the wrappers when called from DispatchWithEvents...
18
by: Adrian B. | last post by:
Does anyone know of a framework or library that will enable me to use publish/subscribe comms? I want to create a server (using Python) running on a Unix box that will accept client connections...
7
by: Harlin Seritt | last post by:
I was looking at the Tcl/Tk sourceforge page and found that there were a couple of new widgets being produced for Tcl 8.5. Does anyone know if there are any Tkinter wrappers somewhere? thanks, ...
1
by: Catherine Lynn Smith | last post by:
OK, I am looking for advice or tips and suggestions. I have overcome a lot of the obstructions I had to building the page design my customer was asking for. I am looking now at ways to deliver...
0
by: imm | last post by:
where to find them? my search couldn't go farther than this link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/system_monitor_automation_interface.asp ...
2
by: John Smith | last post by:
Hey folks, Is it possible to create Type Wrappers in C#? If so, how do you do it? For those not sure of what I mean, here's a quick link on Type Wrappers in Java:...
8
by: mirek | last post by:
Hi, Is it safe to put my objects that are managed c++ wrappers to the session? I want to pass them from one page to the other in the session object but I noticed strange (maybe it is ok)...
1
by: TC | last post by:
Every time I open my project, I get a warning which says "There are updated custom wrappers available for the following referenced components: Office." When I double-click on the warning, I get...
1
by: pauldepstein | last post by:
Hi All, First, perhaps some would be kind enough to help me, once I state my approximate background I have written a moderately complex c++ program consisting of 11 files, all Bloodshed Dev. ...
0
by: Justin Ezequiel | last post by:
Found a couple of papers that mention Python wrappers for UDT have been written but Google fails me. Do any of you know of such wrappers? Have downloaded UDT SDK but source is in C++. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.