|
Q) How to get answer to question in internet?
A) Ask something that's non-specific, unclear & generally unpleasant to read.
Which browser?
What "alert script"?
|
|
|
|
|
Hello Friends,
Is there any way to detect when user selects a file and presses CTRL
+C or select copy from the context menu.
I found that IFileOperationProgressSink will notify when a copy
operation is about to begin but i am looking for a way to get notified
when user selects a file for copying from windows shell explorer.
Please advice,
Thanks in advance,
Joe
|
|
|
|
|
Does ICopyHook help?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Thanks, ICopyHook only works at folder level. I want the notification on Individual files also.
|
|
|
|
|
I'm sure I'm not the first to ask this but please help.
How do I make VS2005 show the line numbers of the code where it detects memory leaks? I've followed the instruction on MSDN and it looks like I'm not the only one that can't get the line numbers to show.
And so if it's impossible to get the line numbers to show, how do I track down where the memory leak is happening?
Also, what do I do about places where I KNOW it's not leaking but is flagged up as leaking?
I used _crtBreakAlloc to stop at various places in the code where VS2005 reckons I'm leaking (or rather where there is something being created for which it claims it can't find where it's getting destroyed and cleared up), but I can debug to the line where it quite clearly calls delete and clears up.
Please help!
|
|
|
|
|
|
Thanks.
Brilliant tool!
Finding the leak is one thing, now I have to fix them...
What do I do about CoCreateInstance claiming to be leaking?
I can see it news "p" in CComPtr but I can't see how to delete it.
Any help greatly appreciated.
|
|
|
|
|
I think you have to call Release method of the created object.
-Saurabh
|
|
|
|
|
Below is the structure of my files:
-homeworks
--hw06-me
---hw06-question2
----meow.h
---CMakeLists.txt
--distribution
---hw06
----question2
-----meow.cpp
The meow.cpp file references meow.h like so: #include <meow.h>
This is the content of my CMakeLists.txt:
cmake_minimum_required(VERSION 2.6)
enable_testing()
add_subdirectory( hw06-question2 )
add_executable(h6-2 $../../../distribution/hw06/question2/chameleon.cpp $../../hw06-question2/hw06-question2.h)
add_test(hw06-question2 h6-2)
I've tried various combinations of include_directories, different paths inside the executable, to no avail. What am I missing here? Thank you!
|
|
|
|
|
Did you try (just a guess):
#include "meow.h" ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
What are the different manners to run a file auto in WindowsXP? Can autorun is possible without autorun.inf file?
|
|
|
|
|
This forum is ONLY for C/C++/MFC questions.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Hi,
In my applciations i have more views like Graphics view,Alarm view like that.
In Alarm view, im displaying the list of alarms occured in applicaiton.I can also filtering the alarms thru one dialog and only filtered alarms (eg: Emergency alarms only display)will display.
But what i want is? when i click the OK buton of filter dialog,the view get splitted and in top side only filtered alarm should display and in down window all alarms should display.
Actullay My views should in normal window.Only when i pressed the button,then only it should get splitted.
I tried dynamic splitters,but error has occured.
Pls help me in this problem.
Thanks in advance
Anu
|
|
|
|
|
You should split the view on its creation and hide the top pane.
When you click on the button you can then show the top pane.
|
|
|
|
|
Thank you for your reply.
Can you give some sample?
Anu
|
|
|
|
|
I don't know.
Maybe you should try pTopView->ShowWindow(SW_HIDE);
And when the button is clicked you can do your filtering first and then call pTopView->ShowWindow(SW_SHOW);
|
|
|
|
|
Hi
Every time I tried to re compile my project. MS will compile every files in the project even most of file are not updated.
What is wrong?
Thanks,
|
|
|
|
|
You could try to delete the intermediate files and reopen the solution.
|
|
|
|
|
|
It could be an automatic update that was installed.
You could still try to clean and rebuild the project.
What program was highlighted as part of the newly installed?
|
|
|
|
|
transoft wrote: Every time I tried to re compile my project. MS will compile every files in the project even most of file are not updated.
What is wrong?
Sounds like it may be a dependency issue; your files are listed as dependent on some source or object which always makes them appear out of date. Check the project settings.
|
|
|
|
|
Is part of your project's files on a different computer (a network drive)? If so, is your computers time much different from the remote computer? Just a thought.
|
|
|
|
|
Is the computer's date and time set correctly?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Yes, You are the MAN. I spent a lot of time to find this problem.
Thanks
|
|
|
|
|
The following function is as follows
LONG ITCSCAN_GetDefaultDevice(
LPTSTR lpDeviceNameBuffer,
DWORD * pBufferLength)
with explanation as follows
lpDeviceNameBuffer [out] Pointer to buffer that will store the returned device name
pBufferLength [in/out]Pointer to a variable that specifies the size, in bytes, of the buffer pointed to by the lpDeviceNameBuffer parameter. When the function returns, this variable contains the size of the data copied to lpDeviceNameBuffer
I under stand pointer points to address and I understand that dereference points to value at an address. But these Windows API functions have me confused, expecially with the out in/out stuff.
Can anyone make this clearer using the above function as example.
I would code
LONG defaultDevice;
LPTSTR deviceBuffer=NULL;
DWORD *bufferLength=NULL;
defaultDevice = ITCSCAN_GetDefaultDevice(deviceBuffer,bufferLength)
But that returns errors and when I've made changes to get the code to compile without errors I get access violation runtime errors.
Please Help!
|
|
|
|