Click here to Skip to main content
15,923,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hide window from taskbar and alt+tab window Pin
David Crow18-Jul-07 7:22
David Crow18-Jul-07 7:22 
GeneralRe: Hide window from taskbar and alt+tab window Pin
Perspx18-Jul-07 7:23
Perspx18-Jul-07 7:23 
GeneralRe: Hide window from taskbar and alt+tab window Pin
James R. Twine18-Jul-07 7:24
James R. Twine18-Jul-07 7:24 
QuestionRe: Hide window from taskbar and alt+tab window Pin
David Crow18-Jul-07 7:19
David Crow18-Jul-07 7:19 
AnswerRe: Hide window from taskbar and alt+tab window Pin
Perspx18-Jul-07 7:21
Perspx18-Jul-07 7:21 
AnswerRe: Hide window from taskbar and alt+tab window Pin
James R. Twine18-Jul-07 7:25
James R. Twine18-Jul-07 7:25 
QuestionClass structure with character array Pin
bsharp5218-Jul-07 5:45
bsharp5218-Jul-07 5:45 
AnswerRe: Class structure with character array Pin
Mark Salsbery18-Jul-07 5:58
Mark Salsbery18-Jul-07 5:58 
Two problems:

1) You're using the wrong brackets in your initializer list:

DataStruct data1[2] = { ("Andy",'A',1,20,30), ("Andy",'A',1,20,30 )};

should be

DataStruct data1[2] = { {"Andy",'A',1,20,30}, {"Andy",'A',1,20,30 }};

2) You can't use an initializer list like this unless you remove the constructor from the struct.
See Compiler Error C2552[^] for details.

Mark


Mark Salsbery
Microsoft MVP - Visual C++


"Great job team! Head back to base for debriefing and cocktails."

GeneralRe: Class structure with character array Pin
bsharp5218-Jul-07 6:21
bsharp5218-Jul-07 6:21 
GeneralRe: Class structure with character array Pin
Mark Salsbery18-Jul-07 6:58
Mark Salsbery18-Jul-07 6:58 
GeneralRe: Class structure with character array Pin
John R. Shaw19-Jul-07 2:38
John R. Shaw19-Jul-07 2:38 
GeneralRe: Class structure with character array Pin
Michael Dunn18-Jul-07 7:16
sitebuilderMichael Dunn18-Jul-07 7:16 
GeneralRe: Class structure with character array Pin
Mark Salsbery18-Jul-07 7:19
Mark Salsbery18-Jul-07 7:19 
QuestionHow to handle click event on icon.... Pin
Super Hornet18-Jul-07 5:37
Super Hornet18-Jul-07 5:37 
AnswerRe: How to handle click event on icon.... Pin
Mark Salsbery18-Jul-07 6:03
Mark Salsbery18-Jul-07 6:03 
GeneralRe: How to handle click event on icon.... Pin
Super Hornet18-Jul-07 6:43
Super Hornet18-Jul-07 6:43 
GeneralRe: How to handle click event on icon.... Pin
Mark Salsbery18-Jul-07 6:51
Mark Salsbery18-Jul-07 6:51 
GeneralRe: How to handle click event on icon.... Pin
Hans Dietrich18-Jul-07 8:31
mentorHans Dietrich18-Jul-07 8:31 
GeneralRe: How to handle click event on icon.... Pin
Mark Salsbery18-Jul-07 8:41
Mark Salsbery18-Jul-07 8:41 
GeneralRe: How to handle click event on icon.... Pin
Mark Salsbery18-Jul-07 14:42
Mark Salsbery18-Jul-07 14:42 
GeneralRe: How to handle click event on icon.... Pin
Hans Dietrich18-Jul-07 19:16
mentorHans Dietrich18-Jul-07 19:16 
GeneralRe: How to handle click event on icon.... Pin
Mark Salsbery18-Jul-07 19:51
Mark Salsbery18-Jul-07 19:51 
AnswerRe: How to handle click event on icon.... Pin
Hans Dietrich18-Jul-07 6:10
mentorHans Dietrich18-Jul-07 6:10 
GeneralRe: How to handle click event on icon.... Pin
Super Hornet18-Jul-07 6:38
Super Hornet18-Jul-07 6:38 
GeneralRe: How to handle click event on icon.... Pin
Hans Dietrich18-Jul-07 7:50
mentorHans Dietrich18-Jul-07 7:50 

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.