Archived

This topic is now archived and is closed to further replies.

Dwiel

converting Borland header to VC++ header

Recommended Posts

I have a header file that came with a book I rented from the library, so I don''t the name of, but it had a file called "conio.h", wich I already have for VC++ 6.0, but when I try to use the functions in it, It gives me the error: link error: .. unresolved external _puttext ... Basicaly, It can''t find the implimentation for the function "puttext" because, the implimentation is not in the header file. Implimentations are not in my other conio.h file, but those functions still work why is this? There are functions for moving the cursor in DOS mode, and placing text at location x, y in DOS mode which my other conio doesn''t have. If there are any functions that come with VC++ 6.0 that do this, I would be just as happy. Also I don''t have windows running. Just DOS. Thanx for the help Zach Dwiel

Share this post


Link to post
Share on other sites
Implementations (generally) are not in .h files, only declarations are in .h files, so copying over some extra declarations wouldn''t help you any.

Borland has a bunch of non-standard stuff in their conio.h file, that Visual C does not contain. Since Dos console manipulation is going to be non-standard, then you just have to figure out what methods your current compiler libraries have for that sort of stuff. For Visual C, I believe you need to look up AllocConsole and that family of functions.

HTH
--michael

Share this post


Link to post
Share on other sites