Click to See Complete Forum and Search --> : use DLL (developed in VB.NET)
Heike
Jan 27th, 2003, 09:23 AM
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.
CornedBee
Jan 27th, 2003, 11:03 AM
Only using managed extensions or by creating a COM wrapper around the DLL. I'd prefer the managed extensions.
Heike
Jan 28th, 2003, 04:00 AM
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???
made_of_asp
Jan 28th, 2003, 05:05 AM
Dlls in C++ are called by functions.
e.g.
int MyCDll(int e)
{
return e ^ 33;
}
This topic was discussed many times. Search the forum for C++ Dll's.
made_of_asp
Jan 28th, 2003, 05:07 AM
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.
Heike
Jan 28th, 2003, 05:10 AM
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
CornedBee
Jan 28th, 2003, 06:31 AM
Since when is a dll called with parameters :confused:
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.