|
Thanks for ur reply. This will give me what kind of attacks that C++ application can be vulenerable to but i want the scenario (C++ application) where these vulnerabilities can happen so I can simulate them in a programmed manner.
Thanks
SNI
|
|
|
|
|
Hello,
I have created a child window using CreateNewChld function
CMDIChildWnd* ChildPt = pFrame->CreateNewChild(RUNTIME_CLASS(TableFrame),TITLE_Production, m_hMDIMenu, NULL);
TableFrame* pF = STATIC_DOWNCAST(TableFrame,ChildPt);
pF->FrameInit(PRODUCTION,FontVector2,true);
The window is created using the class TableFrame but the mouse clck messages are not diverted to the the TableFrame class . Why is that so?
When I click the minimize,maximize buttons of the window the OnSize() of TableFrame is called
Pritha
|
|
|
|
|
When i tried to create a Dialog class (vc++ 6), it gives an error called" Unable to open the files TestDialog.h and TestDialog.cpp" ( project name:Test)
i am getting the same error even creating a new class using class wizard.
i donot know how to clear this error.
|
|
|
|
|
It could be possible that some of the files needed by the class wizard like .clw could be read-only.
Ensure all files have write access and try again.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
That is a known ClassWizard error. It can usually be ignored, however. You might try closing Visual Studio, deleting the temporary files (e.g., opt, ncb, clw, aps, pch), and then re-opening the project.
"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
|
|
|
|
|
Even after following the above procedure i am getting the same error ,after repeating the steps for 4-5 times then i am able to create dialog class.
can u please suggest me any other solution to the problem.
thanks ®ards
|
|
|
|
|
What do u meant by embedded structures in C?
|
|
|
|
|
Gjm wrote: What do u meant by embedded structures in C?
I don't know, a structure as part of another structure, I guess. And what do you mean with it?
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]
|
|
|
|
|
Probably something like:
struct A
{
struct
{
int a;
int b;
} embedded_struct;
int c;
};
embedded_struct is a data member of A with struct type.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hello,
ANy one can guide me with the difference between SetCapture and GetCapture or articles on the same.
thanks
Pritha
|
|
|
|
|
I don't understand why you are confused between the two.
I'm sure you understand what Set and Get means.
The only similarity is in the return value which is the previous or current window that has captured the mouse.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hello,
Thanks for your reply
BUt I was confused b coz of my problem that I mentioned in my next q . So I wanted to read good articles on SetCapture
|
|
|
|
|
Hi,
I am totally new to WinAPI programming. My requirement is to extract the handler to the current window when the user clicks over it or uses Alt+Tab to navigate to the window. The definition of GetCapture should return a handler to the window that has captured the mouse.
My question is when and how can I call the GetCapture() function? My requirement is to invoke the function whenever a mouse or keyboard event occurs. Can you please guide me how my program can be alerted to a click or keyboard event.
Thanks
-Varun.
|
|
|
|
|
Hello,
I have a child window derived from CMDIChildWnd and the window has a few CRichEditCtrl derived windows displayed properly on them.
But I am confused how to write the mouse capture for this window.
When the mouse moves over the window or left button is pressed on the window the mouse click message is not handled but if I press left mouse button over te minimize,maximize icons of the windows the messsage is andled and OnSize()function is called.
Why the OnLButtonDown()message not handled in the class which is derived from CMDIChildWnd?
Pritha
|
|
|
|
|
I need an algorithm or C program by which I can compute the Strict Avalanche criterion of the nonlinear boolean functions
|
|
|
|
|
|
correlation immunity is an important criterion for boolean functions, I need an algorithm or C program to compute the correlation immunity for any boolean function.
|
|
|
|
|
alaaomar wrote: I need an algorithm or C program...
That's nice for you. Do you think you'll get one?
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
This [^] may help.
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]
|
|
|
|
|
Wow! What are the odds that two people with the same name would be asking the same question?
"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
|
|
|
|
|
I am creating an MFC based MDI type app in VS2008. I have a class structure that is mostly based on declaring objects of the lower class in the class above it - so not subclasses - but called from parents as such:
CHostApp ------------> CCommandParser
CMainFrame
COutputWnd (console type display class that I want to call a function in)
So in CMainFrame it does:
COutputWnd m_OutputWnd
and so on up the chain.
I am making a command parser class that I'm thinking really should be a static class from the at the CHostApp level. Ultimately I'm trying to call a function and pass data from
CCommandParser to COutputWnd.
What's the right syntax or methodology to do this? Do I need to make one a friend class of the other?
|
|
|
|
|
You could try the same trick done by ATL.
Make the CMainFrame class a template class.
Pass the class derived from CMainFrame as the template parameter to CMainFrame.
Something like this.
class COutputWnd : public CMainFrame<COutputWnd>
{
};
template<typename T>
class CMainFrame : public CFrameWnd
{
T m_OutputWnd;
};
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
Never seen that before! I have used it for years I believe in creational patterns like factory. I'd have to go scare up some old code to verify that but I'm pretty sure.
|
|
|
|
|
Hi
I have written a downloader program that can download files from internet (with resume support).
But after I pass the file address and username and password of my account in rapidshare it can not download it, it just download a html file:
m_pHttpConnection = m_InternetSession.GetHttpConnection(sServer, nPort, sUser, sPassword);
also this function returns FALSE :
file.SendRequest(NULL);
Does anybody know how to pass username and password to rapisdhare or other sharing web sites?
Regards
Hadi
www.logicsims.ir
|
|
|
|