Irrlicht & VB

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Nekka
Posts: 1
Joined: Sat Feb 24, 2007 3:26 pm

Irrlicht & VB

Post by Nekka »

Good day!

Can i use this engine with VisualBASIC 6.0?

Thanx
Katsankat
Posts: 178
Joined: Sun Mar 12, 2006 4:15 am
Contact:

Post by Katsankat »

Yes!

But as far as i know this has never been done.
It is a basic case where the VB6 app has to use objects and functions from a dll (API), so the VB app has to declare all functions, types, enumerations (preferably in a standard module), to be able to use them.

Code: Select all

Declare Function createDevice ( drivertype as E_DRIVER_TYPE,
				deviceType as EDT_SOFTWARE,
				windowSize as dimension2d,
				bits as byte,
				fullscreen as Boolean,
				stencilbuffer as Boolean,
				vsync as Boolean,
				receiver as IEventReceiver,
				sdk_version_do_not_use as string) as IrrlichtDevice

sub main()
  IrrlIchtDevice device = createDevice (etc)
  while(device.run)
  ...
  device.drop()
end sub
But it gets complicated when objects should be written as classes. An excellent VB6 progamming level is required.

It is an enormous work since Irrlicht is quite advanced -and evolving- not to mention microsoft has stopped development of VB6 in favour of something else.

Suggestion, two options: move to VB.NET, or learn C++ (best choice).
Post Reply