|
Giorgi Moniava wrote:
Thanks for help
It's my great Pleasure !
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
My application in my view, is getting quite large, now I have just got a Stack Overflow when I added new code.
If I comment out this new code, the program run OK.
Are they any setting that I can make to increase the programs parameters like Stack size etc to allow me to continue to add to this program.
Note the point in the code that causes the Stack Overflow is a bit strange in the debugger; a simple if statement keeps looping like a while loop.
Any comments please.
|
|
|
|
|
i'd advise you to split your code into functions you could include into DLLs...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Are you saying that they are no settings that I an make.
I will do a re-design later, but need this phase to continue.
I assume I have the default settings for Visual Studio (V7.1) being applied.
|
|
|
|
|
|
The default stack size is 1MB. Check out the linker's /stack option.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
Hi
I am writing a software for a STAND-ALONE SYSTEM which should expire exactly after 30 DAYS.
The problem is i have to compare my installation date with the system clock , which can be changed easily .... effectively the user can run the software forever if he keeps changing the system date back.
The only solution i see is ... logging the time and date at regular intervals to a file ... probably encrypt it .
but that will also fail ...
Is there ANY other way?
Adithya H A
|
|
|
|
|
|
I have edit controls in the property page.How can I capture the OnChar event for the edit controls.
I was told to do that by deriving CEdit class and capturing the OnChar event then.Can anoyone clarify exactly how this can be dealt with.
laiju
|
|
|
|
|
Look for control sub-classing in MSDN
« Superman »
|
|
|
|
|
laiju wrote:
I was told to do that by deriving CEdit class and capturing the OnChar event then.Can anoyone clarify exactly how this can be dealt with.
Use ClassWizard (Ctrl+W) to derive a new class from CEdit .
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I have inherited a class from CEdit as show below
class CEditValidate : public CEdit
{
DECLARE_DYNAMIC(CEditValidate)
public:
CEditValidate();
virtual ~CEditValidate();
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
};
Now can u let me know how I can use this OnChar handler for validating the characters keyed into the edit control in my property page.
laiju
|
|
|
|
|
laiju wrote:
Now can u let me know how I can use this OnChar handler for validating the characters keyed into the edit control in my property page.
Simply modify that method to allow/disallow the characters. You did not specify what characters you wanted to keep/discard.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I get what you say. But the OnChar handler is not invoked at all when I type characters into the Edit control in my property page. I dont understand how to use the newly inherited class for my edit control in the property page.
laiju
|
|
|
|
|
laiju wrote:
But the OnChar handler is not invoked at all when I type characters into the Edit control in my property page.
Probably because you are not using the newly created class. Modify the page's .h file to use it instead of CEdit .
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I understood the concept now.
I changed CEdit to the class I newly inherited .
I manually changed them as below and it works.
CEditValidate m_Width;
CEditValidate m_Height;
Thanx once again.
laiju
|
|
|
|
|
Hi everybody,
I have drawn a line with LineTo.
Now, I want to perform the functionality that if I click upon the Line, it will write a TRACE saying : OK, you have clicked upon it... I mean, I want to know how to know if a point belongs or not a line. I have to do the same with several lines,distinguishing them from the others.
Thanks you very much
Javi
|
|
|
|
|
You have the line coordinates (x1 , y1 ) & (x2 , y2 ). You can store this parameters in a linked list of all the lines and traversing the list. Now you have a point say (x , y ) and you want to check that it belongs to the line or not. You can use the equation:
y2 -- y1
m = -----------
x2 -- x1
if((y - y1) == (m ( x - x1)))
Point lie on line.
http://www.priyank.in/
|
|
|
|
|
|
You could use the line function as suggested by Priyank or you could
simply use GetPixel() on the cursor coordinates and test the RGB value
returned to see if it matches the color you used to draw the line.
Steve T
|
|
|
|
|
Well I’m trying to create this small app that notifies me how long I have played a game. Now I want it to draw a short message or picture telling me that I have played game for N minutes.
Is it possible and how to display something over a fullscreen directx or opengl game, without interrupting it?
I have already tried with simple dialogs in MFC with Topmost attributes set but it doesn't seem to work on fullscreen games.
I would appreciate suggestions and samples on how to do that.
I'm not so experienced direcx programmer.
~dzenan~
|
|
|
|
|
Hi All,
I have a dialog in DLL, I wish to call this dialog of DLL from an EXE and get some data of this dialog in the EXE.
Can anyone help me.
If I use MFC Extension DLL then I am able to call the dialog but can not read the data.
If I use MFC regular DLL then I can send or read data but not been able to call the dialog of DLL.
An immediate help will be appreciated.
Please mail me at,
lipiraj@yahoo.com
Thanks in advance,
Rajesh
Rajesh
|
|
|
|
|
In an MFC regular DLL export a function that does DoModal on the dialog.
The first line of that exported function must be
AFX_MANAGE_STATE(AfxGetStaticModuleState( ));
« Superman »
|
|
|
|
|
I have a header file x.h as follows
#ifndef _x_h
#define x_h
#pragma once
#include "vv.h" //this gives a set of warning
.............
#endif
I am including this x.h in many .cpp file.
When I compile it gives warning for all the .cpp files. how do I avoid this?
|
|
|
|