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
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
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?
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
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
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
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.
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
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