Click here to Skip to main content
15,909,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Handling Messages in Dialog Pin
Stephen Hewitt25-Jan-06 22:01
Stephen Hewitt25-Jan-06 22:01 
AnswerRe: Handling Messages in Dialog Pin
Owner drawn26-Jan-06 18:30
Owner drawn26-Jan-06 18:30 
QuestionHow ActiveX works? Pin
kevincwong25-Jan-06 21:13
kevincwong25-Jan-06 21:13 
AnswerRe: How ActiveX works? Pin
Cedric Moonen25-Jan-06 21:33
Cedric Moonen25-Jan-06 21:33 
QuestionHow do we make curved 3d buttons? Pin
waxie25-Jan-06 21:15
waxie25-Jan-06 21:15 
AnswerRe: How do we make curved 3d buttons? Pin
khan++25-Jan-06 21:24
khan++25-Jan-06 21:24 
QuestionWhat is the quick way to add a file browser dialog Pin
the Jimmy25-Jan-06 18:35
the Jimmy25-Jan-06 18:35 
AnswerRe: What is the quick way to add a file browser dialog Pin
khan++25-Jan-06 20:05
khan++25-Jan-06 20:05 
To browse a file, you can use CFileDialog fd(TRUE);
then
int nResult = fd.DoModal();<br />
if (nResult == IDOK)<br />
{<br />
CString strPath = fd.GetPathName();<br />
}

Now strPath has the full path to the selected file.

To create some registration dialog, there are many ways to do it. It depends on what kind of registration you want to set.
If you do not want the user to run the program even once without registration, then you can:
Read a particular location from registry for the software key. If that key is read ok, then good. Else show a registration dialog like this:
Create a dialog resource. Attach a class to it, put a editbox on it. If the software is not registered, then create this dialog:
CRegDialog reg;<br />
reg.DoModal();

Now check the value the user entered into the editbox. If it is really the key, then save it to the registry at that particular location, and go on with the program. Else exit program.
But as I said, there are many ways to set program registration things.


this is this.
GeneralRe: What is the quick way to add a file browser dialog Pin
the Jimmy26-Jan-06 6:59
the Jimmy26-Jan-06 6:59 
GeneralRe: What is the quick way to add a file browser dialog Pin
Owner drawn26-Jan-06 18:32
Owner drawn26-Jan-06 18:32 
GeneralRe: What is the quick way to add a file browser dialog Pin
the Jimmy27-Jan-06 10:26
the Jimmy27-Jan-06 10:26 
QuestionMaking DlgBox without its class..... Pin
minguy25-Jan-06 14:48
minguy25-Jan-06 14:48 
AnswerRe: Making DlgBox without its class..... Pin
Vipin Aravind25-Jan-06 18:52
Vipin Aravind25-Jan-06 18:52 
QuestionCSpiltterWnd Pin
LeeeNN25-Jan-06 14:30
LeeeNN25-Jan-06 14:30 
QuestionReturning data from VC++(DLL) to VB Client Pin
techratna25-Jan-06 13:52
techratna25-Jan-06 13:52 
AnswerRe: Returning data from VC++(DLL) to VB Client Pin
Stephen Hewitt25-Jan-06 20:51
Stephen Hewitt25-Jan-06 20:51 
AnswerRe: Returning data from VC++(DLL) to VB Client Pin
Phil J Pearson25-Jan-06 23:29
Phil J Pearson25-Jan-06 23:29 
Questionchild frame fills main frame? Pin
LeeeNN25-Jan-06 13:38
LeeeNN25-Jan-06 13:38 
AnswerRe: child frame fills main frame? Pin
Owner drawn26-Jan-06 17:04
Owner drawn26-Jan-06 17:04 
QuestionMember Get/Set methods? Pin
Rob Caldecott25-Jan-06 11:55
Rob Caldecott25-Jan-06 11:55 
AnswerRe: Member Get/Set methods? Pin
Maximilien25-Jan-06 16:45
Maximilien25-Jan-06 16:45 
AnswerRe: Member Get/Set methods? Pin
Bob Stanneveld25-Jan-06 21:07
Bob Stanneveld25-Jan-06 21:07 
Questionhow to define the customer paper type Pin
yujia12025-Jan-06 8:15
yujia12025-Jan-06 8:15 
AnswerRe: how to define the customer paper type Pin
Phil J Pearson25-Jan-06 23:32
Phil J Pearson25-Jan-06 23:32 
QuestionRe: how to define the customer paper type Pin
yujia12026-Jan-06 5:38
yujia12026-Jan-06 5:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.