|
I 100% recommend Kruglinski: Inside Visual C++ version 4.
It's about VC 4.0 but still valid for the majority of the field. Don't know if there is any new editions of it.
And for non-MFC windows programming, which is very usefull even though you use MFC:
Petzold: Programming Windows 95 (maybe there's a new version here too)
Richter: Advanced Windows
Cheers
Steen.
"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
|
|
|
|
|
Hello,
I just developed a CWnd derived class.
I include this Wnd in a DialogBox.
I'm able to handle the On<r l="" m="">Button<down up="">, but when I add the OnMouseWheel, the function is not send the my CWnd-derived class.
Any clue ? Do I forgot something ?
Thanks,
Stephane
"It is ridiculous to claim that video games influence children.
For instance, if PacMan affected kids born in the eighties, we
should by now have a bunch of teenagers who run around in darkened
rooms eating pills while listening to monotonous electronic music."
|
|
|
|
|
I'm on W2k SP2 VCPP6.0 SP ( the last one )
"It is ridiculous to claim that video games influence children.
For instance, if PacMan affected kids born in the eighties, we
should by now have a bunch of teenagers who run around in darkened
rooms eating pills while listening to monotonous electronic music."
|
|
|
|
|
Hi,
I would like to do in Windows-based with Visual C++ the following command:
Convert.exe file1.dat file2.txt
The above is in DOS Command line. I wonder how to do in MFC.
I have explore CreateProcess(),ShellExecute, WinExec,Spawn etc, in vain...! please help...!
Thanks,
/Sophal
|
|
|
|
|
ShellExecute(NULL,"open","C:\\convert.exe","file1.dat file2.txt",
"",SW_SHOW);
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Hi,
I would like to do in Windows-based with Visual C++ the following command:
Convert.exe file1.dat file2.txt
The above is in DOS Command line. I wonder how to do in MFC.
Thanks,
/Sophal
|
|
|
|
|
Two identical posts except for that one extra line in the other post.
Maybe you should have modified this one instead of re-posting jus to add a line. Or you could have replied to your own post, addin the new line.
a new thread jus to add a line to the old thread is .... well,......
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Hi!
const int TOTAL_LEN = 8;
CString lBuffer;
lBuffer.Format("%8s","hello");
// I want to use the macro (TOTAL_LEN) instead of hardcoding '8'
// in the Format of the String
// something like
lBuffer.Format("%TOTAL_LENs","hello");
// obviously the above would result as "TOTAL_LENs" and not " hello"
// basically I want to insert spaces using the constants
// and without using the for loop
// CAN I DO IT or do I have to stick with the for loop
|
|
|
|
|
thanks Bijesh, it worked
I really appreciate it!
kpsr
|
|
|
|
|
lBuffer.Format("%s%s", (LPCTSTR)CString(32, TOTAL_LEN), "hello");
Best Regards....
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Being a bit dim today. I have a popup menu on a modeless dialog box as part of an MDI app. When I bring up the popupmenu, one of the menu items is not avaliable, as it is implemented by the mainframe, and not the dialog. I would like both the dialogs and the mainframes pop ups to be avaliable. I though of implementing the menu item in the dialog, and posting a message to the Mainframe, that simulates a menu click.
I wonder if that makes sense.
Any ideas on how to do this?
Giles
|
|
|
|
|
Instead of trying to simulate a menu click on the mainframe, why dont you simply call the menu click handler from the mainframe class?
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Hi Nish,
Do you mean OnMenuSelect? Could you give a simple example?
(Quick one, how do you get though so many forums in one day?)
Thanks once again,
Giles
|
|
|
|
|
What I meant was that your menu-item handler in the modeless dialog should simply call the corresponding menu-item handler in your main frame class.
use AfxGetMainWnd to get a pointer to your main frame class
Giles wrote:
Quick one, how do you get though so many forums in one day
My about:blank is codeproject.com
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
I'd like a random function in c++ language. I see function rand, but this function is not performed.
|
|
|
|
|
|
hi ferdinando
You need to use srand first
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Hi, all.
=======
I have Win2000 + Drivers + Software + Games on a 45GB Hard Disk.
I would like to create an app that will image my FAT32 Hard Drive to a file.
And then from the image file to clone it to another 45GB HD.
Please, HELP.
BTW: come to #CodeProject on DalNet (mIRC)
|
|
|
|
|
Norton's GHOST
- - - - - - - - - - - - - - - - - -
Memory leaks is the price we pay \0
01234567890123456789012345678901234
|
|
|
|
|
Yep, something like Norton Ghost.
The only reason I want to do it, is because I don't understand how to use Norton Ghost.
If you can help me in anyway, please do.
10x.
BTW: come to #CodeProject on DalNet (mIRC)
|
|
|
|
|
Hi,
Can anyone please help me to get the background color of a standard dialog box on XP. I know the default color on XP is RGB(236,233,216) but is there an API function that will return the RGB color if the Display is changed to a different theme from the control panel.
Thanks,
Tiegster.
|
|
|
|
|
Have a look at GetSysColor.
Michael
|
|
|
|
|
Hi Micheal,
Thanks for the suggestion. I have been using GetSysColor for the Win2000, 9x etc but the problem is that when the theme for WinXP is changed the value returned for GetSysColor stays the same.
So for example if I use GetSysColor(COLOR_MENUBAR) this gets the correct color for a dialog. However if the default theme is changed to say Windows Classic the color returned is still the same even though the Menu Bar color has been changed.
(The reason I choose COLOR_MENUBAR is that it is the only one I could get to match the default XP dialog background.)
Thanks again for your help and if you have any further suggestions or if anyone else can help, I'd be really grateful.
|
|
|
|
|
Another XP bugs?
Post to Microsoft Support sites.
|
|
|
|
|
I have this problem : I wrote a program with German and English resources .
I would like to be able to change the resource language during program
execution , or at least to load the correct resources at start time .
In Win2000 I changed the location to German but it loads the English resources. At WinNT it works...What can I do in Win2000?
plz..plz...plz
Jancsi
|
|
|
|