Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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.
GeneralRe: Intializing a structure array to store SQL Results from a class Pin
jkirkerx30-Dec-11 9:22
professionaljkirkerx30-Dec-11 9:22 
GeneralRe: Intializing a structure array to store SQL Results from a class Pin
Vaclav_30-Dec-11 12:24
Vaclav_30-Dec-11 12:24 
GeneralRe: Intializing a structure array to store SQL Results from a class Pin
jkirkerx30-Dec-11 12:40
professionaljkirkerx30-Dec-11 12:40 
GeneralRe: Intializing a structure array to store SQL Results from a class Pin
jschell31-Dec-11 13:10
jschell31-Dec-11 13:10 
GeneralRe: Intializing a structure array to store SQL Results from a class Pin
jkirkerx31-Dec-11 13:14
professionaljkirkerx31-Dec-11 13:14 
QuestionUNIT how to convert int Pin
dlsyaim29-Dec-11 21:59
dlsyaim29-Dec-11 21:59 
AnswerRe: UNIT how to convert int Pin
_Flaviu29-Dec-11 22:03
_Flaviu29-Dec-11 22:03 
AnswerRe: UNIT how to convert int Pin
Richard MacCutchan29-Dec-11 22:09
mveRichard MacCutchan29-Dec-11 22:09 
GeneralRe: UNIT how to convert int Pin
dlsyaim29-Dec-11 22:26
dlsyaim29-Dec-11 22:26 
GeneralRe: UNIT how to convert int Pin
Richard MacCutchan29-Dec-11 22:51
mveRichard MacCutchan29-Dec-11 22:51 
GeneralRe: UNIT how to convert int Pin
Richard MacCutchan29-Dec-11 23:06
mveRichard MacCutchan29-Dec-11 23:06 
GeneralRe: UNIT how to convert int Pin
dlsyaim29-Dec-11 23:15
dlsyaim29-Dec-11 23:15 
GeneralRe: UNIT how to convert int Pin
Richard MacCutchan29-Dec-11 23:20
mveRichard MacCutchan29-Dec-11 23:20 
QuestionRe: UNIT how to convert int Pin
David Crow30-Dec-11 2:45
David Crow30-Dec-11 2:45 
QuestionRight click and ON_UPDATE_COMMAND_UI Pin
_Flaviu29-Dec-11 21:30
_Flaviu29-Dec-11 21:30 
AnswerRe: Right click and ON_UPDATE_COMMAND_UI Pin
Code-o-mat29-Dec-11 22:20
Code-o-mat29-Dec-11 22:20 
GeneralRe: Right click and ON_UPDATE_COMMAND_UI Pin
_Flaviu30-Dec-11 0:46
_Flaviu30-Dec-11 0:46 

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.