C
Chip Gore
Hi -
Using Visual Studio 2005, I have created a stand alone command
line .exe program that "does what I want".
All of the functionality that I would like to make available to my
C#/.NET service is in a few .cpp/.h files (that my .exe main line .cpp
file calls and uses fine).
I'm not sure what I need to do to make my C++ code into something that
can be called from the C# code. I've seen people talk about "P/
Invoke", but all of the documentation that I've found assumes I
have .dll, and I'm not sure what I need to do to change my C++ project
from creating .exe into creating a .dll so I can pick up where the "P/
Invoke" documentation seems to be starting from.
(I know, just a bit "Newby" of me, but that's where I'm at)
I gather that once I have a .dll, I can then import this, and make a
declaration within my C# code to say "this lives over there" and the
rest of the process should flow naturally. (or do I have my hopes set
to high for this?)
Thanks in advance
cg
Using Visual Studio 2005, I have created a stand alone command
line .exe program that "does what I want".
All of the functionality that I would like to make available to my
C#/.NET service is in a few .cpp/.h files (that my .exe main line .cpp
file calls and uses fine).
I'm not sure what I need to do to make my C++ code into something that
can be called from the C# code. I've seen people talk about "P/
Invoke", but all of the documentation that I've found assumes I
have .dll, and I'm not sure what I need to do to change my C++ project
from creating .exe into creating a .dll so I can pick up where the "P/
Invoke" documentation seems to be starting from.
(I know, just a bit "Newby" of me, but that's where I'm at)
I gather that once I have a .dll, I can then import this, and make a
declaration within my C# code to say "this lives over there" and the
rest of the process should flow naturally. (or do I have my hopes set
to high for this?)
Thanks in advance
cg