|
I have a propertysheet with 5 pages. The following is the OnWizardNext() of page3.
LRESULT CPage3::OnWizardNext()
{
if(Value == 1)
{
sheet.RemovePage(&sheet.page4);
}
return CPropertyPage::OnWizardNext();
}
At run time, when the "Value" is 1, I shouldn't get page4 tab. I should remove that. But I am unable to do so.
Is my code correct? Please let me know.
Taruni
|
|
|
|
|
Taruni wrote: sheet.RemovePage(&sheet.page4);
What's that ? You said you were using RemovePage(3). What is page4 here ?
|
|
|
|
|
As the parameter to the RemovePage is 0 based index of the page, I have tried to remove the page 4 by saying, sheet.RemovePage(3) and also I have tried by passing the reference of the page.
sheet.RemovePage(&sheet.page4);
But I was unable to remove the page.
Taruni
|
|
|
|
|
Taruni wrote: sheet.RemovePage(&sheet.page4);
What happens if you ever need to re-add the page? Have you considered something like:
LRESULT CPage3::OnWizardNext()
{
if (Value == 1)
return 3;
else
return CPropertyPage::OnWizardNext();
}
"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
|
|
|
|
|
Your CPMRU is running low on power?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Nah, it's still broken . I should ask for a new one, seems it is required those days
|
|
|
|
|
Hi all,
i m working on VC++2005,in my application when i m edit dialog box or any resource of aaplication it may be ICON,Bitmap or any thing else.and run my application.
an error occured that is"error RC2135 : file not found: Data Doctor's Employee Planner.tlb"
and it indicate in .rc file on this line"1 TYPELIB "Data Doctor's Employee Planner.tlb" if i m comment this line it is occured again when i m edit any resource.
i dont know what is this and how can i solve this.
please tell me.
thanks in advance.
|
|
|
|
|
ThatsMe. wrote: i dont know what is this and how can i solve this.
please tell me.
Try this.
"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
|
|
|
|
|
i am trying to connect to my ftp server using sockets...
i want to send a file every time i modify... the program is incomplete...
it is working... but i am not clear of how to keep the connection live...
i am sending the commands to port 21
out ="USER username\r\n";
out += "PASS pass\r\n";
out+= "ACCT ftp.domain.com\r\n"
out+= "LIST\r\n";
out += "CDUP\r\n";
iResult = send( ConnectSocket, out.c_str(), out.length(), 0 );
the result is - the word username will have the login name
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 5 of 50 allowed.
220-Local time is now 00:57. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
331 User username OK. Password required
230-User username has group access to: username
230 OK. Current restricted directory is /
202 Please tell me who you are
425 No data connection
250 OK. Current directory is /
250 Logout.
if i have to send a file then how it should suppose to be ?
that is what is the rule to construct the ftp command for that...
__________________
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
Is there any API in win32 to enable Junk mail options in outlook mail doing it programatically.
If so please let me know
|
|
|
|
|
I'm learning computer science by myself right now.
But I have some problems which confuse me a lot.Especially in VC++ programming.
Who kindly enough to help me? My msn wx_bornfree@live.cn.
Thanks for your help!
modified on Thursday, April 3, 2008 8:03 AM
|
|
|
|
|
|
bornunique wrote: Who kindly enough to help me? My msn wx_bornfree@live.cn.
Oooh me, me. I'll help. My rates are cheap at £100 per hour and powdered unicorn horn. Please reply me at peter@werenotstupid.com.
|
|
|
|
|
Pete O'Hanlon wrote: peter@werenotstupid.com
Ironic choice of domain considering, according to an email message I just received in reply to one I sent to you, you haven't configured your mail server correctly!
Brad
Australian
The PHP MVP
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Did you send it via CodeProject?
|
|
|
|
|
Brad - were you being serious or ironic here? If you are being serious, could you give me details please because I'll need to raise this with my infrastructure guys to find out if emails are being bounced.
|
|
|
|
|
Sorry, that was a joke. I find using the joke icon a little precocious.
Brad
Australian
The PHP MVP
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Bradml wrote: Sorry, that was a joke. I
Phew - that was a team bollocking averted.
|
|
|
|
|
Pete O'Hanlon wrote: My rates are cheap at £100 per hour
You cheap bastard!
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I sent a letter to peter@werenotstupid.com,but failed.
What's wrong?
|
|
|
|
|
My rates are £200 per hour (I've to pay for Pete's consultancy)
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
|
|
|
|
|
£300,you give to me.Then you can get my £200 .Make a deal?
|
|
|
|
|
Not a good deal, no help from me, sorry.
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
|
|
|
|
|
Don't be scared!Be brave ,Be an ancient hero like Caesar.
|
|
|
|
|
Actually I'm not scared, but I'm more like a Moliere's character (you know which one ) than an Ancient personage.
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
|
|
|
|