

Learning ASM/C
Started by
Andy.Davies
, Sep 09 2003 06:00 PM
47 replies to this topic
#41
Posted 21 September 2003 - 12:20 PM
Yea, modern coding is "just" using pre-made librairies ... that's useful but I like making them myself

#42
Posted 21 September 2003 - 01:27 PM
i cant wait until my AFX arrives
The same situation that me with a classpad.

#43
Posted 21 September 2003 - 03:03 PM
@roe:
of course calling apis is "real" programming .. almost any programs in dos use INT 21h calls so this is nothing else then a call
to the "DOS API". But what I meant is if you do the folowing (source unknown
)
and call it windows 98 (just like M$ did).
of course calling apis is "real" programming .. almost any programs in dos use INT 21h calls so this is nothing else then a call
to the "DOS API". But what I meant is if you do the folowing (source unknown

#include "win95.h" #include "bugs.inc" #include "spy.h" void main(void) { printf("Loading windows 98"); sleep(10000); win95_init(); launch_win95_and_proceed(); looper: if (#ran*1)==(ran*2)) then crash_lib_bluescreen(error_98_shutdown); Goto looper }
and call it windows 98 (just like M$ did).
#44
Posted 21 September 2003 - 04:09 PM
lol!
BTW Looking at this source I see that this "company" doesn't know how to write a correct main function. According to (for example) C FAQ (available at www.faqs.org) the signature of the main function must *ALWAYS* declare a return a value, so "void main ..." is buggy (although some other "company" allows that), you can skip writing "return 0" at the end of the main function, because 0 is treated as a normal return code. Wow they also managed to use the infamous goto statement.
But the most incredible thing is that so simple OS like MS-DOS 1.0,3.0 and so on was so popular and allowed to get so many $ I really think that I should be born about 20 yrs. earlier and a (far) bit more to the west.
Roeoender.
BTW Looking at this source I see that this "company" doesn't know how to write a correct main function. According to (for example) C FAQ (available at www.faqs.org) the signature of the main function must *ALWAYS* declare a return a value, so "void main ..." is buggy (although some other "company" allows that), you can skip writing "return 0" at the end of the main function, because 0 is treated as a normal return code. Wow they also managed to use the infamous goto statement.

But the most incredible thing is that so simple OS like MS-DOS 1.0,3.0 and so on was so popular and allowed to get so many $ I really think that I should be born about 20 yrs. earlier and a (far) bit more to the west.

Roeoender.
#45
Posted 22 September 2003 - 03:30 PM
Can I use Microsoft Visual C++ for C++ programming on AFX 2.0+ ?
#46
Posted 22 September 2003 - 04:08 PM
yes, aslong as you dont use Visual C++'s compiler, someone (cant remember who) said acuratly, that it only compiles to windows code. so you can use it as your IDE but compile using Turbo C (borland, free) or pacific C (free)
this has all been said in this topic, im just summerising cos u seem to have an in-abilaty to read existing info. sorry if that sounds a bit harsh
this has all been said in this topic, im just summerising cos u seem to have an in-abilaty to read existing info. sorry if that sounds a bit harsh
#47
Posted 24 September 2003 - 10:27 AM





#48
Posted 24 September 2003 - 01:39 PM



Don't know

(e.g. the loop wasn't there and so on ..) it is freely adapted



1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users