You may want to look the Native and .NET Interoperability section in Visual
C++ Programming Guide
msdn2.microsoft.com/en-us/library/zbz07712(VS.80).aspx

Signature
Sheng Jiang
Microsoft MVP in VC++
> Hi all,
> I have a Dll code written in VC++ having lots of structures, classes etc and
[quoted text clipped - 5 lines]
> Thanks,
> Dipesh
Dipesh_Sharma - 02 Nov 2007 05:50 GMT
Hi sheng thanks for this link. I am now trying to import my unmanaged dll &
creating a managed wrapper on it as shown below:
[DllImport("C:\\New Folder\\unmanaged.dll", EntryPoint = "testfunction"
,CallingConvention= CallingConvention::Cdecl)]
String * LonString( const teststructure& v, String * s, uint nb );
public:
String * LonNeuronIdString( const TLonNeuronId& v, String * s, uint nb )
{
return ::NaCppLibLib::LonNeuronIdString( v, s, nb ); //passing to unmanaged
}
First of all can you please point out the mistake in it. I am no able to
access the structure in VB.Net application. I have included the structure in
namespace.
Thanks.
> You may want to look the Native and .NET Interoperability section in Visual
> C++ Programming Guide
> msdn2.microsoft.com/en-us/library/zbz07712(VS.80).aspx