Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Dark GDK and the entrypoint!

Author
Message
Try
20
Years of Service
User Offline
Joined: 16th Aug 2004
Location:
Posted: 22nd Jun 2007 01:46 Edited at: 22nd Jun 2007 13:04
Hi guys, long time no see!

I have a little question about the well known GDK, I'm interested in the way GDK works! I mean there is no entrypoint(main or winmain) and no MsgProc at all!!! (At least our code are so clear )
(It's just so nice to write our frameworks with a structure like this one)

Now, I want to know how it's been done? I tried to google it out, but no luck! Cause I don't think TGC used something like #pragma comment(linker,"/ENTRY:startupfunction")! Did they?

TIA.
Mr X
19
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 22nd Jun 2007 13:53
Have no experience in Dark GDK (have never used it), but shouldn't this question be in the Dark GDK board?
Try
20
Years of Service
User Offline
Joined: 16th Aug 2004
Location:
Posted: 22nd Jun 2007 14:53 Edited at: 22nd Jun 2007 14:54
I don't think so! The GDK was written in C++ and I have a question about it (the GDK) and the answer is about C++ programming... So, the Topic is about programming... That's it!

btw, I don't have any problem asking this in that forum.

Thanks.
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 22nd Jun 2007 23:29
I'm not really sure what the entry point is. They have a function called 'void DarkGDK(void)' that takes place of where a regular main() function would be. I'll move this to the GDK forum and you might get a better response there.



A book? I hate book. Book is stupid.
(Formerly Yellow)
Try
20
Years of Service
User Offline
Joined: 16th Aug 2004
Location:
Posted: 23rd Jun 2007 00:17 Edited at: 23rd Jun 2007 09:22
Well then, I think I was wrong
Thanks MikeS, I hope someone answer me this

Uh, and Mr X... Thanks for the advice...

Best regards.
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 23rd Jun 2007 07:38
Either forum is probably okay, but I think you'll get more of a response here.



A book? I hate book. Book is stupid.
(Formerly Yellow)
Try
20
Years of Service
User Offline
Joined: 16th Aug 2004
Location:
Posted: 24th Jun 2007 15:00
Thanks Mike...
--------------

Uh, is there anything wrong with the question?!!! It doesn't seem to be that hard, is it?

T.I.A.
Ianhfar
20
Years of Service
User Offline
Joined: 8th Jul 2004
Location: UK
Posted: 26th Jun 2007 16:02
Try,

The winmain is hidden from us, because I think GDK has to take control of the message loop and windows init.

So all the window init code and the Message loop is hidden by the DarkGDK().

Hope this helps a little
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 2nd Jul 2007 00:20
And I think this is why I would fail if I tried to convert the headers to work with - say - FreePascal.
Jason P Sage

Know way too many languages - Master of none

Login to post a reply

Server time is: 2024-09-29 01:18:32
Your offset time is: 2024-09-29 01:18:32