|
Thanks Iain,
Great article. My further question is, if there is an arbitrary address (e.g. 0x12345678), how to check whether it is code or data or stack? Any command to display the information (suppose I have symbol file) in the arbitrary address?
regards,
George
|
|
|
|
|
Hi George,
Whats up?
did you you see Thread section on the codeproject.com and codeguru.com
|
|
|
|
|
Thanks Hamid,
Any recommendations link?
regards,
George
|
|
|
|
|
stack trace is a report of active stack frames and shows where that error occurs I think now you want to get this report of an address?
|
|
|
|
|
Thanks Hamid,
My problem is,
1. My application breaks (e.g. uncaught exception) and report the breaking address is 0x12345678;
2. I want to know what code are executed at 0x12345678, and what are the call stack from bottom to address 0x12345678?
Any ideas?
regards,
George
|
|
|
|
|
Do you have source code of your program?
|
|
|
|
|
Hi Hamid,
I am not talking about a specific program. But a general method to retrieve stack trace from a specific address. Any comments or ideas?
regards,
George
|
|
|
|
|
Well I think there are no API for it I think you must be use of OS low level APIs or even assembly but I think most programs have a special register of current stack and address of caller's stack adress that you can use of them,but if you need to a tools see here[^]
|
|
|
|
|
Thanks Hamid,
I prefer to use as least as 3rd party tools as possible. Currently, I am using WinDbg dv command, do you think this command could serve my purpose?
regards,
George
|
|
|
|
|
|
Thanks all the same, Hamid!
Let me know if you have any better ideas for my original question in the future.
regards,
George
|
|
|
|
|
I want to develope my own antivirus software. can any one guide me about tutorials and
website link for that.
Ashish
|
|
|
|
|
Hi,
Here is one of open source project of av s/w development:
openantivirus[^].
I am not sure what platform they use
Regards,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
That looks like a Java store to me. Leaves me wondering why would one write an antivirus in Java.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Yes, Java is good for internet programming but may not be for antivirus s/w.
Clamwin which you recommended looks nice as it related to c++.
Regards,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
That looks like too much of an ambitious project to me, considering the fact that you want to do it all alone.
If you are wanting to do it from the scratch, there's too much for you on the plate. Start with file filter driver, executables (binaries in general), and more and more.
Alternatively, Google for Clamwin.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
And Wikipedia.org has good info for you.
|
|
|
|
|
Hi all,
I m using a TreeCtrl there is so many parent node and its child.
I want to check the state of checkbox from starting to end.
I want to check each n every element of tree.
Please tell me how can i do this.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
TVITEM item;
item.mask = TVIF_STATE|TVIF_PARAM;
item.hItem = TVI_ROOT;
HTREEITEM lastItem;
do {
do {
lastItem = item.hItem;
if (lastItem != TVI_ROOT) {
TreeView_GetItem( m_hwnd, &item );
// DO SOMETHING WITH YOUR TREEVIEW-ITEM (item)
}
} while ( (item.hItem = TreeView_GetChild( m_hwnd, lastItem )) );
while ( (! (item.hItem = TreeView_GetNextSibling( m_hwnd, lastItem ))) && (lastItem = item.hItem = TreeView_GetParent( m_hwnd, lastItem )) ) {}
} while ( item.hItem );
-@SuDhIrKuMaR@-
|
|
|
|
|
It is working correctly.
At one phase i m using like this, there is only one change i m insert for loop now its not working correctly.
it is not read node one by one.It is read one node number of times.
<br />
TVITEM item;<br />
CTreeCtrl m_perm_tree;<br />
HWND m_hwnd;<br />
m_hwnd=m_perm_tree.GetSafeHwnd();<br />
item.mask = TVIF_STATE|TVIF_PARAM;<br />
item.hItem = TVI_ROOT;<br />
HTREEITEM lastItem;<br />
CString setpermstr;<br />
int length=0;<br />
length=setpermstr.GetLength();<br />
<br />
<br />
do {
do {
lastItem = item.hItem;<br />
if (lastItem != TVI_ROOT) <br />
{
TreeView_GetItem( m_hwnd, &item );<br />
<br />
for(int i=0;i<=length;i++)<br />
{<br />
if(setpermstr.Mid(i,1)=="1")<br />
{<br />
<br />
m_perm_tree.SetCheck(item.hItem,1) ;<br />
<br />
}<br />
else if(setpermstr.Mid(i,1)=="0")<br />
{<br />
<br />
m_perm_tree.SetCheck(item.hItem,0) ;<br />
<br />
}<br />
}<br />
}
}
while ( (item.hItem = TreeView_GetChild( m_hwnd, lastItem )) );<br />
<br />
while ( (! (item.hItem = TreeView_GetNextSibling( m_hwnd, lastItem ))) <br />
&& (lastItem = item.hItem = TreeView_GetParent( m_hwnd, lastItem )) ) <br />
{}<br />
}
while ( item.hItem );<br />
<br />
Please help me for this.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Hi!
In my Program I've called the system command in the start event of a button like this:
static bool startHandler(const CEGUI::EventArgs& e)
{
system("CharacterAnimation.exe");
return true;
}
This compiles fine. When I ran my Program and clicked the start Button, a message was displyed which says:
'CharacterAnimation.exe' is not recognized as an internal or external command, operable program or batch file.
What to do to run the 'CharacterAnimation.exe' if I click the start button?
|
|
|
|
|
See ShellExecute(/*parameters*/); You need to specify the full path of the exe
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanks. It's working now. But I've put the exe in the Release folder of the calling project. Why it didn't work? Can u explain?
|
|
|
|
|
The system command was not knowing the location of the exe you were trying to run. Try putting the full path of the exe in the system command and it should work too.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Ok. It's working fine. But When I terminate the called exe, the control didn't pass to the parent Window. i.e after I closed the called exe, the start and exit buttons in the parent window are not clickable. What to do to resolve this?
|
|
|
|