Original Post
I''m writing a simple program that prints single charecters, I tried to convert it to unicode but I get an error in textout function that says cannot convert wchar_t to constant char, ok thats simple enough, textout doesn''t like data types other than char. so should I be using a wide charecter version of textout that I couldn''t find or am I missing somthing?
this is the important parts of the code I think, if you want it all just say so
Bloodshed Dev-C++ 4.9.8.0 Mingw DX 9.0a DX SDK 6.1 win2k #define WIN32_LEAN_AND_MEAN the Particle Projection Cannon fires a shimmering blue bolt, much like a cross between lightning and a sine wave that ripples along its path. mechwarrior 2 mercenaries, 4 particle projection cannons, thug chassis
#include <windows.h>
#include <string>
#include <tchar.h> // don''t think I need this, I was wrong.
#define UNICODE
LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
HDC hdc ;
PAINTSTRUCT ps ;
TEXTMETRIC tm ;
// TCHAR szBuffer [4] ; // don''t think I need this
static wchar_t wcText = ''a'';
TextOut (hdc, cixPlace, ciyPlace, &wcText, 1) ;
[source/]
Bloodshed Dev-C++ 4.9.8.0 Mingw DX 9.0a DX SDK 6.1 win2k #define WIN32_LEAN_AND_MEAN the Particle Projection Cannon fires a shimmering blue bolt, much like a cross between lightning and a sine wave that ripples along its path. mechwarrior 2 mercenaries, 4 particle projection cannons, thug chassis