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

C / C++ / MFC

 
QuestionRe: Not able to find the square of the floating number ... Pin
CPallini29-Jul-14 2:00
mveCPallini29-Jul-14 2:00 
AnswerRe: Not able to find the square of the floating number ... Pin
mybm129-Jul-14 2:47
mybm129-Jul-14 2:47 
GeneralRe: Not able to find the square of the floating number ... Pin
CPallini29-Jul-14 8:07
mveCPallini29-Jul-14 8:07 
GeneralRe: Not able to find the square of the floating number ... Pin
mybm129-Jul-14 18:19
mybm129-Jul-14 18:19 
GeneralRe: Not able to find the square of the floating number ... Pin
CPallini29-Jul-14 21:30
mveCPallini29-Jul-14 21:30 
GeneralRe: Not able to find the square of the floating number ... Pin
jeron129-Jul-14 9:14
jeron129-Jul-14 9:14 
GeneralRe: Not able to find the square of the floating number ... Pin
mybm129-Jul-14 18:20
mybm129-Jul-14 18:20 
Questionmigration from Visual studio 6 Pin
Swap928-Jul-14 3:30
Swap928-Jul-14 3:30 
While migrating VC++ code from VS6 (1998) to VS5(later year) I had to remove __STDC__ from project properties-Predecessors. It fix lot of 'tagVariant' related errors.
if i have __STDC__ in project properties - preprpcessors
I get this
xyz.cpp

c:\program files (x86)\microsoft visual studio 8\vc\atlmfc\include\atlcomcli.h(443) : error C2039: 'vt' : is not a member of 'tagVARIANT'
c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\oaidl.h(424) : see declaration of 'tagVARIANT'
c:\program files (x86)\microsoft visual studio 8\vc\atlmfc\include\atlcomcli.h(443) : error C2039: 'vt' : is not a member of 'tagVARIANT'
Next what happened is function definitions were not recognized in many of the project file. so I added #define
C++
__STDC__
in problem files which also took care of many unrecognized function definition related errors.

Now the project is left with only one error in compiling one file which says "Fetal error (1017) invalid integer constant expression in ctype.h" and the code its pointing to line number 362 in ctype.h #define !__STDC__ etc Any ideas - suggestions ? Pls help

I tried to - Remove any #define __STDC__ that I added locally. Also remove __STDC__ from Preprocessor definitions if you haven't done so already. Selected all the .c files in the solution explorer and select properties in the solution explorer context menu. In the properties dialog select /Za for C/C++\Language\Disable Language Extensions property.

Which took me back to -> error C2065: ‘xyz’: undeclared identifier : error C2182: ‘pqr’ : illegal use of type 'void' : error C2065: ‘some variable’ : undeclared identifier : error C2146: syntax error : missing ';' before identifier ‘classname’ : error C2143: syntax error : missing ';' before '*' : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int : error C2040: ‘variable2’ : 'int *' differs in levels of indirection from ''unknown-type'' . . .

Reference : http://social.msdn.microsoft.com/Forums/en-US/e68b0af5-ed25-4953-80e7-e88463149b77/fatal-error-1017-invalid-integer-constant-expression-in-ctypeh-during-migration-from-vs6-to-vs5?forum=vcgeneral

modified 28-Jul-14 9:44am.

AnswerRe: migration from Visual studio 6 Pin
Jochen Arndt28-Jul-14 4:03
professionalJochen Arndt28-Jul-14 4:03 
GeneralRe: migration from Visual studio 6 Pin
Swap928-Jul-14 4:34
Swap928-Jul-14 4:34 
GeneralRe: migration from Visual studio 6 Pin
Jochen Arndt28-Jul-14 4:58
professionalJochen Arndt28-Jul-14 4:58 
GeneralRe: migration from Visual studio 6 Pin
Swap928-Jul-14 5:03
Swap928-Jul-14 5:03 
GeneralRe: migration from Visual studio 6 Pin
Jochen Arndt28-Jul-14 5:11
professionalJochen Arndt28-Jul-14 5:11 
GeneralRe: migration from Visual studio 6 Pin
Swap928-Jul-14 11:25
Swap928-Jul-14 11:25 
GeneralRe: migration from Visual studio 6 Pin
Jochen Arndt28-Jul-14 21:16
professionalJochen Arndt28-Jul-14 21:16 
GeneralRe: migration from Visual studio 6 Pin
Swap929-Jul-14 3:36
Swap929-Jul-14 3:36 
GeneralRe: migration from Visual studio 6 Pin
Jochen Arndt29-Jul-14 4:01
professionalJochen Arndt29-Jul-14 4:01 
GeneralRe: migration from Visual studio 6 Pin
Swap929-Jul-14 4:26
Swap929-Jul-14 4:26 
GeneralRe: migration from Visual studio 6 Pin
Jochen Arndt29-Jul-14 4:44
professionalJochen Arndt29-Jul-14 4:44 
GeneralHi Jochen, Need help again Pin
Swap931-Jul-14 23:14
Swap931-Jul-14 23:14 
GeneralRe: Hi Jochen, Need help again Pin
Jochen Arndt31-Jul-14 23:35
professionalJochen Arndt31-Jul-14 23:35 
GeneralRe: Hi Jochen, Need help again Pin
Swap91-Aug-14 0:46
Swap91-Aug-14 0:46 
GeneralRe: Hi Jochen, Need help again Pin
Jochen Arndt1-Aug-14 1:12
professionalJochen Arndt1-Aug-14 1:12 
GeneralRe: Hi Jochen, Need help again Pin
Swap91-Aug-14 2:46
Swap91-Aug-14 2:46 
GeneralRe: Hi Jochen, Need help again Pin
Jochen Arndt1-Aug-14 3:00
professionalJochen Arndt1-Aug-14 3:00 

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.