Hi,
Is it possible to use C++ code directly in C#? (not by COM interop)
Thanks. 3 1146
Nick,
No, it is not. The only way you could do it is through COM Interop, the
P/Invoke layer, or by creating a managed wrapper.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Nick" <ni*****@heha.net.tw> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... Hi,
Is it possible to use C++ code directly in C#? (not by COM interop)
Thanks.
Hi,
In fact, I have some codes orginally written using C++/ATL, my concern
is to port the code into a C# project.
For the choices you adviced, which is the most easiest method of doing this?
Thanks.
Nicholas Paldino [.NET/C# MVP] wrote: Nick,
No, it is not. The only way you could do it is through COM Interop, the P/Invoke layer, or by creating a managed wrapper.
Hope this helps.
Ricky,
Why port it? If you have it written in using C++ and ATL, then I assume
it is a COM object? If it works, why spend the money to port it? I would
just use COM interop, setting a reference to the COM object in my .NET
project.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Ricky" <sp**@spam.com> wrote in message
news:eI**************@TK2MSFTNGP12.phx.gbl... Hi,
In fact, I have some codes orginally written using C++/ATL, my concern is to port the code into a C# project.
For the choices you adviced, which is the most easiest method of doing this?
Thanks.
Nicholas Paldino [.NET/C# MVP] wrote:
Nick,
No, it is not. The only way you could do it is through COM Interop, the P/Invoke layer, or by creating a managed wrapper.
Hope this helps. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: quagmire |
last post by:
I have a form that people fill out with 6 fields (name, email, phone #,
etc.). One of the fields is a 6 digit code that they have received by email,
(one of 4 possible codes, named "code" inside...
|
by: AMD |
last post by:
Hi,
I need to write a Win32 DLL and I would like to use Python instead of
VB, C++ or Delphi. Is this possible?
Thank you,
Andre M. Descombes
|
by: Kyle |
last post by:
Hello all!
I'm looking into developing a biological program for modeling and
sequencing DNA and other biological processes. The program's main
focus would be to look for similarities and...
|
by: Bob Rock |
last post by:
Hello,
I was wondering is it is possible to place in a source code file both IL
code and a higher level language (C# or VB.NET) code???
In other words in it possible to have something line...
|
by: Jonathan |
last post by:
Hi all!
For a match schedule I would like to find all possible combinations of
teams playing home and away (without teams playing to themselves of course).
I now the simple version works...
|
by: steve Sweales |
last post by:
I am trying to design a windows forms application (not asp.net) in C#,
and need to know if the following scenario is possible :
Once my application is running I need to be able to impersonate...
|
by: TJ |
last post by:
Hi,
There is one aspx web page that contains usercontrol.
In aspx page and usercontrol , there is each submit button...
Here is what I want...
I want to process something depending on each...
|
by: Arne Demmers |
last post by:
Hi,
As a project of mine I have to do some C programming, which in fact isn't
the real problem. The problem it self is that I will have to write some code
that is as minimal as possible, and as...
|
by: Daniel |
last post by:
I am trying to find all possible routes between two points on a tree using a top to bottom search only. The tree looks like this:
' 1
' / \
...
|
by: ThunderMusic |
last post by:
Hi,
We need to serialize (binary) objects containing generic collections. The
thing is, when we try to get the objects back (deserialize) with a different
instance of the application, we receive...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
| |