Author Topic: [C++] Converting FreeBASIC Pointer Types into a Class  (Read 43419 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: [C++] Converting FreeBASIC Pointer Types into a Class
« Reply #100 on: September 29, 2009 »
I don't know why it is needed.  It means you can never make SYSTEM:WINDOWS programs with libtinyptc_ext unless they don't use any built-in functions as it stops the runtime being initialized (hence why your programs just drop out).

You're stuck doing SYSTEM:CONSOLE, not that that's a bad thing - you just end up with a cmd window, everything else is the same.

SYSTEM:WINDOWSCE is Windows CE, a cut down embedded Windows for phones and PDAs.

<edit>Just found a way round it.
Set it back to SYSTEM:WINDOWS
Set it back to Multithreaded
Set the option rbz mentioned (entry point) to mainCRTStartup
Use main() instead of WinMain in your program.

That will force it to init the runtime and bypass the libtinyptc_ext wierdness.

<edit2>attached is what I think is your project working with SYSTEM:WINDOWS

Jim
« Last Edit: September 29, 2009 by Jim »
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: [C++] Converting FreeBASIC Pointer Types into a Class
« Reply #101 on: September 30, 2009 »
Absolutely Awesome!
Thanks so much Jim :)

Are the .a files equivalents of a .lib ?
« Last Edit: September 30, 2009 by Clyde »
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: [C++] Converting FreeBASIC Pointer Types into a Class
« Reply #102 on: September 30, 2009 »
Quote
Absolutely Awesome!
I can't let you give up!  I want to see a Gravity C++ demo!

Quote
Are the .a files equivalents of a .lib ?
Yes, I think it will work with either.

Jim
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: [C++] Converting FreeBASIC Pointer Types into a Class
« Reply #103 on: September 30, 2009 »
Work has allready begun dude!
And thanks again Gym Sure, sorry there dude I've been waiting ages to type that. ;)

btw, where or how did you do the tinyptc_ext.a and mmx.a files?
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: [C++] Converting FreeBASIC Pointer Types into a Class
« Reply #104 on: September 30, 2009 »
Can't remember - from the Freebasic ptc thread?
Challenge Trophies Won: