Click here to Skip to main content
16,005,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralArchive and STL map question. Pin
Stumped on STL and Archive30-Aug-02 20:00
sussStumped on STL and Archive30-Aug-02 20:00 
GeneralRe: Archive and STL map question. Pin
Todd Smith30-Aug-02 20:17
Todd Smith30-Aug-02 20:17 
GeneralRe: Archive and STL map question. Pin
Anonymous31-Aug-02 2:23
Anonymous31-Aug-02 2:23 
Generalmfc programming with SQL database support Pin
bppotato30-Aug-02 19:29
bppotato30-Aug-02 19:29 
GeneralRe: mfc programming with SQL database support Pin
Masaaki Onishi30-Aug-02 20:00
Masaaki Onishi30-Aug-02 20:00 
GeneralRe: mfc programming with SQL database support Pin
Renjith Ramachandran30-Aug-02 20:10
Renjith Ramachandran30-Aug-02 20:10 
GeneralRe: mfc programming with SQL database support Pin
Michael P Butler30-Aug-02 22:12
Michael P Butler30-Aug-02 22:12 
GeneralRe: mfc programming with SQL database support Pin
Vagif Abilov30-Aug-02 22:40
professionalVagif Abilov30-Aug-02 22:40 
bppotato wrote:
Since my project require me to have a login at the
first place(for control) i believe the dialog base is needed. But then
in this case there isn't any database support which i need.


Are you planning to build the whole application around login screen? I guess not. You should first select how the main application window will look (SDI? MDI?) and then add additional dialogs. Both SDI and MDI choices support MFC database classes. However, as somebody already mentioned, default database support in CRecordView (or whatever it's called) is too limited. You should build your forms separately and wire them to database classes.

If i choose the single document base, how do i make sure the
"login" interface will appear before any other interface.


You have to do something yourself. Smile | :) Make your application SDI, and then create a new CDialog-based class. Then inside InitInstance insert something similar to this:

CMyDialog dlg;
while(!dlg.LoginSucceeded())
{
if( dlg.DoModal() != IDOK )
break;
}

Good luck!

Vagif Abilov
MCP (Visual C++)
Oslo, Norway


If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them.
Jack Handey, Deep Thoughts
GeneralA question about #define Pin
George Ma30-Aug-02 18:35
George Ma30-Aug-02 18:35 
GeneralRe: A question about #define Pin
Renjith Ramachandran30-Aug-02 19:48
Renjith Ramachandran30-Aug-02 19:48 
GeneralRe: A question about #define Pin
George Ma30-Aug-02 21:17
George Ma30-Aug-02 21:17 
GeneralRe: A question about #define Pin
Todd Smith30-Aug-02 20:32
Todd Smith30-Aug-02 20:32 
GeneralRe: A question about #define Pin
George Ma30-Aug-02 21:20
George Ma30-Aug-02 21:20 
GeneralDialog Bars and Buttons Pin
Chun Te, Ewe30-Aug-02 13:18
Chun Te, Ewe30-Aug-02 13:18 
GeneralI'm sorry but other question about Carlos Antollini ADO classes ! Pin
Hadi Rezaee30-Aug-02 12:49
Hadi Rezaee30-Aug-02 12:49 
Generalsound output Pin
Nnamdi Onyeyiri30-Aug-02 12:12
Nnamdi Onyeyiri30-Aug-02 12:12 
GeneralRe: sound output Pin
Anders Molin30-Aug-02 12:27
professionalAnders Molin30-Aug-02 12:27 
GeneralRe: sound output Pin
Nnamdi Onyeyiri30-Aug-02 23:28
Nnamdi Onyeyiri30-Aug-02 23:28 
GeneralWriting app to tell others what game server I am connected to. Need advice. Pin
Raskolnikov30-Aug-02 12:13
Raskolnikov30-Aug-02 12:13 
GeneralRe: Writing app to tell others what game server I am connected to. Need advice. Pin
Michael P Butler30-Aug-02 22:15
Michael P Butler30-Aug-02 22:15 
Generaltree Pin
yaser30-Aug-02 11:16
yaser30-Aug-02 11:16 
GeneralRe: tree Pin
Pole30-Aug-02 21:50
Pole30-Aug-02 21:50 
GeneralTree Pin
yaser30-Aug-02 11:01
yaser30-Aug-02 11:01 
Generaltree Pin
yaser30-Aug-02 10:52
yaser30-Aug-02 10:52 
GeneralNTService creating COM object problem Pin
Ed K30-Aug-02 9:26
Ed K30-Aug-02 9:26 

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.