Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Termination of a thread Pin
Vassili16-Apr-03 3:27
Vassili16-Apr-03 3:27 
GeneralRe: Termination of a thread Pin
David Crow16-Apr-03 3:33
David Crow16-Apr-03 3:33 
GeneralRe: Termination of a thread Pin
Vassili16-Apr-03 4:24
Vassili16-Apr-03 4:24 
GeneralRe: Termination of a thread Pin
David Crow16-Apr-03 4:31
David Crow16-Apr-03 4:31 
GeneralRe: Termination of a thread Pin
Rage16-Apr-03 4:52
professionalRage16-Apr-03 4:52 
GeneralRe: Termination of a thread Pin
Mike Upton16-Apr-03 2:26
Mike Upton16-Apr-03 2:26 
QuestionHow to describe such objects using C++? Pin
George216-Apr-03 1:30
George216-Apr-03 1:30 
AnswerRe: How to describe such objects using C++? Pin
perlmunger16-Apr-03 7:10
perlmunger16-Apr-03 7:10 
I think that your encapsulation of User in a class is a good idea, but I wouldn't necessarily create a class to represent the table itself. It is normally better to create a data access layer to handle transactions with the database. You can just create this layer and ask it to populate your data object (User) for you. I would handle all database access this way, so the User class should have a base class that all data objects inherit from. If you do a search on google 'Data Access Layer', you should be able to gain a deeper understanding of the concept. Here is an interesting link I found with that search: http://www.15seconds.com/issue/020611.htm.

Best Regards and good luck.

-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
GeneralXOR mode Pin
pankajdaga16-Apr-03 1:21
pankajdaga16-Apr-03 1:21 
GeneralRe: XOR mode Pin
Dominik Reichl16-Apr-03 1:58
Dominik Reichl16-Apr-03 1:58 
GeneralUnicode windows Pin
Hugo Hallman16-Apr-03 1:10
Hugo Hallman16-Apr-03 1:10 
GeneralRe: Unicode windows Pin
Anders Molin16-Apr-03 4:17
professionalAnders Molin16-Apr-03 4:17 
GeneralBest way to completely empty structure.. Pin
IrishSonic16-Apr-03 1:02
IrishSonic16-Apr-03 1:02 
GeneralRe: Best way to completely empty structure.. Pin
Dominik Reichl16-Apr-03 2:03
Dominik Reichl16-Apr-03 2:03 
GeneralRe: Best way to completely empty structure.. Pin
JT Anderson16-Apr-03 6:35
JT Anderson16-Apr-03 6:35 
GeneralRe: Best way to completely empty structure.. Pin
Gary R. Wheeler18-Apr-03 5:14
Gary R. Wheeler18-Apr-03 5:14 
GeneralWhich way is better to overload operator >> Pin
George215-Apr-03 23:50
George215-Apr-03 23:50 
GeneralRe: Which way is better to overload operator >> Pin
Joaquín M López Muñoz16-Apr-03 3:34
Joaquín M López Muñoz16-Apr-03 3:34 
GeneralRe: Which way is better to overload operator >> Pin
George216-Apr-03 3:43
George216-Apr-03 3:43 
Generallocale currency Pin
vcseeker15-Apr-03 21:57
vcseeker15-Apr-03 21:57 
GeneralRe: locale currency Pin
David Crow16-Apr-03 2:18
David Crow16-Apr-03 2:18 
GeneralIE toolbar disappearing buttons Pin
xenonii15-Apr-03 20:54
xenonii15-Apr-03 20:54 
GeneralRe: IE toolbar disappearing buttons Pin
xenonii16-Apr-03 2:22
xenonii16-Apr-03 2:22 
GeneralDDI hooking Pin
vikramlinux15-Apr-03 20:21
vikramlinux15-Apr-03 20:21 
GeneralRe: DDI hooking Pin
Dominik Reichl15-Apr-03 23:13
Dominik Reichl15-Apr-03 23:13 

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.