Download Pelles C here: http://www.pellesc.se
O:\Sources\test2\test2.c(21): warning #2018: Undeclared function '_putts' (did you mean: fputws?); assuming 'extern' returning 'int'.
_putts(_T("Hello World"));
#define _UNICODE
#define WORKAROUND
#undef WORKAROUND
#include <stdio.h>
#include <tchar.h> // missing _putts() (and _putws)
#if defined WORKAROUND
/* function _putws() missed although */
# if defined _UNICODE
# define _putws(s) {_fputts((s), stdout); _fputts(_T("\n"), stdout); }
# define _putts(s) _putws(s)
# else
# define _putts(s) puts(s)
# endif
#endif
int main(void)
{
_putts(_T("Hello World"));
}
include VarBstrFromR4.inc
.data
f REAL4 3.14
.data?
output dd ?
buffer db 8 dup(?)
.code
start:
invoke VarBstrFromR4,f,0,0,ADDR output
xor eax,eax
invoke WideCharToMultiByte,CP_ACP,eax,\
output,-1,ADDR buffer,\
8,eax,eax
invoke StdOut,ADDR buffer
invoke SysFreeString,output
invoke ExitProcess,0
.
.
)
I realized the first didn't have any 'special' characters.

Page created in 0.066 seconds with 15 queries.