|
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
|
|
|
|
|
In my windows based application i am getting an exception log
001B:7C16E14F Ordinal1028+7D,
001B:7C16E1B8 Ordinal1209+3B,
001B:7C16E1F6 Ordinal1209+79,
001B:20004EE3 KIVCZ05VmDialogProc+603,
001B:77D48734 GetDC+6D,
001B:77D48816 GetDC+14F,
001B:77D489CD GetWindowLongW+127,
001B:77D496C7 DispatchMessageA+F,
Plesae guide me generally how we resolve ordinal problems.
|
|
|
|
|
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]
|
|
|
|
|
Can you more explain about your program,please?
|
|
|
|
|
then what will be the following is true for that instance
1)all instances of the parent class will reference one variable and each instance of the child class
would reference its own separate variable
2)all instances of the parent class would reference one variable and all instance of the child class would reference another variable.
3)All instance of the parent and the child classes would reference the same variable.
4)Each instance of the parent and the child classes would reference its own separate variable.
5)None of the above
I want to know answer with some detail, if anybody could have .
Thanks in advance
|
|
|
|
|
Sometimes a little test is better than a thousand words:
(assuming 'parent' is base class and 'child' is derived one)
#include <iostream>
using namespace std;
class A
{
public:
static int alpha;
};
class AA: public A
{
public:
static int alpha;
};
int A::alpha = 1;
int AA::alpha = 5;
void main()
{
int i;
const int N=5;
A a[N];
AA aa[N];
for (i=0; i<n;> {
cout << "a[" << i << "].alpha = " << a[i].alpha << endl;
cout << "aa[" << i << "].alpha = " << aa[i].alpha << endl;
}
}
</iostream>
The output is:
a[0].alpha = 1
aa[0].alpha = 5
a[1].alpha = 1
aa[1].alpha = 5
a[2].alpha = 1
aa[2].alpha = 5
a[3].alpha = 1
aa[3].alpha = 5
a[4].alpha = 1
aa[4].alpha = 5
Personally, I'll bet on point (2).
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 is this? Actually writing code to see how C++ works? Why, that's revolutionary.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Joe Woodbury wrote: Why, that's revolutionary.
Yes, since about XVII century.
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]
|
|
|
|
|
Hello,
I am making a GUI on Visual Studio's (2005) Windows Form Application. I have set the radio buttons to a default value. But, I want to give the user the choice to choose another radio button. But since I have set the value of "Checked" in the event handler of the radio button, right now the default value is the only value that can be chosen (so its fixed). How do I make this changeable?
Thank you in advance,
jazz24
|
|
|
|