|
Bilge Kaan wrote: attachconsole is only available for XP and Vista.
It helps to specify those requirements up front.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
I have over 2000 shortcuts distributed among tens of subdirectories. Their paths are correct but the drive they point to is off. I assumed they would resolve themselves when moving from the USB to the HD, but they haven't.
Is there a batch program that I can run that would modify the drive they point to? If not, anyone has any idea how to start to write a small utility that would accomplish such a thing?
Would really really appreciate any pointers. Thank you all.
|
|
|
|
|
For each one, use the IShellLink::GetPath() /IShellLink::SetPath() pair. Here is a very loosely-related sample.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
I thought I had no choice left but to modify the binaries directly.
Thank you very much.
|
|
|
|
|
I have some code that uses a CPaintDC object to paint rectangles on the screen and then have some text painted inside. If its possible, i would like to be able to display tooltips when the mouse hovers over one of the rectangles. Does anyone have any suggestions? Thanks.
|
|
|
|
|
Hi All,
I'm looking for a method of querying the performance of my projects. Is there a common method for timing functions? Possibly with the aid of adding macros to certain parts of the code?
|
|
|
|
|
waldermort wrote: I'm looking for a method of querying the performance of my projects.
See here.
waldermort wrote: Is there a common method for timing functions?
You could use GetTickCount() , multimedia timer, QueryPerformanceCounter() , profiler. All of these come with pros and cons.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
|
Thanks for the ideas. I have thrown together a bit of code using QueryPerformanceCounter() and created a macro which I can drop into the code. It's not brilliant but it should help me find out where all those slow functions are.
|
|
|
|
|
If you can do it in the development environment (and if you can get it to work) the profiler is easy to use and gives more reliable results than GetTickCount().
|
|
|
|
|
I have heard of this profiler before, but I never did find out how to use it.
|
|
|
|
|
Sorry for the slow response - I don't have Visual studio installed on any available PC at the moment!
First - according to MSDN, the profiler is only available in the Visual C++ professional and Enterprise editions, not standard edition.
Still interested? Then have a look at the following article on MSDN - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/tmp/_core_run_the_profiler_from_the_development_environment.asp[^]
Note - I have only used the profiler with Visual C++ 6 (with straight C code), and I found that it sometimes was not available (menu option greyed), even though no project settings had been changed.
Good luck - it is worth the effort to get this going.
|
|
|
|
|
Hello, I’m Giorgio. I’d like to know creating graphics object in my interface with Microsoft Visual C++. They must be ellipse or rectangle I can modify them after by clicking mouse. This is a feature of most desinging and painting program like PowerPoint and Paint.Can I use CWnd class for it?
Who can aid me, write me please at Stassi1@virgilio.it
|
|
|
|
|
Yes, you can use CWnd.
- NS -
|
|
|
|
|
Probably the best way to go for that is to create a SDI application and draw on the view directly. I think there is an example in the MSDN about a very simple paint program (you'll have to search for it because I don't remember where it was, I think it was called scribble example).
|
|
|
|
|
U can use Rectangle(CDC, rect).. functions from SDK to draw the images....
|
|
|
|
|
I think it can help you
http://www.codeproject.com/miscctrl/diagrameditor.asp
- NS -
|
|
|
|
|
can't you use the <A href="">desc</A> tag when posting links ?
|
|
|
|
|
isn't there a version of the MSDN example scribble that do shape drawing ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
hi all,
i want to have a Ballon Tool Tip on all the Control of a Dialog. please give your suggestions.
thanks,
uday.
uday kiran
|
|
|
|
|
|
http://www.codeproject.com/miscctrl/balloonhelp.asp
- NS -
|
|
|
|
|
Hi all,
Could anybody suggest me a simple method to make a number always odd?
For eg.
Suppose a = 14. After conversion it should be 13.
If it is 13 it should be remain as same.
Thank you.
- NS -
|
|
|
|
|
Assume you have got the number in an int:
int oddNumber = 14;
oddNumber |= 1;
or, as in your question (14 should be 13):
int oddNumber = 14;
oddNumber--;
oddNumber |= 1;
|
|
|
|
|
Yes I need the second one.
That's nice. Thank you.
- NS -
|
|
|
|