Re: [Dev-C++] 3 distinct doubts in one. :)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Hongl L. <h....@ch...> - 2002-07-24 20:18:47
|
we...@ha... wrote: > 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.:)) > http://msdn.microsoft.com/ > 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 ?? :) I can't give you any information without looking at your source code... > 3) How to use "format strings" with MessageBox ?? > > For example in normal i do: > > MessageBox(NULL, "File not found!!", "ERROR", MB_OK); Add -liberty to compiler options. #include <libiberty.h> char *msg; asprintf (&msg, "File %s not found!!", filename); MessageBox (0, msg, "ERROR", MB_OK); free (msg); |