Is there any one who can help me?Did you create a project or do you use single file compilation?
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
/* Make the class name into a global variable */
char szClassName[ ] = "CodeBlocksWindowsApp";
int WINAPI WinMain (HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
LPSTR lpszArgument,
int nCmdShow)
{
HWND hwnd; /* This is the handle for our window */
MSG messages; /* Here messages to the application are saved */
WNDCLASSEX wincl; /* Data structure for the windowclass */
/* The Window structure */
wincl.hInstance = hThisInstance;
wincl.lpszClassName = szClassName;
wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */
wincl.style = CS_DBLCLKS; /* Catch double-clicks */
wincl.cbSize = sizeof (WNDCLASSEX);
...............................................................................
In Windows WNDCLASSEX is either _WNDCLASSEXA or _WNDCLASSEXW, depending whether you do an ANSI or Unicode build of your application. CC works just fine if you try to code complete e.g. _WNDCLASSEXA which is defined in winuser.h (btw.).CodeThen, when I input "wincl." , nothing happened........>_<WNDCLASSEX wincl; /* Data structure for the windowclass */
/* The Window structure */
wincl.
WHAT SHOULD I DO for that?Just add both:
- in "Replacement tokens" add:
WNDCLASSEX -> _WNDCLASSEXA
AND:
WNDCLASSEX -> _WNDCLASSEXW)
why do I need to do so many things to correct my lovely IDE?That's not an IDE issue but an issue with the MS SDK framework. Probably you have realised that C::B support a lot compilers. So we cannot handle each and every special freaky thing (compiler) frameworks ship with.
someone would(could) make a plugin to make the CC perfect, I mean that the CC would "know" typedef , #if, #else and so on .Sure thing, that would be possible.
But AssistX as an add-in of VS, can do that excellently.I am aware of this plugin. Hence there is a major difference:
Wait....wait...........where is the source codes for CC?Sure there is. It's part of C::B which is released under GPL. So you can freely do a checkout and modify the CC plugin in the way you want. Don't forget to provide us with the patches if you have achieved something... ;-)