Hi,all. I'm a Chinese college student.I'm studying Computer Sciene in a school in China. The problem is almost all school use Turbo C 2.0 as the main compiler when they teach C language course. And thus, almost all beginners think the Turbo C is the essence of learning C language,and they start by using it.Still a lot of people think that Turbo C is the main developement tool.And for C++ beginners , they also think that they should beginner with Turbo C. So,What do you think of this problem?Does this create problems? What do use when you a beginner? And What compiler do you think is suitable for a beginner?
yndfcd
Posts
-
About Turbo C -
how to find whether a file already exists in a folder?WIN32_FIND_DATA wsd; HANDLE hFind = FindFirstFile(pszFileName, &wsd); if(hFind != NULL) { //the file does exist }else{ MessageBox(NULL, "Error", "The specified file does not exist.",MB_OK); } FindClose(hFind);
-
some doubts about PeekMessageNo.You can't do that either.
-
Catching clickingAdd a button on the dialog use dialog editor, and appoint the same ID as you call CButton::Create.Than you can add message handler for that button.After a the message handler has been added, you can delete that button on the dialog, and create it at run-time. Note:using the same ID is crucial. This is very tricky techniques.
-
Need help displaying Chinese characters in a CListCtrlYou need a Chinese Operation System.
-
wm_create problemsIn fact it's CS_GLOBALCLASS,I've forgotten a word. When you call CreateWindow or CreateWindowEx,the function will compare the hInstance you passed to it to the hInstance of the WNDCLASSEX hInstance field. Set the style field to CS_GLOBALCLASS tells the function that it should not compare these two values.
-
some doubts about PeekMessageConsole Applications don't recieve windows messages.
-
How to get HMODULE/HINSTANCE handle of a different application?The second parameter is NOT the HINSTANCE of the appliction you want to hook, but the HINSTANCE of the dll contaning the hook procedure. so you can write a DllMain function, and store the HINSTANCE of the dll in a global viriable.when you call SetWindowsHookEx, use the global viriable as the second parameter.
-
wm_create problemsAdd this line to your code wc.style = CS_GLOBAL; //initial other fields RegisterClassEx(&wc);
-
What are the advantages of a string table?Using string table, you can switch user interface between deferent languages. Is this an advantage?