Click here to Skip to main content
15,922,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to generate a random number? Pin
Iain Clarke, Warrior Programmer14-Jun-03 3:45
Iain Clarke, Warrior Programmer14-Jun-03 3:45 
GeneralRe: How to generate a random number? Pin
FlyingDancer14-Jun-03 3:50
FlyingDancer14-Jun-03 3:50 
GeneralRe: How to generate a random number? Pin
Hosam Aly Mahmoud14-Jun-03 5:41
Hosam Aly Mahmoud14-Jun-03 5:41 
GeneralRe: How to generate a random number? Pin
FlyingDancer14-Jun-03 15:22
FlyingDancer14-Jun-03 15:22 
GeneralRe: How to generate a random number? Pin
Iain Clarke, Warrior Programmer15-Jun-03 4:20
Iain Clarke, Warrior Programmer15-Jun-03 4:20 
AnswerRe: How to generate a random number? Pin
Ian Darling15-Jun-03 11:00
Ian Darling15-Jun-03 11:00 
GeneralGeneric C code without libraries of any kind that can be run on boot Pin
Kuniva14-Jun-03 2:12
Kuniva14-Jun-03 2:12 
GeneralRe: Generic C code without libraries of any kind that can be run on boot Pin
Ryan Binns14-Jun-03 4:30
Ryan Binns14-Jun-03 4:30 
It's not easy, but possible. You need a compiler that can compile to a raw binary image (not an .EXE file), and it must be able to start the code at the first location in the file. If you use multiple files, then you'll need a linker that supports raw binary output files. A good place to start is http://my.execpc.com/~geezer/johnfine/[^], which give a few links, some sample source code, and some utilities, including a linker specially written for doing this (jloc).

The DJGPP[^] development environment is excellent for low-level work like this.

It is possible, but you will need to use a special compiler/linker. I have used the DJGPP/jloc system and it works well (a few years ago, though...).

BTW, using the C libraries are not a problem, as long as they don't call any OS functions, such as memory management. The DJGPP system includes a series of C libraries that meet this requirement.

Hope this helps

Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

GeneralRe: Generic C code without libraries of any kind that can be run on boot Pin
Kuniva14-Jun-03 4:46
Kuniva14-Jun-03 4:46 
QuestionHow to link the related combo box?? Pin
ShigeAris14-Jun-03 2:04
ShigeAris14-Jun-03 2:04 
AnswerRe: How to link the related combo box?? Pin
valikac14-Jun-03 6:26
valikac14-Jun-03 6:26 
GeneralRe: How to link the related combo box?? Pin
ShigeAris14-Jun-03 16:02
ShigeAris14-Jun-03 16:02 
Generalembedding fonts Pin
difa13-Jun-03 23:10
difa13-Jun-03 23:10 
GeneralRe: embedding fonts Pin
basementman16-Jun-03 4:34
basementman16-Jun-03 4:34 
GeneralRe: embedding fonts Pin
Swinefeaster13-Mar-04 13:16
Swinefeaster13-Mar-04 13:16 
GeneralON_UPDATE_COMMAND_UI wont update my menu text (in dialog based application) Pin
yccheok13-Jun-03 22:20
yccheok13-Jun-03 22:20 
GeneralRe: ON_UPDATE_COMMAND_UI wont update my menu text (in dialog based application) Pin
valikac14-Jun-03 6:29
valikac14-Jun-03 6:29 
GeneralRe: ON_UPDATE_COMMAND_UI wont update my menu text (in dialog based application) Pin
Michael Dunn14-Jun-03 6:32
sitebuilderMichael Dunn14-Jun-03 6:32 
GeneralRe: ON_UPDATE_COMMAND_UI wont update my menu text (in dialog based application) Pin
tfiner11-Apr-12 8:00
tfiner11-Apr-12 8:00 
GeneralAsynchronies dial up connection Pin
no_body6913-Jun-03 18:55
no_body6913-Jun-03 18:55 
GeneralRe: Asynchronies dial up connection Pin
Kuniva15-Jun-03 4:30
Kuniva15-Jun-03 4:30 
QuestionApplication causing Windows clock drift? Pin
Gavin Stark13-Jun-03 18:05
Gavin Stark13-Jun-03 18:05 
AnswerRe: Application causing Windows clock drift? Pin
John Aldrich13-Jun-03 18:46
John Aldrich13-Jun-03 18:46 
GeneralRe: Application causing Windows clock drift? Pin
Gavin Stark13-Jun-03 19:13
Gavin Stark13-Jun-03 19:13 
GeneralRe: Application causing Windows clock drift? Pin
Gavin Stark16-Jun-03 17:54
Gavin Stark16-Jun-03 17:54 

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.