|
There is no CPropertyPage for a tab control.
CPropertyPage is a class that is associated with CPropertySheet .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks.
when I compile i am getting an error
error C2352: 'CPropertySheet::GetTabControl' : illegal call of non-static member function
|
|
|
|
|
Oh Boy!!!
CPropertySheet object;
object.GetTabControl();
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
How can change the Font Dialog default title text from "Fonts" to "Input Fonts" for example?
|
|
|
|
|
Derive a class from CFontDialog and set the title bar from the oninitdialog() function of that class.
|
|
|
|
|
i tried to do that but i got another problem when trying to call the derived dialog because i could not
give the CWnd for it, i call it from SDI Application.Do you have any idea how can i call the derived dialog from sdi? i tried to give the window name in the constructor of the derived class but it does not work.
|
|
|
|
|
I get an access violation in release mode but not in debug.
Yes, I know it's been talked about in many threads and I think I have read all of them. I can even debug release mode now, to impress my colleagues.
It dies when I hop into a dll I wrote, but not always quite in the same place. I have a feeling I have a NULL pointer. Anyway, I have been looking at ways I might be making a null pointer, and have made many improvements, but it still crashes.
HERE is the question...
One of the threads here asked if the poster had code in his constructor. Now I often have code in my constructors, I even call other constructors, with new (and I delete every single one, I promise), and as far as I am concerned this is quite normal and acceptable. Am I wrong? Could this be it? I also put code in destructors, deleting stuff and ending other processes.
-------------
Ave computer! Hackitura te salutat!
(I just made this up. Just to show you can hack Latin as well as C++.)
modified on Monday, May 18, 2009 9:26 AM
|
|
|
|
|
RedSonja wrote: I think I have read all of them
I bet you missed this[^] one.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
No I didn't. That is one of the best ones so far.
(I even bookmarked it.)
-------------
Ave computer! Hackitura te salutat!
(I just made this up. Just to show you can hack Latin as well as C++.)
|
|
|
|
|
I see you have already read Joe's article on surviving the release build. By now, you must be ready to survive the release build, then.
RedSonja wrote: and have made many improvements, but it still crashes.
Which implies that the "many improvements" you made were not to the code which was causing the crash. A crude and quick approach would be to add OutputDebugString()[^] statements in the pieces of code that you suspect. This way, you may know until where the control reaches and where does it crash.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Thank you. I do know where it crashes, it enters my little dll through an exported function, then instantiates the class in there, and dies in the constructor, right on the {.
I can tell that its problem is a null or corrupted pointer, because the debugger lets me look at the assembly code, and it tries to jump to places it's not allowed to, an access violation, as it says.
I am trying to get DevPartner to run again. (The newest version seems to be a bit buggy.) When it was running before, it complained about "Calling Virtual Functions from Constructors and Destructors" and stuff like that, which I have stopped doing (this is what I meant by improvements). Hence my question. Is it OK to put code - I mean, real code that does things - in the constructor and destructor, when the compiler allows it and DevPartner whinges about it?
If I can't get it running this week I shall just have to deliver the debug version, which is not so tragic right now, but it bothers me.
-------------
Ave computer! Hackitura te salutat!
(I just made this up. Just to show you can hack Latin as well as C++.)
|
|
|
|
|
Hi all,
please tell me how can SetTimer on Modeless dialog box.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
The same way you set timer for a modal dialog...
|
|
|
|
|
i m trying same method but its not working in case of modeless dialog box.
use
SetTimer(1, 500, NULL);
void CTest_Dlg::OnTimer(UINT_PTR nIDEvent)
{
switch (nIDEvent)
{
case 1:
AfxMessageBox(_T("Timer"));
break;
}
CDialog::OnTimer(nIDEvent);
}
this working fine in modal dialog box.but OnTimer not call in case of modeless dialog box.
please help me for this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
It should work fine.... hope your messagemap contains
ON_WM_TIMER() entry. pls check.
|
|
|
|
|
yes i have ON_WM_TIMER() in my message map.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Since your dialog is modless, who runs the message loop? another dialog?
Try this. Just after the dialog creation put a messagebox...and then check whether the timer is triggered or not...
|
|
|
|
|
I m already use AfxMessageBox in timer but its never popups.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
its ok. Keep that message bo as it is..
I asked you to add another messagebox just after the creation. this to check whether this is as problem of the message loop...
|
|
|
|
|
Why are you calling AfxMessageBox() from within the timer callback routine? I cannot think of any reason why that would ever be the right thing to do. If you are debugging, use something that does not block (e.g., TRACE() ).
"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
|
|
|
|
|
Just checking timer function called or not.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Hi
I am looking for a good serialization design which can support multi-inheritance.
If anyone knows a good class, please me know.
Best regards,
modified on Monday, May 18, 2009 9:02 AM
|
|
|
|
|
|
i have the following problem, when i print the output to the CEditview window, the line is too long that it get broken and start a new line onspite of
i did not instruct the programm to break the line and complete it in a new line.what is wrong?
|
|
|
|
|
try adding autohscroll and horizontal scroll bar style to the edit view
|
|
|
|