Click here to Skip to main content
15,899,124 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC, c++ windows programming audio books Pin
Satheesh15461-Jan-12 16:59
Satheesh15461-Jan-12 16:59 
GeneralRe: MFC, c++ windows programming audio books Pin
Richard MacCutchan1-Jan-12 23:20
mveRichard MacCutchan1-Jan-12 23:20 
GeneralRe: MFC, c++ windows programming audio books Pin
Phil0053-Jan-12 1:55
Phil0053-Jan-12 1:55 
GeneralRe: MFC, c++ windows programming audio books Pin
Phil0054-Jan-12 3:57
Phil0054-Jan-12 3:57 
QuestionCreateProcessAsUser Question Pin
Lucidation30-Dec-11 11:29
Lucidation30-Dec-11 11:29 
AnswerRe: CreateProcessAsUser Question Pin
Richard Andrew x6430-Dec-11 14:47
professionalRichard Andrew x6430-Dec-11 14:47 
GeneralRe: CreateProcessAsUser Question Pin
Lucidation31-Dec-11 11:21
Lucidation31-Dec-11 11:21 
GeneralRe: CreateProcessAsUser Question Pin
Richard Andrew x6431-Dec-11 15:06
professionalRichard Andrew x6431-Dec-11 15:06 
GeneralRe: CreateProcessAsUser Question Pin
Lucidation5-Jan-12 4:40
Lucidation5-Jan-12 4:40 
GeneralRe: CreateProcessAsUser Question Pin
Richard Andrew x645-Jan-12 8:03
professionalRichard Andrew x645-Jan-12 8:03 
GeneralRe: CreateProcessAsUser Question Pin
Lucidation5-Jan-12 13:38
Lucidation5-Jan-12 13:38 
GeneralRe: CreateProcessAsUser Question Pin
Richard Andrew x645-Jan-12 13:45
professionalRichard Andrew x645-Jan-12 13:45 
GeneralRe: CreateProcessAsUser Question Pin
Lucidation6-Jan-12 12:25
Lucidation6-Jan-12 12:25 
GeneralRe: CreateProcessAsUser Question Pin
Richard Andrew x646-Jan-12 12:53
professionalRichard Andrew x646-Jan-12 12:53 
QuestionCommand Routing From CDialogBar to CMainFrame Pin
sdancer7530-Dec-11 9:41
sdancer7530-Dec-11 9:41 
SuggestionRe: Command Routing From CDialogBar to CMainFrame Pin
Randor 30-Dec-11 15:06
professional Randor 30-Dec-11 15:06 
QuestionIntializing a structure array to store SQL Results from a class Pin
jkirkerx30-Dec-11 7:15
professionaljkirkerx30-Dec-11 7:15 
AnswerRe: Intializing a structure array to store SQL Results from a class Pin
Code-o-mat30-Dec-11 8:30
Code-o-mat30-Dec-11 8:30 
GeneralRe: Intializing a structure array to store SQL Results from a class Pin
jkirkerx30-Dec-11 9:15
professionaljkirkerx30-Dec-11 9:15 
GeneralRe: Intializing a structure array to store SQL Results from a class Pin
Code-o-mat30-Dec-11 9:33
Code-o-mat30-Dec-11 9:33 
GeneralRe: Intializing a structure array to store SQL Results from a class Pin
jkirkerx30-Dec-11 10:01
professionaljkirkerx30-Dec-11 10:01 
GeneralRe: Intializing a structure array to store SQL Results from a class Pin
Code-o-mat30-Dec-11 10:06
Code-o-mat30-Dec-11 10:06 
GeneralRe: Intializing a structure array to store SQL Results from a class Pin
jkirkerx31-Dec-11 8:51
professionaljkirkerx31-Dec-11 8:51 
GeneralRe: Intializing a structure array to store SQL Results from a class Pin
Code-o-mat31-Dec-11 8:57
Code-o-mat31-Dec-11 8:57 
AnswerRe: Intializing a structure array to store SQL Results from a class Pin
jschell30-Dec-11 8:35
jschell30-Dec-11 8:35 
Your database layer should be distinct from your display layer.
Your display layer uses the database layer. There is no display information/design in the database layer (noting of course that the application design of a simple app might seem to drive directly through the two layers.)


jkirkerx wrote:
I thought it would be written like this ...


What exactly is the question?

You need a pointer. You need to new an array. Then you initialize each member in the array.

If you are asking how to access a member of the array then you do it as
uaList[0].iUserID
uaList[1].iUserID
etc.



(Presumably you are also providing code to clear up every single allocation.)

Also given that you are using C++ why are not just using a straight forward class with string members?

Formatting suggestions.
- Don't put underscores in the middle of names.
- Don't put underscores at the beginning of method names.
- If a method belongs to a class then don't prefix the class name to the method.

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.