Re: [Dev-C++] 3 distinct doubts in one. :)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Abhijit S. <mu...@gm...> - 2002-07-25 17:59:53
|
> 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.:)) Hongli mentioned MSDN, which is very good, but is online... this is an offline reference: http://www.borland.com/devsupport/borlandcpp/patches/BC52HLP1.ZIP > 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. Try this: char buf[appropriate_size]; wsprintf(buf, "This is my cool-dude message with args and stuff: %s %d", msg, some_num); MessageBox(NULL, buf, "Title", MB_OK); |