Search:
Type: Posts; User: Jehjoa
Search:
Search took 0.03 seconds.
-
December 12th, 2008, 12:27 PM
This is actually very easy to do, and has nothing to do with driver programming whatsoever. In fact, you have probably already done this at least few hundred times without realizing it.
For...
-
September 16th, 2008, 04:49 PM
The easiest solution would probably be to add CS_HREDRAW | CS_VREDRAW to the class styles, but there's a very nice article about this sort of issue here, which also gives other solutions that might...
-
September 16th, 2008, 04:32 PM
Hi John, thank you for replying. I'm sorry for responding so late but I only just discovered the CodeGuru notification in my mailbox. ;)
Okay, so this is actually pretty funny. I found out...
-
September 10th, 2008, 02:29 AM
I'm not 100% sure, but I think you indeed need to URL encode the entire string. There's no API for it (as far as I know), but it's very easy to write such a function yourself. Have a look at this...
-
September 7th, 2008, 01:30 PM
Yes, we know. But, as I understand it, ybenaabud's problem is that he (or she :eek: ) can't even allocate 400 MB on a 3 GB system while I can allocate 1732 MB on a 2 GB system with 1 call to...
-
September 7th, 2008, 10:49 AM
Okay so I got interested and wanted to test it out, so I launched Visual Studio 2008 and started hacking away. :)
Here is my code:
common.h
#ifndef _COMMON_H_
#define _COMMON_H_
#define...
-
September 7th, 2008, 07:34 AM
To be honest I'm not sure why it doesn't let you do it, but why would you even want to allocate such a large amount of memory in one go? If you're trying to load a large file into memory, have a...
-
September 7th, 2008, 07:14 AM
Yes, I know what WM_COMMAND and WM_USER are for, that is not the problem. The problem is that my window procedure constantly receives WM_COMMAND messages where:
HIWORD(wParam) == WM_USER; //...
-
September 7th, 2008, 03:49 AM
I've never used Borland's compiler or the TMediaPlayer class, but it looks like you're trying to use a class without instantiating an object of that class.
At the moment, you have a pointer to a...
-
September 7th, 2008, 02:48 AM
Hello everybody,
I thought my program was working exactly as expected so far, until I decided to have a closer look at the window messages my window procedure is receiving.
My program is...
-
March 25th, 2007, 03:13 AM
I don't know if there's a better API function to use, but if you're going to use GetForegroundWindow, don't make an infinite loop... Remember that your program needs to play nice with other programs...
-
March 25th, 2007, 03:10 AM
Great that you got it working. :thumb:
-
March 22nd, 2007, 10:05 PM
I always include TCHAR.h to my projects and use the TCHAR type instead of a char or wchar. That way, your program will always compile, ANSI or Unicode.
-
March 22nd, 2007, 05:50 AM
Yeah, Windows XP SP2... :confused:
-
March 21st, 2007, 04:37 PM
Well I ran the listview_thread.exe and sure enough, after clicking a list item the threadcount in Task Manager changes from 1 to 3... You did click an item while testing, right? :)
If you did, how...
-
March 21st, 2007, 04:26 PM
A window that gets hidden is taken off the screen and loses focus, but it isn't 'deactivated' in the way that you mean. Sure, the user doesn't have a way of interacting with it, but the window is...
-
March 21st, 2007, 04:17 PM
Hmm very strange. The only other thing I can think of is that maybe something is wrong with the function that gets the file path from the text file... Maybe you start reading directly after the comma...
-
March 21st, 2007, 12:05 PM
Sure, I don't mind sharing my code... There's hardly anything interesting in it at the moment, anyway. :) Thanks for having a look kkez, that's pretty cool.
I uploaded a file here so anyone can...
-
March 20th, 2007, 04:59 PM
Hmm you're right about the LPCTSTR thing. Sorry for sidetracking you there.
HINSTANCE MyInst = NULL; // always initialize your variables
int iInstance = 0;
MyInst = ShellExecute(NULL,...
-
March 20th, 2007, 07:07 AM
As MikeAThon said, to be able to program anything for Windows in C++ you need to download the Windows Platform SDK. It contains the windows.h file, among others. I found a DVD image of the SDK here.
-
March 20th, 2007, 03:53 AM
Well that is funny. I was just working on a little side project (the Process Explorer program made me interested in trying to make a similar program myself), it uses a ListView control as well, and...
-
March 20th, 2007, 03:36 AM
Well I don't know anything about string objects because I always just use TCHAR's, but I just googled for an explanation of it, and it appears that the c_str member function returns a pointer to a...
-
March 20th, 2007, 02:09 AM
From the top of my head:
bool hasStyle (HWND hWnd, DWORD style) {
return (style & GetWindowLongPtr(hWnd, GWL_STYLE));
}
bool hasExStyle (HWND hWnd, DWORD style) {
return (style &...
-
March 18th, 2007, 06:12 AM
Well, I downloaded Process Explorer from MSDN to have a look at those threads. The first thread's starting address is wdmaud.drv!midMessage+0x306 (screenshot), the second's is...
-
March 18th, 2007, 12:05 AM
You are looking for this: Open and Save As Dialog Boxes. You're welcome. :D
|
Click Here to Expand Forum to Full Width
|