• Welcome to Dark Bit Factory & Gravity.
 

[C++] Converting FreeBASIC Pointer Types into a Class

Started by Clyde, August 14, 2009

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jim

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
Challenge Trophies Won:

Clyde

Absolutely Awesome!
Thanks so much Jim :)

Are the .a files equivalents of a .lib ?
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Jim

QuoteAbsolutely Awesome!
I can't let you give up!  I want to see a Gravity C++ demo!

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

Jim
Challenge Trophies Won:

Clyde

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:

Jim

Can't remember - from the Freebasic ptc thread?
Challenge Trophies Won: