|
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 />
|
|
|
|
|
I am reading here c++ faqs Private inheritance section: http://www.parashift.com/c++-faq-lite/private-inheritance.html
There is an expression that i don't understand.They said :"Private inheritance makes all of the public functions of the parent class private in the child class".
So i understand that we can not reach them from derived class.But with "::" operator we can reach the functions.I don't understand the magic of this operator.I know it is scope resolution operator but is this also can reach private sections of the classes?
Or is this extraordiary rule for private inherintance.
class Wilma {<br />
protected:<br />
void fredCallsWilma()<br />
{<br />
std::cout << "Wilma::fredCallsWilma()\n";<br />
wilmaCallsFred();<br />
}<br />
virtual void wilmaCallsFred() = 0;
};<br />
<br />
class Fred : private Wilma {<br />
public:<br />
void barney()<br />
{<br />
std::cout << "Fred::barney()\n";<br />
Wilma::fredCallsWilma();
}<br />
protected:<br />
virtual void wilmaCallsFred()<br />
{<br />
std::cout << "Fred::wilmaCallsFred()\n";<br />
}<br />
};<br />
<br />
also<br />
class D_prot : protected B {<br />
public:<br />
using B::f;
}
|
|
|
|
|
sawerr wrote: So i understand that we can not reach them from derived class.
Not technically correct. It is more like copying every member of the base class into the child class, but putting it all under the private keyword. The child class can see (that is call) the base class' methods, but any outsiders would only be able to call the child class' public methods.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
|
Zac Howland wrote: It is more like copying every member of the base class into the child class, but putting it all under the private keyword. The child class can see (that is call) the base class' methods, but any outsiders would only be able to call the child class' public methods.
Not really. OP got it right, just used protected in his sample.
|
|
|
|