Click here to Skip to main content
15,848,903 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Handling Messages in Dialog Pin
Stephen Hewitt25-Jan-06 23:01
Stephen Hewitt25-Jan-06 23:01 
AnswerRe: Handling Messages in Dialog Pin
Owner drawn26-Jan-06 19:30
Owner drawn26-Jan-06 19:30 
QuestionHow ActiveX works? Pin
kevincwong25-Jan-06 22:13
kevincwong25-Jan-06 22:13 
AnswerRe: How ActiveX works? Pin
Cedric Moonen25-Jan-06 22:33
Cedric Moonen25-Jan-06 22:33 
QuestionHow do we make curved 3d buttons? Pin
waxie25-Jan-06 22:15
waxie25-Jan-06 22:15 
AnswerRe: How do we make curved 3d buttons? Pin
khan++25-Jan-06 22:24
khan++25-Jan-06 22:24 
QuestionWhat is the quick way to add a file browser dialog Pin
the Jimmy25-Jan-06 19:35
the Jimmy25-Jan-06 19:35 
AnswerRe: What is the quick way to add a file browser dialog Pin
khan++25-Jan-06 21:05
khan++25-Jan-06 21: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 7:59
the Jimmy26-Jan-06 7:59 
GeneralRe: What is the quick way to add a file browser dialog Pin
Owner drawn26-Jan-06 19:32
Owner drawn26-Jan-06 19:32 
GeneralRe: What is the quick way to add a file browser dialog Pin
the Jimmy27-Jan-06 11:26
the Jimmy27-Jan-06 11:26 
QuestionMaking DlgBox without its class..... Pin
minguy25-Jan-06 15:48
minguy25-Jan-06 15:48 
AnswerRe: Making DlgBox without its class..... Pin
Vipin Aravind25-Jan-06 19:52
Vipin Aravind25-Jan-06 19:52 
QuestionCSpiltterWnd Pin
LeeeNN25-Jan-06 15:30
LeeeNN25-Jan-06 15:30 
QuestionReturning data from VC++(DLL) to VB Client Pin
techratna25-Jan-06 14:52
techratna25-Jan-06 14:52 
AnswerRe: Returning data from VC++(DLL) to VB Client Pin
Stephen Hewitt25-Jan-06 21:51
Stephen Hewitt25-Jan-06 21:51 
AnswerRe: Returning data from VC++(DLL) to VB Client Pin
Phil J Pearson26-Jan-06 0:29
Phil J Pearson26-Jan-06 0:29 
Questionchild frame fills main frame? Pin
LeeeNN25-Jan-06 14:38
LeeeNN25-Jan-06 14:38 
AnswerRe: child frame fills main frame? Pin
Owner drawn26-Jan-06 18:04
Owner drawn26-Jan-06 18:04 
QuestionMember Get/Set methods? Pin
Rob Caldecott25-Jan-06 12:55
Rob Caldecott25-Jan-06 12:55 
AnswerRe: Member Get/Set methods? Pin
Maximilien25-Jan-06 17:45
Maximilien25-Jan-06 17:45 
AnswerRe: Member Get/Set methods? Pin
Bob Stanneveld25-Jan-06 22:07
Bob Stanneveld25-Jan-06 22:07 
Questionhow to define the customer paper type Pin
yujia12025-Jan-06 9:15
yujia12025-Jan-06 9:15 
AnswerRe: how to define the customer paper type Pin
Phil J Pearson26-Jan-06 0:32
Phil J Pearson26-Jan-06 0:32 
QuestionRe: how to define the customer paper type Pin
yujia12026-Jan-06 6:38
yujia12026-Jan-06 6: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.