|
rajaratk wrote: Expression: nLength <= GetData() -> nAllocLength
From here you should be able to look at the stack frame to see how code execution got to line 877. It looks to be a string-related object.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi,
i have an image control 100x100 (icon style), i want to desplay an image of 32x32 stretched in to that control. how to do that ?
Thanks & Regards
|
|
|
|
|
I have seen a number of different "image" controls, some come with Visual Studio, some come from third parties. Without knowing which particular image control you are using I doubt anyone can answer the question.
|
|
|
|
|
i am using image control aavilable with visual studio.actually i want to stretch an HICON and i missed that in my question.
Thanks & Regards
|
|
|
|
|
Please refer StretchBlt[^] function.
Best Regards,
Suman
|
|
|
|
|
One thing about StretchBlt when use of it, it decreases quality of image.
|
|
|
|
|
well, duh! when you stretch a 32x32 image to a 100x100 image you will always loose quality.
|
|
|
|
|
Yes that's right with stretch(but I saw an article on the codeproject it used other function that you didnt have any change on your image) but if you have 100x100 image and want use of stretch to 32x32 image again you have loose quality
|
|
|
|
|
Check the LoadImage() API. In that API, you can specify the desider X and Y size no matter what the actual size.
|
|
|
|
|
I have designed a control with a base CWnd window and some CEdit childs in it. the childs have the WS_TABSTOP style. but when I press the tab button, nothing occurs (the focus is not changing between the childs). how should I solve the problem?
|
|
|
|
|
You must on the design mode set tab for controls press Ctrl+D then you can see some numbers for each control 1,2,12,13,... with click on each control you can set tab order.
|
|
|
|
|
When you create your "control with a base CWnd window" use CreateEx() instead of Create() and specify the first parameter dwExStyle with a value of WS_EX_CONTROLPARENT and any other extended styles you deem appropriate.
|
|
|
|
|
Hello Friends,
cam anbody tell me how to add the picture in the RichEdit box.
Thnx in advance.
|
|
|
|
|
|
Hello guyz.
I'm creating an MFC application, usually the output is application.exe but it won't run without VC++ installed. I want to make an exe file to distribute it without setup. Is it possible in VC++ 2003? If possible can somebody teach me how to do it.
Any message or comments would be a big help.
Thank you.
|
|
|
|
|
Compile your program in release mode and use DependencyWalker (search on google) to see which dll's are needed for your application. Distribute those dll's with your application.
You could also link statically to the MFC, then I think you don't need to distribute any dlls.
|
|
|
|
|
you can create folder and copy your 'exe' file to this folder and you must
copy to this folder 'dll' files that your program use.
and thats it. copy this folder to another PC and run you program,
but in this case you may get error message. (I get once error message. I forget one dll file)
|
|
|
|
|
Exactly his problem is he didnt know what files his program need so Cedric's answer is perfect.
|
|
|
|
|
Or maybe he is simply unaware of the concept of 'release build' and is missing mfc42D.dll.
We can't know since he did not give any information beyond a general nature of his problem.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
|
actually i work in visual studio 6.0 and here, three necessary dlls are required.these dlls should be placed in the same folder as the exe file.
MFC42D.DLL
MFCO42D.DLL
MSVCRTD.DLL
as far as i know, the same logic should apply for vc++ 2003 also.
but some more files may or may not be required.
to find them out,
1.run your exe in a separate system, where vc++ 2003 is not installed,
2.it will prompt saying xyz.dll missing.
3.find that dll in your system and place it in your new system, where your exe resides.
4.repeat the above steps till you will find your exe running.
|
|
|
|
|
chandu004 wrote: in visual studio 6.0 and here, three necessary dlls are required.
Have you ever heard of the term 'release build'?
Do you know why and how to make one?
Why don't you do it?
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
chandu004 wrote: MFC42D .DLL
MFCO42D .DLL
MSVCRTD .DLL
* you are in Debug mode, so you are not doing the right thing.
* in this way you can forget some dlls. use a software to find dependencyes like Cedric said.
Russell
|
|
|
|
|
It is illegal to distribute MFC's debug DLLs.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
When you create your project, set the option "Use MFC in a static library" instead of "Use MFC in a shared dll".
|
|
|
|