|
HelloWin! Hi, Trying the first windows program in Charles Petzold's book and getting many errors. Boy, this windows programming, not an easy world ! Here is the code in its simplist nature: #include <windows.h> LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); int WINAPI WinMain (HINSTANCE hInstance, HINSTA... 13 Sep 2005 21:08
Which one?(for experienced ones) Hi: So... I'm a newbie in C++. I have to work a lot using STL, since some one told me to read about it. My tool: VC++6.0 If you could recommend a good book from the list bellow(or any other), that should be the best help. 1. Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template L... 9 Sep 2005 11:16
URLDownloadToFile URLDownloadToFile is a blocking function. To avoid hang of GUI, if to make use of the URLDownloadToFile() callback, inside the callback, peek and dispatch messages waiting in the message queue, then continue processing. void OnProgress() { MSG msg; while (PeekMessage(&msg,0,0,0,PM_NOREMOVE)){... 6 Sep 2005 00:43
LINK : warning LNK4089: all references to "SHELL32.dll" discarded How could i resolve these 2 warnings? LINK : warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF LINK : warning LNK4089: all references to "comdlg32.dll" discarded by /OPT:REF P.S. I tried removing <name>.lib from Linked to list, and putting them in Ignored Libs list: didn't help. Thanks.... 2 Sep 2005 14:40
CreateFile and multithreading Hello, I just found out that file is not locked if I use that file attributes FILE_SHARE_READ and FILE_SHARE_WRITE. Does it mean that I don't have to use synchronization mechanizm for reading and writing and system will take care of that? thanks CreateFile(lpszFileName, GENERIC_WRITE | GENERIC_READ, FILE_S... 29 Aug 2005 13:22
FindFirstFile I write a code to see files and subdirectories of a directory. But if a directory has no subdirectory or any file, findClose does not release directory handle. So I cannot remove that directories. (It does not enter if block pointed by 4). But filefinddata shows ".." as cfilename. But handle shows 0xFFFFFF.Altho... 8 Sep 2005 11:04
how to solve "Non-modal forms cannot be displayed in this host application" Hi, I am trying to make a modalless form in VB6 that is compiled as an ActiveX DLL. When i use VC6 to instance the activex DLL, my problem appears that "406 Non-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX control or Property Page." I have my form in modalless style in... 19 Aug 2005 09:58
Weird behavior / bug(?) with VC++ Studio 2005 (Beta 2) I am getting the following 2 error messages from the compiler: f:\development\projects 2005\fc\fc.cpp(296) : error C2664: 'wsprintfW' : cannot convert parameter 1 from 'LPSTR' to 'LPWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast f:\... 16 Jun 2005 14:41
LNK2001 Hi, I have a project for a debugger which I want to recompile ***in file emu1_module1.asm, I have PUBLIC main_IT main_IT instr_properties <<0, 0, 0>, 0, 0> ;NN_null ***in file emu1.inc, I have main_IT equ ?main_IT@@3PAUinstr_properties@@A ***in file winNT_x86_emulator.cpp, I have extern instr_prope... 15 Jun 2005 10:06
__imp___CrtDbgReportW Hi! I've got an unresolved symbol : __imp___CrtDbgReportW But I never use _CrtDbgReport... :-/ Here is my config : - VC8 Express beta 2 - Compiling in debug mode - Using /MDd (Multithreaded Debug DLL) - Using RTTI (/GR) - Project imported from VC6 and modified - <crtdbg.h> never included directly in the pr... 15 Jun 2005 06:54 |