Page 1 of 1

Irrlicht & VB

Posted: Sat Feb 24, 2007 3:31 pm
by Nekka
Good day!

Can i use this engine with VisualBASIC 6.0?

Thanx

Posted: Sat Feb 24, 2007 8:57 pm
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).