|
Yesterday the same question has been answered right?
Refer MSDN first, if you are not getting more information search in CP or codeguru.
if we read some good articles, we can correct if our aproach or method is wrong.
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
<blink>My Blog | Understanding State Patte
|
|
|
|
|
what is the breakpoint how we can use this in our progarm.i searched in the google i didn't found any tutorial for that.please please tell me.
vasu.
-- modified at 2:27 Thursday 6th July, 2006
|
|
|
|
|
Breakpoint is related to debugging a software application. as the name resembles, the program will stop (break) execution on that location. now you can watch variable registers, memory and other resources to make sure that the program is running properly and or to track (usually) the bug.
See this[^]
There's a book named "Debugging Applications" by John Robbins to learn more about debugging.
For a basic understanding this book is not required. if you want to develop your debug skills, this books is an ultimate one for debugging windows applications.
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
<blink>My Blog | Understanding State Patte
-- modified at 3:07 Thursday 6th July, 2006
|
|
|
|
|
|
hi!
I am devoloping a project in which i have different dialogs that gets displayed on a static tab clicks. i.e on static tab1 click, say dialog 1 is being displayed n like that.
Now in one of the dialog there is a check box which decides whether to load next dialog or not. i.e i need to disable static tab of the next dialog if this check box is checked.
How can i do this?? How can i get the access to taht check box from another dialog??
Thx in advance!
|
|
|
|
|
One way is to do this : When the user clicks on that check box write a value into the registry and then check for the value set/not set when you are trying to show the next dialog.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi Anshuman.
Are you mad fellow to give diry answers. Please give genunue answers. If you know the answer well then only give the answers. Why there is need of Registy for accessing the Control.
Do you know VC++ correctly and when to use what.
please follow common sense while giving your valuble message.
uday.
|
|
|
|
|
hey Man. Mind your language first of all.
What's the problem with this method . If you need to show the dialog check if the value is set into the registry and then decide whether or not to show the dialog as per your requirement. This method is used in many a application and you don't need to tell me what the genuine method is.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
hi,
there is a method for accessing controls from parent to child window. It seems you dont know it.
but it is there.
thanks,
uday.
|
|
|
|
|
And more methods.
Use //// This is the second one
CMain *pParent=(CMain*)GetParent();
///////This is the third one
Create a pointer of the first dialog in the second dialog and do this
CFirst *pFirstInSecond
CSecond *second=new CSecond();
second->pFirstInSecond=this;
second->DoModal();
Now you can access the variables of the first dialog in the second dialog.
And if you want a method or two more you can mail me
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
And By the way can you suggest me what the RIGHT :-> method is.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Uday Janaswamy wrote: Are you mad fellow to give diry answers.
1. Please dont use such language.
Uday Janaswamy wrote: Do you know VC++ correctly and when to use what.
2. Why won't you answer it if you know it so correctly?
This is not at all the way. He is silent even after you giving him such words. May be he does not know the very right way to do it, but he was just suggesting something that stroke his mind. I did not find anything wrong in it. If it was wrong you must have pointed it the right way to spot his mistake. I am not intending to hurt you. Hope you understand it and take it in good sense.
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
ok,
i am sorry but there is a method. i really sorry for that.
AfxGetParent();
uday.
|
|
|
|
|
Thx Anshuman !
Cool down Uday! This is definately one of the way to solve the problem.
@anshuman
How can i save the state in registry? I hav just started programming in VC++. IS there any function to do it?
Also can i hav pointer to the dialog so that i can access its control??
thx
|
|
|
|
|
Yes you can use CRegistry class . This is one of the easiest classes to use
See Here for CRegistry[^]
Regarding using a pointer you can see my previous post to this thread.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
-- modified at 2:55 Thursday 6th July, 2006
|
|
|
|
|
Hi anshuman,
i am sorry. be cool man.
uday.
|
|
|
|
|
That's better
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
An class declaration eritten below. i can't understand how it is written, i.e. which is base class & which is derived class & WHICH ARE THE MEMBER FUNCTIONSplz help me to make it clear???
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
-- modified at 1:41 Thursday 6th July, 2006
|
|
|
|
|
CAboutDlg derived from CDialog
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
this is not a class declaration.
the code is defining the default constructor of the CAboutDlg class (a constructor always has the same name as its class). a constructor can have an initialization list, which is the case here ; you can spot it with the : syntax after he function parameters list.
this initialization list tell the constructor the call the constructor of the CAboutDlg class' base class and passes it the CAboutDlg::IDD parameter.
what is missing in your sample is the brackets. i think the code would be at least :
class CAboutDlg : public CDialog {
public:
CAboutDlg CAboutDlg(void);
};
CAboutDlg::CAboutDlg()
: CDialog(CAboutDlg::IDD) {
}
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Hi all,
I have some doubt regarding the spin button control.
In Spin button control, how can i know which button (up/dowm arrow button) is clicked?
Thanx in advance.
|
|
|
|
|
void CTest::OnDeltaposSpin(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR;
// TODO: Add your control notification handler code here
if(pNMUpDown->iDelta <0)
MessageBox("up button");
else if(pNMUpDown->iDelta>0)
MessageBox("down button");
*pResult = 0;
}
Regards,
Ram
|
|
|
|
|
Thanx for ur reply
|
|
|
|
|
You can use the scroll messages for this.
OnVScroll or OnHScroll.
- NS -
|
|
|
|
|
hello friends,,
I have established serial communication with RABBIT3000 (an 8 bit microcontroller).
The packet from the microcontroller is sent to the PC only on the PC demanding it. The demand is sent through one of the variables in the packet sent from PC.
When the PC receives packet from the microcontroller, it receives the correct packet for the first time. During my second request and further,
the Pc keeps receiving the same packet that it received first.
The packet from the microcontroller is updated on some conditions so that its different values in the packet memebers each time it is sent to teh PC on demand.
but when I try sending a different packet (microcontroller updates the packet structure members) to the PC, it still receives only the same packet that it received first and not the updated one.
I receive the packet using Readfile and store the values in a circular buffer.
On the microcontrollers end, the changed values is what is sent in the packet. I have debugged on the microcontroller end and it is fine.
Why is the PC receiving the same packet ?
What could be the possibility? any suggestions?
Thanks in advance.
-- modified at 1:49 Thursday 6th July, 2006
|
|
|
|