|
Colored Edit control Hello, all: I'd like to be able to change the color of an edit control during program operation, as a status indicator. From what I've read, anything involving control color requires subclassing, so that's what I'm trying to do. The control (with a lot of other controls) is on my main window, which is itself... 6 Jul 2008 07:52
How to know when user use task switching Hi group! I'm writting an application and I need to know when user changes tasks (ALT-TAB, for instance). The application is a full screen DirectDraw app. I need to know when the user activates the application and when the user changes to other application. First I've tried to capture WM_SETFOCUS and WM_KILLFOC... 4 Jul 2008 16:09
Time measurement problem during task switching Hi everybody, I written a DLL to interface with a custom PCI device; manufacturer provides me via another DLL some functions to write and read bytes to device and some other to know if board is ready to accept or send data. What I need is to implement a timeout mechanism when my DLL has to wait for some data, I'... 4 Jul 2008 04:53
User Defined Resource? I have created a binary graphics type and I save them as binary files. I can load those files in my graphics constructor but I would like to load them as resources. The data in the file is first the number of graphics (int) then a vector or an array of the data of BYTE types. How do I read the resource then ta... 4 Jul 2008 19:13
Basic question about resources/ How do I create a resource from either a binary fine or a text file. I have programs where load in text or binary information but I would like to load them as resources. EX: for(int lp = 0; lp != end; lp++){ f.read((char*)&bitData[lp], sizeof(BYTE)); } or: ifstream f ("table.txt"); if (! f.is_o... 4 Jul 2008 21:16
Changing the wallpaper with Python Hi, I'm trying to write a script that'll change the wallpaper to a randomly selected one each time its run. I've got it set up to point to a folder and randomly select a wallpaper from there, and then change the value of HKEY_CURRENT_USER\Control Panel\Desktop \ConvertedWallpaper to the path to the newly selected ... 5 Jul 2008 15:35
Updating file version number using UpdateResource Hi, I need to update the file and product version numbers of EXEs and DLLs written in VB6. After doing some research on the net and using some examples written in C++ I've come up with the code below. When I run it the return values of the API calls indicate that they succeeded but the version number of my samp... 3 Jul 2008 15:36
get a window not a console [Cross-posted to comp.os.ms-windows.programmer.win32 and Followup-To set to that group.] Jrdman said: what's the minimum code should i add to this code: #include<windows.h> int APIENTRY WinMain(HINSTANCE hinstane, HINSTANCE hpinstance, LPSTR lpcmdline, ... 3 Jul 2008 10:26
recursive directory walk I need some working code that walks a directory tree and (at least) prints out the full path of every file. it must work on windows 2000/ xp/vista, and (hopefully) windows 9x. Is there a possibility of getting both dirent.h code for Borland C++ 5.5 and (at the least) win32 code using FindFirstFile/FindNextFile/ ... 3 Jul 2008 10:26
A problem with a small error Hi, I'm learning windows programming by reading Petzold's old book and I have some code that gives me an error saying: "IDM_BKGND_WHITE undeclared identifier" I can't argue with it cause i don't know where this identifier came from and it's not in the MSDN help. does anyone have any idea? // "MenuDemo.c" Line 5... 4 Jul 2008 03:52
wininet InternetFindNextFile always returns NERR_NetlogonNotStarted I'm trying to do a file enumeration on an ftp server using wininet library functions. My code is: //------------------------------------------------------------------------------------------------------------ hINET = InternetOpen( TEXT("An Ftp program"), INTERNET_OPEN_TYPE_DIRECT, NULL, NUL... 1 Jul 2008 16:27
changing TS session in thread Is it possible for a thread to change to a different Terminal Services session by using ImpersonateLoggedOnUser() ? My process is running as a service in Session 0, I can get the primary token for a user running in Session 1. If I do CreateProcessAsUser() using that token, I get a new process running in sess... 1 Jul 2008 13:21
How to disable the copy and paste options of a textbox popup menu? Hi, How can I disable the copy and paste options in a textbox (and combobox) standard popup menu? Thanks! ... 1 Jul 2008 15:25
Enable printer sharing in windows XP I am trying to enable the printer sharing in windows XP programmatically. The operation i am trying to imitate is: 1. right click on a local printer (in printers and faxes window). 2. choose sharing from menu. 3. press on the "I understand the security risk..." hyper link. 4. choose just enable printer sharing. ... 6 Jul 2008 11:57
Memory Issues in RPC <alien.0101(a)gmail.com> wrote in message news:372a50a0-61be-4a9e-ab0b-b2c7c9bb7dd1(a)s33g2000pri.googlegroups.com... Hi Guys, I am creating a client server program using RPC. I have Server API in IDL as: IDL: HRESULT GetBlob([out] DWORD *pdwBlobByteCount,[out, size_is(,*pdwBlobByteCount)]... 1 Jul 2008 08:12 |