First  |  Prev |  Next  |  Last
Pages: 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
CoUninitialize in ExitInstance hangs
Language: Visual C++ 6.0; MFC app with CWinApp-based class OS: WinXP I use a COM component ( in MFC app. I release it BEFORE call of ExitInstance; in ExitInstance I call CoUninitialize. This CoUninitialize hangs. If I call CoUninitialize not from ExitInstance but r... 17 Feb 2010 00:07
newbie: how to cast a callback function to DWORD_PTR
I'm trying to provide a callback function to midiInOpen ( Windows MIDI library ). The docs say the callback should be defined as: void CALLBACK midiInProc( HMIDIIN hMidiIn, UINT wMsg, DWORD_PTR dwInstance, DWORD_PTR dwParam1, DWORD_PTR dwParam2 ); and the midiInOpen signature itself is... 15 Feb 2010 03:15
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... 14 Feb 2010 16:16
Memory map of a Windows process
David Given wrote: Does anyone know where I can find what a Windows' process internal memory map looks like? For 32-bit. I'm looking for things like where the main executable is loaded, what areas are reserved for the heap, where any areas Windows itself uses are, where DLLs appear, etc. All I can se... 14 Feb 2010 10:39
return a string to copydata
I have 2 applications, exchanging data via WM_COPYDATA. Application 1: string tosend = "Some text"; COPYDATASTRUCT cd; cd.dwData = SomeValue; cd.cbData = static_cast<DWORD>(tosend.size()) + 1; cd.lpData = const_cast<char *>(tosend.c_str()); int result = SendMessage(FindWindow(Application2,0),WM_COPYDATA, (W... 17 Feb 2010 00:07
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 12:18
List View: sort by "foo" does not keep "foo" hilited??
i've got a list view table showing. when i click a column header, it sorts by that column, but does NOT keep the header hilited, showing you that it is sorted by that column. how do i keep the column header hilited? ... 11 Feb 2010 20:43
Need to extract Non Exported functions of dll
Hello, I need to extract all non-exported (global or member functions of class) methods of certain DLL. GetProcAddress always takes decorated functions of exported functions and returns function pointers against these. Is it possible to look up non exported functions of certain DLL. How.?? Regards Muhamma... 12 Feb 2010 12:18
Recommended Debugger for PE?
Hello, I need to look up the exact addresses where .text, .data and other sections starts in the PE Image. What Image base address and how much should be added to get the inner sections(i.e objects) e.g .edata,.idata and all other. What tracer or debugger would give the exact picture which I needed. Regards... 11 Feb 2010 10:31
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:,VS.85%29.png The following is the code: HWND hvComboBox = CreateWindowEx(0,WC_COMBOBOX,NULL, WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST | CBS_HA... 12 Feb 2010 02:13
First  |  Prev |  Next  |  Last
Pages: 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41