Main > Software Forum

Visual Basic dll

(1/2) > >>

loadman:
Hi,

Is there any way of producing a dll in VB6 and/or VB.net to be called like a C++ or Delphi one would.

From my 'googling' VB6 is not and option but you can call vb.net dll's but you have to call them a different way.

What I want to do is make another MaLa plug-in template in VB without Swindus having to change any code. There is allready a C++ and Delphi example in the SDK .

EG:
C++:
extern "C" DLL void MaLaGameStart()

Delphi:
procedure MaLaGameStart(); cdecl;

Does anyone know of a way to produce VB Dll's that you can export functions/procedures this way?

Thanks  ;)

Howard_Casto:
The short answer is no.  Vb6 dlls aren't "real" dlls so they require different interface methods.  I'm not as familair with .net, but judging by what you said, I'll bet they inherited this trait. 

loadman:

--- Quote from: Howard_Casto on May 21, 2007, 02:05:02 pm ---The short answer is no.  Vb6 dlls aren't "real" dlls so they require different interface methods.  I'm not as familiar with .net, but judging by what you said, I'll bet they inherited this trait. 

--- End quote ---

Thanks Howard.  ;D

 I've seen some work arounds but they are not straight forward.  :banghead:  Not worth it for this task anyway.  ;)

Maybe I could make a Plug-in that reads VB Plug-ins.....  Maybe I'm being silly now   :dizzy:

arzoo:


--- Quote from: Howard_Casto on May 21, 2007, 02:05:02 pm ---The short answer is no.  Vb6 dlls aren't "real" dlls so they require different interface methods.  I'm not as familair with .net, but judging by what you said, I'll bet they inherited this trait. 

--- End quote ---
VB6 and .net are very different. That being said, a DLL created with VB.net still can't export functions like with C++ or Delphi. A DLL created in VB.net is an assembly which can only be used by other .net assemblies. It's my understanding the only way a DLL created with VB.net can be used by other languages is to expose it's interface via COM.



--- Quote from: adammichael12@gmail.com on May 22, 2007, 12:08:54 am ---Hi all
       I am a new member to this group. can I know if VB6.0 dll are not real them why r we using these.
Thnx.
Love Songs   

Gospel Music   

--- End quote ---
VB is not widely used for MAME development. I believe Loadman posted this thread more for "academic" reasons.

Howard_Casto:
It's not widely used fo rmame development, but it IS widely used for fe development.  I don't have any clue how mame comes into the equation here.

Navigation

[0] Message Index

[#] Next page

Go to full version