Re: Implementing wtmpnam in msvcrt

2008-11-29 Thread Juan Lang
Hi Tim, > So wtmpnam seems to work. Sadly, another line in the output indicates there's > another error: > err:listview:LISTVIEW_WindowProc unknown msg 3e9d wp=0032ef78 > lp= > and that prevents the program from executing. Any ideas? Sorry, don't know about this one. What program is this

Re: Implementing wtmpnam in msvcrt

2008-11-29 Thread Tim Holy
Hi Juan, Thanks again---that did the trick (it wasn't so much a typo as I didn't know what I was doing...) So wtmpnam seems to work. Sadly, another line in the output indicates there's another error: err:listview:LISTVIEW_WindowProc unknown msg 3e9d wp=0032ef78 lp= and that prevents th

Re: Implementing wtmpnam in msvcrt

2008-11-29 Thread Michael Karcher
Am Samstag, den 29.11.2008, 10:27 -0600 schrieb Tim Holy: > Hi Juan, > > Many thanks for your help. This compiles now. I think I must not have > something else defined, though, because when I run the program I still get a > message saying wtmpnam is not implemented. No. But Juan Lang misundersto

Re: Implementing wtmpnam in msvcrt

2008-11-29 Thread Juan Lang
Hi Tim, > Many thanks for your help. This compiles now. I think I must not have > something else defined, though, because when I run the program I still get a > message saying wtmpnam is not implemented. Do I have to do something > else to "register" the function? No, you've just got a typo: > -@

Re: Implementing wtmpnam in msvcrt

2008-11-29 Thread Tim Holy
Hi Juan, Many thanks for your help. This compiles now. I think I must not have something else defined, though, because when I run the program I still get a message saying wtmpnam is not implemented. Do I have to do something else to "register" the function? Here's the output: [EMAIL PROTECTED

Re: Implementing wtmpnam in msvcrt

2008-11-29 Thread Juan Lang
Hi Tim, > + p = s + MSVCRT_swprintf(s, "\\s%s.", tmpstr); // "implicit declaration" > error, function is defined in wcs (but no wcs.h); but how to convert format > string to MSVCRT_wchar_t? Declare the format string as a const buffer, e.g.: static const MSVCRT_wchar_t tmpFmt[] = { '\\','s','%',

Implementing wtmpnam in msvcrt

2008-11-29 Thread Tim Holy
Hello, I'm trying to implement the "stub" function wtmpnam in msvcrt. Below is a patch at an attempt; there are a number of questions I have about the right way to implement it, and since I don't know the Wine codebase I thought perhaps readers of this list might (with minimal effort) be able t