Click here to Skip to main content
15,911,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting It Out Of The Recycling Bin Pin
Swinefeaster18-Jun-01 22:35
Swinefeaster18-Jun-01 22:35 
GeneralC++ - Inheritance Pin
Ganesh Ramaswamy18-Jun-01 11:08
Ganesh Ramaswamy18-Jun-01 11:08 
GeneralRe: C++ - Inheritance Pin
18-Jun-01 11:38
suss18-Jun-01 11:38 
Questionfixing "Cannot find the definition (implementation) of this function"? Pin
18-Jun-01 10:59
suss18-Jun-01 10:59 
AnswerRe: fixing Pin
18-Jun-01 21:50
suss18-Jun-01 21:50 
QuestionLoad *.c at runtime? Pin
18-Jun-01 10:51
suss18-Jun-01 10:51 
AnswerRe: Load *.c at runtime? Pin
Christian Graus18-Jun-01 17:10
protectorChristian Graus18-Jun-01 17:10 
AnswerRe: Load *.c at runtime? Pin
18-Jun-01 18:07
suss18-Jun-01 18:07 
Carmack (the creator of Quake3) took LCC (a free open source C compiler) and used it as the base of an interpreter. The game code is loaded at startup and runs interpreted inside of a virtual machine inside of Quake3. It's a lot like Java but using C as the starting point. I think Carmack said it incurrs about a 10% performance hit which is acceptable and allows Quake3 to be ported easily to multiple platforms. Since the game logic is portable you can write a mod for the PC version and it will work automatically on Mac and Linux. This also allows him to exclude a lot of stuff from the language like access to local files on your PC. The game code runs in a sort of sand box with limited system interaction. You can also take the game logic code and compile it nativly on each system. For the PC you'd end up with a .DLL that's loaded at run time. You can get back your 10% speed drop this way but of course the DLL isn't portable to other platforms.

If you hunt down his .plan files you can read all about it.
GeneralRe: Load *.c at runtime? Pin
19-Jun-01 3:26
suss19-Jun-01 3:26 
QuestionIs there a CD-ROM? Pin
Rickard Andersson2018-Jun-01 10:43
Rickard Andersson2018-Jun-01 10:43 
AnswerRe: Is there a CD-ROM? Pin
Gero Gerber18-Jun-01 10:52
Gero Gerber18-Jun-01 10:52 
AnswerRe: Is there a CD-ROM? Pin
19-Jun-01 7:31
suss19-Jun-01 7:31 
GeneralKeyboard acces... Pin
Rickard Andersson2018-Jun-01 10:39
Rickard Andersson2018-Jun-01 10:39 
GeneralRe: Keyboard acces... Pin
Mukkie19-Jun-01 6:39
Mukkie19-Jun-01 6:39 
GeneralPlus! Settings, use large icons, et. al Pin
18-Jun-01 10:35
suss18-Jun-01 10:35 
Generalbitmaps and PatBlt Pin
michaelh18-Jun-01 10:28
michaelh18-Jun-01 10:28 
QuestionMenu in a dialog window ? Pin
18-Jun-01 9:03
suss18-Jun-01 9:03 
AnswerRe: Menu in a dialog window ? Pin
18-Jun-01 10:05
suss18-Jun-01 10:05 
GeneralRe: Menu in a dialog window ? Pin
18-Jun-01 10:42
suss18-Jun-01 10:42 
AnswerRe: Menu in a dialog window ? Pin
Carlos Antollini18-Jun-01 11:01
Carlos Antollini18-Jun-01 11:01 
AnswerIt's working fine now ! Thanks a lot !!! Pin
20-Jun-01 6:40
suss20-Jun-01 6:40 
Generalcustom cursor Pin
18-Jun-01 8:11
suss18-Jun-01 8:11 
GeneralRe: custom cursor Pin
Tomasz Sowinski18-Jun-01 8:19
Tomasz Sowinski18-Jun-01 8:19 
GeneralRe: custom cursor Pin
18-Jun-01 9:16
suss18-Jun-01 9:16 
GeneralRe: custom cursor Pin
Tomasz Sowinski18-Jun-01 9:24
Tomasz Sowinski18-Jun-01 9:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.