[Dev-C++] 3 distinct doubts in one. :)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <we...@ha...> - 2002-07-24 19:46:51
|
Hi, I have 3 distinct doubts... and will write here... maybe someone can help me. ;) 1) Where can i get the list of API's of Windows with prototypes and examples of how to use or explication of each paramter of prototypes ?? :) (if possible to download it.:)) 2) I done a little code in C (for dos) that read a file binary and change a offset. The code compile and run perfectily. But when i create it under win32 application project project (C or C++) it gave me the error: The instruction at "0x004014b7" referenced memory at "0x026ec5bd". The memory could not be "written". Click on OK to terminate the program. And the some program (with the some code) work properly in a project od C (for 16 bits). Why this problem ?? A Bug in Dev-C++ ?? How to fix it ?? :) 3) How to use "format strings" with MessageBox ?? For example in normal i do: MessageBox(NULL, "File not found!!", "ERROR", MB_OK); Suppose that i want print "File name_of_file not found" suppose that the name_of_file is a vector. Example: char File[]="ProgTest"; I tryed of several ways like: MessageBox(NULL, "File %s not found!!", "ERROR", MB_OK,File); Or: MessageBox(NULL, "File %s not found!!",File, "ERROR", MB_OK); But it didn't work. It say that have much arguments to MessageBox. Then how to do it ?? Thkz... and Best Regards. [ ]'s |