|
I create a SDI program using Visual C++ 6.0(without any service pack installed),without adding any source code by myself ,i start the program in debug mode,then press F12,so the crash happens.But if i run the program not in debug mode and press F12,nothing will happen.
Can anybody tell me why this would happened and how can i to resolve it?
Thanks a lot.
|
|
|
|
|
Is your application supposed to respond to the F12 key?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Back in the dark ages, F12 was the "break into the debugger" key. I didn't think that was the case anymore, but it sounds like that's what you're seeing.
|
|
|
|
|
Is there a good freeware program that could be recommended for displaying which function calls another from a series of .cpp files? Something that allows the selection of a group of source code files and outputs a chart displaying the function relations. Thanks. -jbj
|
|
|
|
|
There's one built into Visual Studio. It's not a "flow chart" per se, but it does show how functions are called.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Where is it located? A dummy project was set up in vc6 and files imported, but I haven't located the option you describe. Thanks.
|
|
|
|
|
jon_fallon wrote: Where is it located?
Tools --> Source Browser
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
In VS2005 it is View-->Object Browser and they put the call/caller graphs back in! They were missing and a glaring hole in previous .NET C++ environments. C# Still does not have them
led mike
|
|
|
|
|
Dear all,
i built the strmbasd.lib in platform sdk command prompt(using nmake command).
I try to built the dll in vc++6 ,using this lib file(strmbasd.lib).
The following error was occured
waiting for the valued suggest from you all..
Output Window
Compiling...
YuvGray.cpp
Linking...
Creating library Debug/YuvGray.lib and object Debug/YuvGray.exp
LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library
strmbasd.lib(strmiids.obj) : fatal error LNK1103: debugging information corrupt; recompile module
Error executing link.exe.
Results
YuvGray.dll - 1 error(s), 1 warning(s)
Manjunath S
GESL
Bangalore
|
|
|
|
|
Having built with the PSDK, you've got a lib that was created by a newer compiler than VC6, that's probably your problem.
Why are you using VC6 ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I will check it
i checked with vc++ 6 bcos this was the version which i installed in my system
Manjunath S
GESL
Bangalore
|
|
|
|
|
Hi,
I am working with clipboard using VC++ 2003 right now. I need to get and store any image from clipboard at one time. And after some time I need to copy that stored image back to clipboard. I am able to get HBITMAP of bitmap using GetClipboardData() function. But I don’t know how to store it my application memory so I can use it later.
Thanks in advance.
Priyank Raval
|
|
|
|
|
What about:
HBITMAP hData = GetClipboardData(...);
LPBYTE lpData = GlobalLock(hData);
...
GlobalUnlock(hData);
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thanks for your reply.
I get HBITMAP from clipboard now and I am trying to store this image using "Bitmap *oldBitmap = Bitmap::FromHBITMAP(hBitmap,NULL);" .But I get error “error C2065: 'Bitmap' : undeclared identifier” in this line. When I include “gdiplus.h” in my file I get lots of errors in “windows.h”. Can you help me to resolve this problem.
Priyank
|
|
|
|
|
Hi,
You should not use Clipboard to exchange data by your application(s).
Clipboard is intended to be used only on user's command. In the other way, you have to guarantee that if he copy something (he was looking for it all day) to clipboard, the data will be available until it is pasted or replaced with another content.
Regards
|
|
|
|
|
Hi,
I know I should not use Clipboard to exchange data, But I don’t have any option at this time. Actually I want selected text from Microsoft word application. So when ever user select text in the word I send WM_COPY message to word to copy this text to clipboard and I can take this text from it for my application.
Now to make sure that data will be available until it is pasted or replaces with another content by user I am storing all content from clipboard. And when my application finishes its work with clipboard I again copy old content to clipboard.
If you have any other solution to get selected text from Microsoft Word then please tell me so I can avoid use of clipboard for my application.
Thanks,
Priyank
|
|
|
|
|
priyank_ldce wrote: If you have any other solution to get selected text from Microsoft Word...
How about Word Automation?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
In my project, there is VsFlexGrid. It has 8 columns. Some columns datatype is boolean. That is, This column will be displayed as set of Checkboxes.
My problem is that I need to disable the column which is having checkboxes. After disable the column, the checkboxes should be grayed out.
Please help me.
-Mohan-
|
|
|
|
|
Hi All
May you please give me some information about following topicts :
1. how may I play one avi file in one dialog box ?
2. how may I show one bmp file in one dialog box ?
Best regads
Mahdi
|
|
|
|
|
1 - by using DirectX or Windows Media Player
2 - BitBlt
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
do you have an example about bitblt ?
|
|
|
|
|
This site has articles on how to draw bitmaps on the background of a dialog. Googling bitblt will give you tons of info. StretchBlt is the other API you may need. The other question is how you load your image. A bmp can be loaded with LoadImage, to load a jpg or gif, check my articles on GDI+.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
yes one example is on MSDN see BitBlt on MSDN.
|
|
|
|
|
(1)You can use of CAnimateCtrl or use of MCI functions
(2)You can open your file with CImage class and use of WM_ERASEBKGND for show it
<br />
#include AtlImage.h<br />
CImage m_Image;<br />
m_Image.Load("c:\\0.jpg");<br />
....<br />
void CAnswerDlg::OnPaint() <br />
{<br />
CPaintDC dc(this);<br />
m_Image.BitBlt(dc.m_hDC,0,0,640,480,0,0);<br />
}<br />
|
|
|
|