i wish to make either a dos based program, or a text based one, i plan to use the method shown in the tip about console programming in vb, but how to i retrieve input the same way i would using 'cin' in C?
Printable View
i wish to make either a dos based program, or a text based one, i plan to use the method shown in the tip about console programming in vb, but how to i retrieve input the same way i would using 'cin' in C?
To my knowledge you can't. You can trap dos text with API functions or you can take dos params in a sub main() or output to a batch script if you like but if you know about iostreams like cout and cin then why no just use C? I use Borland C++ builder for my dos apps because Borlands AnsiString functions are quite good.
What are you trying to do exactly?
i would use vc5 but i have no idea how it compiles to dos, i believe i have to use cl.exe?
VC5++ has a options at the beginning for project type and you just choose, er win32 consol I think. then you just code like the wind. if you're writing something small you don't have to get involved with all the MFC crap either.