Prev: cl options
Next: What is the share mode fopen() uses?
From: David Lowndes on 17 Nov 2009 05:14 >Yes, it does say that! >But I couldn't get it to work. Which OS Ron? FWIW, I tried it under Win7. Dave
From: Ron Francis on 17 Nov 2009 05:32 "David Lowndes" <DavidL(a)example.invalid> wrote in message news:jds4g5pkmcg7g6q1pgsah59rd1218nln69(a)4ax.com... > >"If this parameter is zero, then lpBuffer receives a read-only pointer to >>the resource itself." > > I was surprised to notice that comment as well - I've never been aware > of it before. I've tried it and it does indeed work! > > Dave Ah, there's a catch. Added content at MSDN says: "The special behaviour when nBufferMax == 0 applies only to LoadStringW, and not to LoadStringA." I was compiling with ANSII. That's a pity as it would have made it simple. Ron.
From: Ron Francis on 17 Nov 2009 05:36 "David Lowndes" <DavidL(a)example.invalid> wrote in message news:1qt4g5t3rmtdksmoitms3lh9umkr095qj7(a)4ax.com... > >Yes, it does say that! >>But I couldn't get it to work. > > Which OS Ron? > > FWIW, I tried it under Win7. > > Dave Dave, I found out why it doesn't work and posted the reason after your last post. Please forgive the way I spelled ANSI! Ron.
From: David Lowndes on 17 Nov 2009 05:53 >Ah, there's a catch. >Added content at MSDN says: >"The special behaviour when nBufferMax == 0 applies only to LoadStringW, and not to LoadStringA." >I was compiling with ANSII. Ah, I hadn't scrolled down far enough to see the community content, and indeed it is correct. I guess that's why the MFC implementation doesn't use it. Dave
From: Giovanni Dicanio on 17 Nov 2009 06:01 "Ron Francis" <ronfrancis(a)adam.com.au> ha scritto nel messaggio news:O5u96E3ZKHA.5544(a)TK2MSFTNGP02.phx.gbl... > Added content at MSDN says: > "The special behaviour when nBufferMax == 0 applies only to LoadStringW, > and not to LoadStringA." > I was compiling with ANSII. > > That's a pity as it would have made it simple. Ron: while I agree with you that a uniform behaviour for ANSI/MBCS and Unicode builds would be better, you could explicitly call LoadStringW, and use CW2A conversion helper class (or similar tools) to convert from Unicode to ANSI. Giovanni
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 5 Prev: cl options Next: What is the share mode fopen() uses? |