#include <Core/Core.h> CONSOLE_APP_MAIN { HWND hwnd; }
Quote: |
To answer your question, we are using "3." - call 'W' version if running >=WinNT, 'A' version otherwise. Mirek |
typedef WCHAR wchar;
typedef wchar_t wchar;
typedef WCHAR wchar;
typedef wchar_t wchar;
Quote: |
Such aggressive assumptions are needed, like replacing HANDLE with void*. |
Quote: |
Other elements that are giving me a little trouble are the two .dli. Why was the .dli mechanism used here. The functions seem complicatedly normal Win32 functions which where available already. Is is for the structured call mechanism supplied by .dli or is there another reason? |
Quote: |
Also, BLITZ is giving me funny issues. After an hour (or whatever the threshold is) has passed since last edit, I suddenlly get duplicate definition errors ). |
#idndef flagNOPS typedef WCHAR UWCHAR; #else typedef wchar_t UWCHAR; #endif
cbpporter wrote on Sun, 23 November 2008 11:39 |
Well there is one small problem: some function names get overridden with a different name. For example, Upp::GetModuleFileName becomes Upp::GetModuleFileNameA. This is because of the macros from windows.h, which happily traverse namespace borders. I don't know if this can pose a problem, but it could give rise to surprises when linking. |
#undef min #undef max #undef GetModuleFileName #undef GetWindowsDirectory #undef GetFileTitle #undef DrawText #undef LoadString #undef DeleteFile #undef GetTempFileName #undef LoadLibrary #undef GetCurrentDirectory