|
The update command UI system doesn't run for dialogs unless you add message handler for WM_KICKIDLE and start the update process from there. Google for WM_KICKIDLE and you should find many pages on what to do
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
I am developing a directshow filter, but there is something wrong when running this filter. I know GraphEdit can be used to test the filter, but how to debug the filter step by step by setting breakpoint? Thanks.
|
|
|
|
|
Go to Project properties->Configuration Properties->Debugging in VS and set "Command" to the
path of your graphedit.exe. Then it starts automatically when you start debugging your filter.
In debugging mode you can step through your code by loading and starting your filter in graphedit, if you have properly registered the debug dll/ax with regsvr32.
|
|
|
|
|
Hello,
i want to display a long text (more than 127 characters) in the status bar. I am using GetStatusBarCtrl().SetText(...) but this function only displays 127 characters. I tried to display my text in two parts and then send it still using the previous function but didn't succeed (I get one part on the left and the other one completely on the right)
Thank you for your help,
agnes
|
|
|
|
|
Hi athomass
I'm not sure that this is your answer anyway use SetBorders in class statusbar
|
|
|
|
|
Hello,
Thank you for your answer, I tried that but I do not get what I want because I have to display other information on the right of the status bar (using SetPaneText and SetPaneInfo). If I use SetBorder, these information is also moved.
Somebody has another idea?
Agnes
|
|
|
|
|
I have given one big code with about 60 classes, and have been told that the code has memory leak, the code is compiled with visuall studio 6 and written in C/C++, does anybody know if the visual studio (any vresion) can find out where this emory leak would be located?
Thanks
nahi
|
|
|
|
|
Does it use MFC?
"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
|
|
|
|
|
Yes it does! it has a dll that would be used by another program and also VB and MFC for some other parts.
TNX
|
|
|
|
|
Then simply use F5 to start the program. Since it is a DLL, you'll need to provide the name of the EXE that goes with it. Any new without a matching delete will be noted in the Debug window when the program terminates.
"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
|
|
|
|
|
DEar David,
Thanks for the message, My program receives and sends out packets through sockets (put the info in some buff and sends them and kill the buff after sending out the info. What is your suggestion for me.
Best regards,
|
|
|
|
|
nahitan wrote: What is your suggestion for me.
See here. If you are saying that this will not work for you, how are you verifying that a memory leak exists?
"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 help
|
|
|
|
|
I would say it is possible partially.
If its a simple memory leak wherein you have allocated a pointer and left it as it is you might be able to detect in VC++.
You can remove all the breakpoints. Run the code in Debug mode(press F5) -> run the application -> close it.
Your should be able to see straightforwards leaks in the output window of the VC++ application.
If you still cant detect then you might have to use external tools like boundschecker etc in the market to detect complex memory leaks.
|
|
|
|
|
As the code is not executable, and produces dll file, I was wondering if I could do what you suggested.
TNX
|
|
|
|
|
|
nahitan wrote: I have given one big code with about 60 classes, and have been told that the code has memory leak, the code is compiled with visuall studio 6 and written in C/C++, does anybody know if the visual studio (any vresion) can find out where this emory leak would be located? Thanks
try Rational Software, they have very power Performance tools
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
How can I hide the export information of my DLL, such as function name or class name?
I am seeking...
For what?
Why did you ask me for what? I don't know!
|
|
|
|
|
|
Simon.W wrote: How can I hide the export information of my DLL, such as function name or class name?
How about making the names such that only you know what they mean? I know of no other way to "hide" them, however.
"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
|
|
|
|
|
Simon.W wrote: How can I hide the export information of my DLL, such as function name or class name?
Its possible if you writng com.dll, you can remove tlb informatin from COM DLL, which contain the interface information and you can easily ship to end user without revealing any internal working of dll
|
|
|
|
|
Use a .def file.
For each function you export use the NONAME tag.
This will cause the function to be exported by ordinal instead of name.
This also makes the resulting dll smaller.
Exporting c++ functions (and class methods) is a pain as you have to specify the mangled name.
If you have to export a number of c++ functions/methods you may want to write a tool to generate the .def from a .map (or other such file) ... and post the tool back here.
http://msdn2.microsoft.com/en-us/library/hyx1zcd3(VS.80).aspx[^]
...cmk
Save the whales - collect the whole set
|
|
|
|
|
Is there any utility/way that allows us to analyze all instructions in an exe file, so that instruction by instruction can be executed and analyzed. (other than commandline debug utilty in dos/windows).
|
|
|
|
|
Visual C++ decompiler for instance ?
|
|
|
|
|
Can it be used to decompile any exe?
|
|
|
|