R
repstat
Hi
I have a project which is going to be doing some string manipulation which
needs to be pretty fast. The user interface is going to be written in C#. I
am going to write the string handling functions in a C++ DLL.
My first question is, if I insert a C++ project into my C# solution, how
will VS.NET know that I want it to be unmanaged code? I intend to be calling
the DLLs functions using DllImport. I've heard that you can have unmanaged
code and managed code in a single code file, so I was wondering if the
setting between managed code and unmanaged code is some sort of declaration,
or is it at the project level?
My second question is, if I want to use DllImport to call the DLL's
functions, what is the best way to specify the directory in which to look
for the DLL? I can't get my head round whether to specify the debug
location, the release location, or none - in the DllImport section.
I have a project which is going to be doing some string manipulation which
needs to be pretty fast. The user interface is going to be written in C#. I
am going to write the string handling functions in a C++ DLL.
My first question is, if I insert a C++ project into my C# solution, how
will VS.NET know that I want it to be unmanaged code? I intend to be calling
the DLLs functions using DllImport. I've heard that you can have unmanaged
code and managed code in a single code file, so I was wondering if the
setting between managed code and unmanaged code is some sort of declaration,
or is it at the project level?
My second question is, if I want to use DllImport to call the DLL's
functions, what is the best way to specify the directory in which to look
for the DLL? I can't get my head round whether to specify the debug
location, the release location, or none - in the DllImport section.