Friday, April 8, 2011

My Teacher

I was making my way through MSDN, looking at Win32 API console functions to make my own gotoxy() function in Visual C++ 6.0. My C++ programming teacher looked at my screen and asked:

Teacher: "What are you doing?"
Me: "I'm trying to find out how to make a gotoxy() in Visual C++. I'll have to use Win32 API functions."
Teacher: "No you don't have to use API functions! Just take Borland C++ 3.1 headers and put them in Visual C++ 6.0 include directory."
Me: "Heuh......."
Unfortunately, Borland C++ 3.1 was designed for DOS and Win16. Visual C++ works on Win32. Worse, headers only contain types and class declarations, defines, and function prototypes. I don't know how my teacher thought this would work.

No comments:

Post a Comment