Author Topic: FreeBasic vs. PowerBasic vs. Whatever  (Read 32278 times)

0 Members and 1 Guest are viewing this topic.

Offline Charles Pegge

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 814
  • User-Rate: +33/-1
    • Charles Pegge
Re: FreeBasic vs. PowerBasic vs. Whatever
« Reply #15 on: July 02, 2007, 10:53:33 PM »
THIScall I understand, is an invention of Microsoft, where the pointer to THIS object is passed in ecx. The normal protocol is to push it onto the stack after all the other parameters.

THIS points to an object's data, the first entry of which is itself a pointer to its virtual table of functions. A sort of double pointering scheme.
It's standard C++ stuff, also used in COM. In the source code, THIS is always implicit and is never seen on the parameter list in member function calls.

Offline Donald Darden

  • Sr. Member
  • ****
  • Posts: 363
  • User-Rate: +3/-13
Re: FreeBasic vs. PowerBasic vs. Whatever
« Reply #16 on: July 03, 2007, 03:11:37 AM »
The saga of figuring out how to make FreeBasic and PowerBasic create and work with each other's DLLs continues.  A message from the PowerBasic Archives pertains:
http://www.powerbasic.com/support/forums/Forum4/HTML/006010.html

Another related link:
http://support.microsoft.com/kb/q131313/

« Last Edit: July 03, 2007, 04:04:04 AM by Donald Darden »