Get/set combo-box text in Win32 (not MFC)
I can use GetDlgItemText to get the text from a control, but I want to clear the selection and SetDlgItemText(IDC_CTRL,_T("")); doesn't work. What is the right approach here? ...
I can use GetDlgItemText to get the text from a control, but I want to clear the selection and SetDlgItemText(IDC_CTRL,_T("")); doesn't work. What is the right approach here? ...
I have a .exe file which I believe was created with VB6. Are there any tools in Visual Studio 6 or later that would let me see any dynamic libraries required for the application to run? ...
I have a feature where I save a file to a location that user specifies. I'm using GetSaveFileName() to show the Save As dialog. I then use the path that it returns to write out the file to that location. I've noticed that it does not work when the user chooses the CD-RW drive on an XP machine. This same process works correctly on Vista a...
I want to create a button that is basically Windows' close button. How could I do this? I want to avoid drawing this myself because I want it to look like that version of Windows' close button. Firefox's tabs do something like this. Thanks ...
I'd like to add a menu to the glass part of the frame in a C++ application which is using WTL and Win32++. Those libraries are probably largely as this is something I'd need to do from Win32. The latest versions of Opera and the upcoming Firefox are going to be doing this but I haven't been able to find a code example. Has anyone got e...
I want to create a 3d application desktop manager in C++. How do I go about making application render to a 3D surface, like OpenGL or DirectX, for example? Any API, information or links would be helpful since I've scoured the net and can't find any information on this. ...
I noticed some applications have a blue circular instead of a checkmark which MF_CHECKED produces. Which style produces this circular one? Thanks ...
I have been working with C++ and Win32 (non MFC/ATL) I am playing around with writing my own class library to wrap certain Win32 objects (HWNDs in particular). When it comes to creating windows, I find the "RegisterClassEx / CreateWindowEx" method very awkward. This design makes it hard to write simple class wrappers (one must resort t...
Can we change/increase the size of console output to view large size of data in console application at once? ...
Hello everyone, I've searched the web and stackoverflow for this. I want to copy multiple files from multiple sources to multiple destinations. I don't bother with UnauthorizedAccessExceptions yet - the files are most likely to not be in use anyway. I can copy 1 file using CopyFileEx-Wrapper from here. However: I'd like the standard w...
I want to learn 32-bit assembly. I got some programming background, mostly high-level languages but also 16-bit ASM. I want to write real simple console applications for Windows (I remember something vague about some difference between Windows and Linux, maybe just when creating graphical applications?). Any ideas where to start? ...
I'm using the SetWindowPlacement function to (1) maximize and (2) change the restore position of external windows on the desktop. But when I use this command on WinForm windows, it doesn't seem to set the restore location correctly. (The WinForm window I'm testing with is just a VS2008 WinForms application run without modification.) So, ...
I was reading this article on MSDN "Managing Heap Memory in Win32" And in it they are explaining about a tool called ProcessWalker.exe In the article they explained that they can use this tool to explore the contents of virtual memory of any process. Does anyone know where I can download this tool from. Or maybe ProcessWalker might b...
I'm trying to get the text from a tab control like this: TCITEM itm; itm.mask = TCIF_TEXT; TabCtrl_GetItem(engineGL.controls.MainGlTab.MainTabHwnd,i,&itm); but the psztext part of the structure is returning a bad pointer (0xcccccccccc). I create the tabs like this: void OGLMAINTAB::AddTab( char *name ) { TCITEM ...
I have a web server which receives an image from a client and do some SIFT based image matching at the server (win32) end send the result back to the client. Receiving image is done using apache and php. SIFT based processing functions are in C++. Now I want to parse the data in php variable $image (the variable which holds the received...
Hi, I've been using libxml2 push parsing (SAX) to parse an incoming XML stream, this works well first time but crashes on the second attempt every time, my code looks like this: xmlSAXHandler saxHandler; memset(&saxHandler, 0, sizeof(m_SaxHandler)); xmlSAXVersion(&saxHandler, 2); saxHandler.initialized = XML_SAX2_MAGIC; // so we do th...
Hi, how can i get the windows search history and use it in my program? For example i write ".doc" in windows search bar. Now i want in my program to find out from somewhere, that i searched for ".doc" in my system(not web). How can i do this? ...
Hello. I read many articles on the topic, a few of them were here, on stackoverflow, but none of them asked my question. I'll try to be specific. I need to create an application (native WinAPI) with a main window (of window class "a"). When the user clicks a button there, a window of "b" class pops up. It might be modal or not, I don't ...
In Windows Vista/7/2008/2008R2, is it at all possible to launch a process in a user's session from a service? Specifically, the local session would be most useful. Everything I've been reading seems to say this isn't possible, but I figured I'd ask here before giving up completely. My service signs on as Local System. I'm coding in V...
Hello. I'm trying to make my main window to receive notifications when user presses a Delete key on a listbox's item. I've tried this: case WM_CHARTOITEM: if( lParam == (LPARAM)hwndListBox ) { sprintf( debug, "0x%x", LOWORD(wParam) ); MessageBoxA(0, debug, 0, 0); } break; .....