|
So CStdioFile will read file for you.. SetDlgItemText and GetDlgItemText will do the job for setting and getting text for you!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
do you know code of program :"compress image"?
help me.thanks
|
|
|
|
|
I think you're looking for google.
The most obvious way to compress an image is to save it as a jpeg.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
THANKs
|
|
|
|
|
You're welcome
|
|
|
|
|
Hi
I have a question regarding map file please help me
I made a release version of an application with map file so that if my application crash I easily pinpoint out the function/s causes that problem. Unfortunately the Crash address that I get is not included in the map file that Ive created, it seems that the preferred load address of my Map file is 0x00400000 and all the crash address that I have are startin 0x006...
I hope you could help guys
waiting for your response ASAP
|
|
|
|
|
Sure that the crash reported from your exe/dll/module? Double check the crash error dialog
|
|
|
|
|
Yah! Im positive and abosulutely sure that those crash log was from my exe file. but when i search that log file to my map file the crash address was not found. How I will resolved this thing? Thanks
|
|
|
|
|
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q196/7/55.asp&NoWebContent=1
|
|
|
|
|
Thanks for the site, I already know how to read the crash logs using Map file. anyway I suspected that error occur in one of the DLL that I've used. Maybe I will just create a released exe file with debug information.
Thanks for your help again,
|
|
|
|
|
You need a stack dump. You probably called a function in a DLL with bad parameters. By the way, you don’t need to use MAP files to debug release builds, and in fact should not. Simple make your release builds with debug information and debug as normal.
Steve
|
|
|
|
|
Yha! Maybe your right, I will create a new release exe file with debug information and I will deploy it again. just incase that the problem occur again I will easily debug and saw it in the call stack using the crash address
Thanks again Steve,
Till next time
|
|
|
|
|
I feel dumb for asking this - but:
In VS2005 in an MFC project, how do I add an WM_INITDIALOG - Handler to a dialog?
"Events" only list child controls, and "Messages" does not include WM_INITDIALOG (only gems such as WM_INITMENU and WM_INITMENUPOPUP). I can't find anything either in solution explorer or the dialog editor.
2
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers! We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP Linkify!|Fold With Us!
|
|
|
|
|
I'm on 2003, but it's in the overrides (OnInitDialog()), not in the messages. MFC makes the
virtual call always so there's no need to handle the message directly
Mark
|
|
|
|
|
Ah thanks!
I wasn't aware that some message get their own vitual function.
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers! We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP Linkify!|Fold With Us!
|
|
|
|
|
The new IDE is a real pain that way. I generally end up adding stuff by hand.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
My recent 5-part article describes how. Go here and go about 3/4's down the page to find it.
http://www.codeproject.com/samples/SDIMultiSplit_Part1.asp[^]
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
You are not very encouraging
In my hunt I came across the "Add function" wizard - this is just the most terribly overcoded underengineered dialog just after the function wizard you get from a n00b. My eyes hurt.
[edit]this is a reply to Christian graus...[/edit]
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers! We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP Linkify!|Fold With Us!
|
|
|
|
|
peterchen wrote: In my hunt I came across the "Add function" wizard - this is just the most terribly overcoded underengineered dialog just after the function wizard you get from a n00b. My eyes hurt.
What about Variable Adding Dialog Box.. while adding Cntl variable for each control on Dialog Box... it really big pain.. as you have to open it again and again
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Hy, since I'm new to MFC/C++ programming, I could really appreciate some help.
So can someone please explain to me what function should I use if I wanted to change the color of the dynamic (input) text that user enters? The user should be able to select the color he wants.
Thanks
Alessandra
|
|
|
|
|
You can add a WM_CTLCOLOR handler to your window/dialog class and in your handler method, use
SetTextColor() to set the color for edit control(s). The background color can also be set.
Something like this:
HBRUSH CMyWnd::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CWnd::OnCtlColor(pDC, pWnd, nCtlColor);
if (nCtlColor == CTLCOLOR_EDIT)
{
pDC->SetTextColor(RGB(0x00,0xFF,0x00));
}
return hbr;
}
To let the user pick a color you could use the color-picker common dialog (the MFC CColorDialog
class wraps it). Store the COLORREF picked by the user and use it in place of the
"RGB(0x00,0xFF,0x00)" in the code above.
Mark
|
|
|
|
|
Thanks
Alessandra
|
|
|
|
|
can someone help in some way i could monitor un EXE stack and read the respective handles like in real time to try to find out what is going on in the stack and what is happening in the handle system...
its a uni work to detect if un exe was changed or not, i detected a strange handle that apears with diferent names but some information is the same, but the memory where the handle is located it changes each time i run the 2nd prog that changes the 1st prog..
someone could help me with a doc to write a smal thing in c++ to read in real time in way to monitor a exe stack and handles..
someone could help what means size of a handle: 0x0001e000 (???) in size this is what ?
|
|
|
|
|
no one ???
|
|
|
|