Displaying 2 results from an estimated 2 matches for "eventlogerror".
2006 May 21
6
Possible problems with EventLog#write
Hi,
I''ve got EventLog#write and EventLog.add_event_source methods done.
Well, I *think* they''re done, but I can''t get the data (text) to work
properly, and I''m not sure if it''s a bug in my .mc file, the
add_event_source method, the write method, or just a goof in my test file.
The source, category and event id seem to be ok. However, the
2004 Feb 25
5
Wide strings and LPCTSTR types
All,
I was experimenting with converting LPCTSTR strings to wide strings with
something like this:
// Converts a Ruby string to a LPWSTR
LPCTSTR AllocWideLString(VALUE rbString){
char* str = STR2CSTR(rbString);
int length = (strlen(str)+1) * sizeof(WCHAR);
LPCTSTR lpStr = (LPCTSTR)malloc(length);
MultiByteToWideChar(
CP_ACP,
0,
str,
strlen(str)+1,