~ Б0ЯИ Τ0 С0δЭ ~
20Jun2009,00:05   #11
SaswatPadhi's Avatar
I already have gone through 25 out of the 40 tutorials by lena.
Invasive contributor
20Jun2009,00:56   #12
mayjune's Avatar
ah no wonder, hey then tell me i wrote a very simple code in c (using turbo c) just printf and scanf
ran it in olly it didnt work..any idea why?
i just wanted to see what the most basic code looks in olly...

ps - cool it will push me to go faster.. to catch up with you

Last edited by mayjune; 20Jun2009 at 01:01..
~ Б0ЯИ Τ0 С0δЭ ~
20Jun2009,07:16   #13
SaswatPadhi's Avatar
Quote:
Originally Posted by mayjune View Post
(using turbo c) just printf and scanf
ran it in olly it didnt work..any idea why?
I didn't get that ?? What do you mean by "didn't work" ??!?

If you wonder where all the printf and scanf has disappeared, let me tell you that you can see some calls to the Windows API function : msvcrt.scanf, wsprintf, wvprintf etc..
Invasive contributor
20Jun2009,16:37   #14
mayjune's Avatar
@saswat
it said unable to open or read file..?
~ Б0ЯИ Τ0 С0δЭ ~
20Jun2009,18:38   #15
SaswatPadhi's Avatar
Oh ! I see, Turbo C executables are 16-bit and Olly handles only 32 bit.

Try to write in ANSI C.
Invasive contributor
20Jun2009,20:41   #16
mayjune's Avatar
@saswat
i went to turbo c ->options ->compiler ->sources -> keywords ->ansi
creted the file
ran it same error?
~ Б0ЯИ Τ0 С0δЭ ~
21Jun2009,06:19   #17
SaswatPadhi's Avatar
No no no ... Turbo C is not up to the ANSI specifications.
The setting you changed, just changes "how" Turbo C recognises the KeyWords.
Turbo C compiler can compile to 16-bit ONLY.

When I said ANSI C, I meant that you should use some compiler like :
(*) GCC
(*) Microsoft VC++ Express (2008 or 2005)
(*) OpenWatcom C/C++ Compiler
(*) Digital Mars C/C++ Compiler
(*) BloodShed DevC++ Compiler
(*) MinGW32
(*) DJGPP etc ..
which conform to the latest ANSI C specifications.
Invasive contributor
22Jun2009,14:09   #18
mayjune's Avatar
alright thanks, will try and see