User forums > Using Code::Blocks
I feel stupid but... (SOLVED)
sethjackson:
--- Quote from: Takeshi Miya on January 24, 2006, 03:45:19 am ---
--- Quote from: sethjackson on January 24, 2006, 03:31:20 am ---Uhh WinMain is for Win32 API programming....... Not MFC (AFAIK)......
--- End quote ---
It is used, but internally, AFAIK.
--- End quote ---
Ah I see.
Michael:
AFAIK WinMain is used by Win32 API (independent of using MFC or not). Win32 API is a C API. MFC wraps portions of the Windows API in C++ classes. Normal C/C++ programs use main, but windows programs use WinMain.
Michael
[EDIT] A link about the Windows API for all the fans of Windows :D.
Satch:
Thx for the tips :)
I forgot about the templates... guess I was too tired when I posted the issue.
The problem was a bad declaration of winmain. Guess I've been using BCB for too long and I forgot the basics :lol: :lol: :lol: :lol:
I must ask you for your forgiveness to take room in this forum for such stupid question :(
Thx again for your help.
Michael:
--- Quote from: Satch on January 24, 2006, 10:42:30 am ---I must ask you for your forgiveness to take room in this forum for such stupid question :(
--- End quote ---
IMHO there is no stupid question :D.
Michael
Navigation
[0] Message Index
[*] Previous page
Go to full version