|
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?
|
|
|
|
|
What do you mean by "buttons in the parent window are not clickable". What exactly happens when you click somewhere on the dialog? Does the dialog show up as the active window? Did you try and debug the code, if affirmative then are you able to enter the function and debug it?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
When I click the Start Button in a Window an exe(CharacterAnimation.exe) will be run. When I close this exe(CharacterAnimation.exe), the first Window which contains the start Button and one more called exit Button is not clickable. What to do to resolve this problem?
|
|
|
|
|
You didn't answer my other questions
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Or you can use of CreateProcess.
|
|
|
|
|
Hi,
I am Writting a Windows GUI extension to a Dos program ..
With Help from people on the code project I am going about this by doing a CreateProcess for a WinMain Project part of the Dos Solution. I should have clarefied myself I am doing this under Visual Studio
My Question is There some Storage area I need to access in Dos project
Luckily for me its a structure which is a Exported DLL
My question is the following from What I understand under Windows 32 process has an address range 0 - FFFFFFFF
With OS code mapped in the Address Space/Process
The DLL that are in the DOS process Whether implictly limked or Dynamically linked (loadLibrary) are in the Common
Storage somewhere in the 0 - FFFFFFFF what ever addresd in that range are marked as Shared
All I have to do to Access them In My new Process is include the proper .Libs
Thankx
|
|
|
|
|
Can anyone explain how to use the CWnd::HtmlHelp(,) function? I'm using VS2008 and programming in MFC so I'd like to use the CWnd version rather than the API version. I've search MSDN and they show plenty of examples for the API version , but NONE for the CWnd version. Or at least I haven't found any. Can someone explain, by example the CWnd version's usage,Please.
A C++ programming language novice, but striving to learn
|
|
|
|
|
Larry Mills Sr wrote: Can someone explain, by example the CWnd version's usage,Please.
You would use it like any other class method. Do you have a CWnd object?
http://msdn.microsoft.com/en-us/library/xtwk15xt(VS.80).aspx[^]
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|