Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Visual Basic dll  (Read 1638 times)

0 Members and 1 Guest are viewing this topic.

loadman

  • Wiki Contributor
  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Visual Basic dll
« on: May 21, 2007, 01:11:56 am »
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

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Today at 11:06:50 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Visual Basic dll
« Reply #1 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. 

loadman

  • Wiki Contributor
  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Visual Basic dll
« Reply #2 on: May 21, 2007, 07:23:28 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. 

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

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
Re: Visual Basic dll
« Reply #3 on: May 22, 2007, 08:53:38 am »

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. 
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.


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   
VB is not widely used for MAME development. I believe Loadman posted this thread more for "academic" reasons.
Robots will kill you.



Arcade Addiction

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Today at 11:06:50 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Visual Basic dll
« Reply #4 on: May 22, 2007, 09:09:56 am »
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.

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
Re: Visual Basic dll
« Reply #5 on: May 22, 2007, 09:34:30 am »
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.
Howard,
By "mame development" I was referring to all things mame (not specifically the emulator code) - sorry for the confusion. I wasn't under the impression that VB was popular for fe stuff, but you've been doing this for way longer than I have, so I defer to your assessment.  :)
Robots will kill you.



Arcade Addiction

Havok

  • Keeper of the __Blue_Stars___
  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4530
  • Last login:July 11, 2025, 01:29:48 am
  • Insufficient facts always invite danger.
Re: Visual Basic dll
« Reply #6 on: May 22, 2007, 10:17:31 am »
Don't mind Howard, he's just grumpy because he's lonely and not married...

 ::)

loadman

  • Wiki Contributor
  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Visual Basic dll
« Reply #7 on: May 22, 2007, 07:25:45 pm »
Don't mind Howard, he's just grumpy because he's lonely and not married...

 ::)

He is married to the Hobby of developing and assisting us Retro Gaming folk.   ;D

I have appreciated his help so I let the occasional grumpy stuff slide  ;)

But back to VB...  Yeah my reasearch confirms waht you all tell me. 
It is confuslling as they are both called Dll's
Mayben there should be a name like:
Com Dll''s for and Win32 Dll's