Click here to Skip to main content
15,905,912 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can made safer application that is not detect by antivirus? Pin
Bacon Ultimate Cheeseburger1-Aug-09 2:11
Bacon Ultimate Cheeseburger1-Aug-09 2:11 
QuestionEditbox to Listbox Pin
Neil Jigger31-Jul-09 19:06
Neil Jigger31-Jul-09 19:06 
AnswerRe: Editbox to Listbox Pin
Rajesh R Subramanian31-Jul-09 20:24
professionalRajesh R Subramanian31-Jul-09 20:24 
GeneralRe: Editbox to Listbox Pin
Neil Jigger3-Aug-09 15:22
Neil Jigger3-Aug-09 15:22 
GeneralRe: Editbox to Listbox Pin
Rajesh R Subramanian3-Aug-09 18:00
professionalRajesh R Subramanian3-Aug-09 18:00 
GeneralRe: Editbox to Listbox Pin
Neil Jigger3-Aug-09 20:59
Neil Jigger3-Aug-09 20:59 
GeneralRe: Editbox to Listbox Pin
Neil Jigger3-Aug-09 21:02
Neil Jigger3-Aug-09 21:02 
QuestionWhere do I declare variables without them being Global Variable. Pin
Adassus31-Jul-09 17:40
Adassus31-Jul-09 17:40 
Hi all,

I know global variables are bad. I'm trying to write my first game. Its like tetris where you have different shapes. I have a linked list of shapes. Where am I supposed to declare this list in a Win32 app?

I thought the best place would be in the LRESULT CALLBACK WndProc under the switch(msg) case WM_CREATE. However, I'm getting some errors doing that (some error about the initialization being skipped by some case labels).

I cant declare the list in WinMain because I need to use it in LRESULT CALLBACK to modify its content...

Currently, I have my list declared as a global variable and it works well like that. I'm trying to understand what the alternative is (trying to develop good coding habits).
AnswerRe: Where do I declare variables without them being Global Variable. Pin
«_Superman_»31-Jul-09 18:20
professional«_Superman_»31-Jul-09 18:20 
Questionnot MS-DOS & FAT 32 Pin
tuan111131-Jul-09 17:24
tuan111131-Jul-09 17:24 
AnswerRe: not MS-DOS & FAT 32 Pin
Sauce!31-Jul-09 17:58
Sauce!31-Jul-09 17:58 
AnswerRe: not MS-DOS & FAT 32 Pin
Neil Jigger31-Jul-09 19:02
Neil Jigger31-Jul-09 19:02 
AnswerRe: not MS-DOS & FAT 32 Pin
tuan11113-Aug-09 15:28
tuan11113-Aug-09 15:28 
QuestionOS Dev for Vietnam Pin
tuan111131-Jul-09 17:17
tuan111131-Jul-09 17:17 
AnswerRe: OS Dev for Vietnam Pin
Neil Jigger31-Jul-09 19:07
Neil Jigger31-Jul-09 19:07 
AnswerRe: OS Dev for Vietnam [modified] Pin
Bacon Ultimate Cheeseburger1-Aug-09 2:05
Bacon Ultimate Cheeseburger1-Aug-09 2:05 
QuestionRe: OS Dev for Vietnam [modified] Pin
tuan11113-Aug-09 15:37
tuan11113-Aug-09 15:37 
QuestionArray bound checking in C++ Pin
Fred Andres31-Jul-09 12:40
Fred Andres31-Jul-09 12:40 
AnswerRe: Array bound checking in C++ Pin
Richard Andrew x6431-Jul-09 13:49
professionalRichard Andrew x6431-Jul-09 13:49 
GeneralRe: Array bound checking in C++ Pin
Fred Andres7-Aug-09 10:46
Fred Andres7-Aug-09 10:46 
AnswerRe: Array bound checking in C++ Pin
Randor 31-Jul-09 15:00
professional Randor 31-Jul-09 15:00 
GeneralRe: Array bound checking in C++ Pin
Fred Andres7-Aug-09 10:45
Fred Andres7-Aug-09 10:45 
AnswerRe: Array bound checking in C++ Pin
Joe Woodbury1-Aug-09 10:32
professionalJoe Woodbury1-Aug-09 10:32 
GeneralRe: Array bound checking in C++ Pin
Fred Andres7-Aug-09 10:45
Fred Andres7-Aug-09 10:45 
QuestionWhat happened to search issue of the forum? Pin
includeh1031-Jul-09 10:33
includeh1031-Jul-09 10:33 

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.