User forums > General (but related to Code::Blocks)
How to get help on syntax ?
tonycstech:
Another interesting question.
How come copy code from Visual Studio 2015 does not work with code blocks ?
Error regarding missing #include "stdafx.h"
After removing it i get an error about HINSTANCE hInst; saying P:\C++ Projects\Examples\test\main.cpp|10|error: 'HINSTANCE' does not name a type|
Does that mean that codeblocks does not have every C++ library/file etc or what ?
stahta01:
Please read the FAQs and the Rules!
http://forums.codeblocks.org/index.php/topic,9996.0.html
http://wiki.codeblocks.org/index.php/FAQ
You need to read ALL of the General FAQs.
And, you NEED to learn what a Compiler is; and, how it differs from an IDE/Text Editor like Code::Blocks.
I suggest going to http://cboard.cprogramming.com/forum.php to ask your questions about programming.
The header "stdafx.h" is an header used in Visual Studio (MSVC) to include many other headers.
Tim S.
--- Quote from: tonycstech on February 19, 2016, 03:11:51 am ---Another interesting question.
How come copy code from Visual Studio 2015 does not work with code blocks ?
Error regarding missing #include "stdafx.h"
After removing it i get an error about HINSTANCE hInst; saying P:\C++ Projects\Examples\test\main.cpp|10|error: 'HINSTANCE' does not name a type|
Does that mean that codeblocks does not have every C++ library/file etc or what ?
--- End quote ---
Navigation
[0] Message Index
[*] Previous page
Go to full version