I have developed a dll using Visual Basic .NET. Unfortunately some circumstances force me to develop a C++ programm. I think it must be possible to call my dll within that C++ code but don't know how.
Printable View
I have developed a dll using Visual Basic .NET. Unfortunately some circumstances force me to develop a C++ programm. I think it must be possible to call my dll within that C++ code but don't know how.
Only using managed extensions or by creating a COM wrapper around the DLL. I'd prefer the managed extensions.
Unfortunately I'm not very familiar with C++ and therefore don't know exactly what to do now...
The DLL I developed in VB.NET is named ibs.dll and must receive different parameters (e. g. it is called by ibs.dll param1 param2 param3 ). The DLL I want to develop in C++ should do nothing but call my vb-DLL. If my DLL developped in C++ would be named ibscpp.dll I would like to call ibscpp.dll param1 param2 param3 which internal leads to ibs.dll param1 param2 param3.
How can I do that???
Dlls in C++ are called by functions.
e.g.
This topic was discussed many times. Search the forum for C++ Dll's.Code:int MyCDll(int e)
{
return e ^ 33;
}
Making a COM wrapper may be possible using #import statement in VC. I would not advise using .NET Dll's with C++ - too much hassle.
I don't want to use a .NET DLL in C++ either. The problem is, my .NET DLL already exists. Now it must be called by a COOL:Plex program. But COOL:Plex does not call it. The only way that may be possible is a C++ DLL and that's why I thought that developing a C++ DLL might be a good idea..
Thx
Since when is a dll called with parameters :confused: