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

C / C++ / MFC

 
GeneralRe: Migration from VC2006 to 2008 Pin
Marius Bancila1-Oct-12 10:29
professionalMarius Bancila1-Oct-12 10:29 
It was not a problem before, because the compiler did things that were not standard. But starting with Visual Studio 2005, the scope of the variables does not exceed the block they are defined in. And that applies to for loops too. So you either declare the index variable before the first for loop, or re-declare it in each for statement.

As for the other problem, it's also an error with the old compiler. Your actual handler should return LRESULT, not void. So change the function to the requested signature (take a WPARAM and LPARAM and return LRESULT) and everything will be OK.

BTW, there is no such thing as VS2006. There is VS2002, VS2003, VS2005 and VS2008.
AnswerRe: Migration from VC2006 to 2008 Pin
CPallini29-Sep-12 3:46
mveCPallini29-Sep-12 3:46 
GeneralRe: Migration from VC2006 to 2008 Pin
Stan the man29-Sep-12 18:51
Stan the man29-Sep-12 18:51 
GeneralRe: Migration from VC2006 to 2008 Pin
CPallini30-Sep-12 3:03
mveCPallini30-Sep-12 3:03 
AnswerRe: Migration from VC2006 to 2008 Pin
jschell30-Sep-12 8:24
jschell30-Sep-12 8:24 
QuestionMFC, My Picture Control has problem. [Solved] Pin
yu-jian28-Sep-12 4:29
yu-jian28-Sep-12 4:29 
QuestionRe: MFC, My Picture Control has problem. Pin
David Crow28-Sep-12 7:29
David Crow28-Sep-12 7:29 
AnswerRe: MFC, My Picture Control has problem. Pin
jeron128-Sep-12 8:33
jeron128-Sep-12 8:33 
GeneralRe: MFC, My Picture Control has problem. Pin
yu-jian29-Sep-12 4:44
yu-jian29-Sep-12 4:44 
QuestionFind ADS Files/Streams? Pin
bosfan28-Sep-12 4:07
bosfan28-Sep-12 4:07 
AnswerRe: Find ADS Files/Streams? Pin
Richard MacCutchan28-Sep-12 6:11
mveRichard MacCutchan28-Sep-12 6:11 
GeneralMy Vote is 1 Pin
Smart Arab1-Oct-12 5:36
Smart Arab1-Oct-12 5:36 
AnswerRe: Find ADS Files/Streams? Pin
Smart Arab1-Oct-12 5:31
Smart Arab1-Oct-12 5:31 
GeneralRe: Find ADS Files/Streams? Pin
bosfan1-Oct-12 20:27
bosfan1-Oct-12 20:27 
GeneralRe: Find ADS Files/Streams? Pin
bosfan16-Oct-12 20:45
bosfan16-Oct-12 20:45 
QuestionHas anybody tried the new C++ RAD Toolkit SmartDB (http://sdb.net.in) Pin
sumeet12327-Sep-12 22:32
sumeet12327-Sep-12 22:32 
AnswerRe: Has anybody tried the new C++ RAD Toolkit SmartDB (http://sdb.net.in) Pin
Richard MacCutchan28-Sep-12 2:00
mveRichard MacCutchan28-Sep-12 2:00 
QuestionMultiMon/Multi-VideoCards/Multi-Displays With Multiple DirectDraw FullScreen Exclusive Applications. Pin
bowen198127-Sep-12 5:30
bowen198127-Sep-12 5:30 
AnswerRe: MultiMon/Multi-VideoCards/Multi-Displays With Multiple DirectDraw FullScreen Exclusive Applications. Pin
Ingo28-Sep-12 2:00
Ingo28-Sep-12 2:00 
QuestionHighlighting Control based on Selection Pin
Don Guy27-Sep-12 3:52
Don Guy27-Sep-12 3:52 
AnswerRe: Highlighting Control based on Selection Pin
Jochen Arndt27-Sep-12 5:04
professionalJochen Arndt27-Sep-12 5:04 
AnswerRe: Highlighting Control based on Selection Pin
Marius Bancila1-Oct-12 22:12
professionalMarius Bancila1-Oct-12 22:12 
Questionhow to use the outside class Pin
yu-jian27-Sep-12 3:18
yu-jian27-Sep-12 3:18 
AnswerRe: how to use the outside class Pin
David Crow27-Sep-12 3:27
David Crow27-Sep-12 3:27 
QuestionPrinting with CRichEditCtrl control Pin
sdancer7526-Sep-12 23:05
sdancer7526-Sep-12 23:05 

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.