First  |  Prev |  Next  |  Last
Pages: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
How to make a Dialog resizable
Hi, I am dealing with dialog window created usign ResEdit as a resource editor. Now, I'd need to make a window resizable and to have all the child controls in it resize themselves according to the dialog size. Can iy actually be done? This is the code for the dialog: [code] // // Dialog resources ... 16 Feb 2010 07:32
About main()
In the C++standard there is the following text (3.6.1.2) "An implementation shall not predefine the main function. This function shall not be overloaded. It shall have a return type of type int, but otherwise its type is implementation-defined." What does mean "otherwise"? Does it mean that the main may ... 17 Feb 2010 17:57
Overloading member functions, some virtual, some not
Hi folks, Got the following class hierarchy, and am getting a strange compile error from it: class RootFinder { public: virtual ~RootFinder(){} double findRoot( const Function1D& func, double guess ) const; virtual double findRoot( const Function1D& func, double min, double max ) const = 0; priv... 14 Feb 2010 12:56
open iexplorer with url
Hi, What's the basic function to open iexplorer with a specified <url>? I know about WinExec(), but you can't specify an <url> there, as far as I know. Thanks, MK ... 14 Feb 2010 00:54
add items to a list view
Hi, I am using the following code to create a List View Control: //////////////////////////////////////////// // Adding List-View Columns TCHAR szText[256] = {0}; TCHAR szString[5][20] = { TEXT("Column 1"),TEXT("Column 2"),TEXT("Column 3") }; HWND hlistview = CreateWindowEx(0, WC_LISTVIEW, 0, WS_VISI... 13 Feb 2010 20:33
Using an OCX class from a non-MFC, non-GUI app?
Is it possible to call methods in a class provided in an OCX from a non-MFC, non-GUI application? I have a console mode app (C++, VS 2008 v9.0, XP SP3) that needs to talk to some special hardware (an infrared camera). The vendor provides software to do so, but they've provided it as a .h file and a .ocx file.... 12 Feb 2010 14:37
Create custom macro for message cracker
Hi, I would like to create custom macro (and methods) in order to deal with message sent from the menu, so far I have coded the following: #define STRICT #include <windows.h> #include <windowsx.h> #define IDM_BLOCK 800 // Declare Custom HANDLE MSG // #define HANDLE_IDM_BLOCK(hwnd, wParam, lParam, fn)... 12 Feb 2010 13:29
Calling TerminateThread() from the thread itself?
Q: Is it safe to call TerminateThread from the thread itself? TerminateThread seems to be generally considered evil, however I was wondering if the following is safe: DWORD WINAPI ThreadProc(LPVOID lpParameter) { // ... while( keep_running() ) { // ... if( terminate_immediately() ) { ... 20 Feb 2010 13:33
Combo Box Special Style
Hi, I am creating a combo box via C++ code in order to abtain the third combobox on the right shown in the picture below: http://i.msdn.microsoft.com/Bb775791...s,VS.85%29.png The following is the code: HWND hvComboBox = CreateWindowEx(0,WC_COMBOBOX,NULL, WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST | CBS_HA... 11 Feb 2010 13:57
Endless loop of First Hand Exceptions
Hi there, I realize that my question probably cannot being answered from this forum. But what I'm looking for is some guidance on how to tackle my problem. For some reason I believe my c++ runtime is messed up. The reason I say that is that I get an endless loop of the following message when calling fflush(...):... 18 Feb 2010 16:16
First  |  Prev |  Next  |  Last
Pages: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22