Re: LoadString problems

2005-07-31 Thread James Hawkins
On 7/31/05, Felix Nawothnig <[EMAIL PROTECTED]> wrote: > James Hawkins wrote: > >>>Maybe that only returns the > >>>hinstance of the process calling the module, and not the hinstance of > >>>the module itself. > >>Ofcourse it doesn't do that, how should it know from what module the > >>call came fr

Re: LoadString problems

2005-07-31 Thread Felix Nawothnig
James Hawkins wrote: Maybe that only returns the hinstance of the process calling the module, and not the hinstance of the module itself. Ofcourse it doesn't do that, how should it know from what module the call came from? I didn't think so, so shouldn't GetModuleHandle(NULL) work? It leads me

Re: LoadString problems

2005-07-31 Thread James Hawkins
On 7/30/05, Felix Nawothnig <[EMAIL PROTECTED]> wrote: > James Hawkins wrote: > > Maybe that only returns the > > hinstance of the process calling the module, and not the hinstance of > > the module itself. > > Ofcourse it doesn't do that, how should it know from what module the > call came from?

Re: LoadString problems

2005-07-30 Thread Felix Nawothnig
James Hawkins wrote: Maybe that only returns the hinstance of the process calling the module, and not the hinstance of the module itself. Ofcourse it doesn't do that, how should it know from what module the call came from? (Yes, there are ways. But they are hackish, wouldn't work always and

Re: LoadString problems

2005-07-30 Thread James Hawkins
On 7/30/05, Frank Richter <[EMAIL PROTECTED]> wrote: > On 30.07.2005 09:06, James Hawkins wrote: > >TCITEMA tie; > >char text[MAX_PATH]; > > > >LoadStringA(NULL, IDS_CONTENTS, text, MAX_PATH); > >/* text should be '&Contents', but we get a GetLastError() */ > > Hm, wouldn't it be b

Re: LoadString problems

2005-07-30 Thread James Hawkins
On 7/30/05, Hans Leidekker <[EMAIL PROTECTED]> wrote: > On Saturday 30 July 2005 09:06, James Hawkins wrote: > > >LoadStringA(NULL, IDS_CONTENTS, text, MAX_PATH); > > MSDN documents the use of GetModuleHandle(NULL) as the first > argument to LoadString to get resource strings from the current

Re: LoadString problems

2005-07-30 Thread Frank Richter
On 30.07.2005 09:06, James Hawkins wrote: >TCITEMA tie; >char text[MAX_PATH]; > >LoadStringA(NULL, IDS_CONTENTS, text, MAX_PATH); >/* text should be '&Contents', but we get a GetLastError() */ Hm, wouldn't it be better use wide strings? -f.r.

Re: LoadString problems

2005-07-30 Thread Hans Leidekker
On Saturday 30 July 2005 09:06, James Hawkins wrote: >LoadStringA(NULL, IDS_CONTENTS, text, MAX_PATH); MSDN documents the use of GetModuleHandle(NULL) as the first argument to LoadString to get resource strings from the current module. Maybe passing NULL is an undocumented synonym for it that

LoadString problems

2005-07-30 Thread James Hawkins
Hey, I'm trying to load strings from the hhctrl.ocx resource file to use as the text for tabs and toolbar buttons, but I can't get it to work. I've tried to get LoadString to work a couple ways, but it just won't work for me. I've attached the resource files and Makefile.in. Maybe something is w