1. Problem with Win32Lib

I keep getting "LOGIC ERROR: Held resource owner
is not the actual owner" clicking any button except exit,
it displays again.
I have applied all the patches.

new topic     » topic index » view message » categorize

2. Re: Problem with Win32Lib

CoJaBo wrote:
> 
> I keep getting "LOGIC ERROR: Held resource owner
> is not the actual owner" clicking any button except exit,
> it displays again.
> I have applied all the patches.

There is another patch but it was too messy to put up on the website.
It is in the next release though.

I want to 'fix' the XP manifest issue before releasing that version
though, so can you wait another day or two?

-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view message » categorize

3. Problem with Win32Lib

When I try to run a few Win32lib programs and also the new IDE, I get 
the following error:

Error Code 464
Couldn't link to C function 'GetWindowInfo'

I have installed the latest Win32Lib and V18 of the IDE. The OS is Win 
NT 4.0 SP 5.

Regards,
Prasanta

new topic     » goto parent     » topic index » view message » categorize

4. Re: Problem with Win32Lib

Thanks Elliott.  I knew there was a simpler way to get this info but I couldn't
remeber it or find time to research it.

Your suggestion will be implemented asap.

----- Original Message ----- 
From: "Elliott Sales de Andrade" <quantum_analyst at hotmail.com>
To: "EUforum" <EUforum at topica.com>
Subject: RE: Problem with Win32Lib


> 
> 
>     I think the better way would be to fix Win32Lib. After all, all of 
> Windows 95 shouldn't be excluded because of one function, especially since 
> this function is unnecessary. It should be replaced by a call to 
> GetWindowLong(). The second parameter should be GWL_STYLE, which is -16 (I 
> don't think this constant is defined in Win32Lib, which could be why Derek 
> didn't use it.)
> Replace the line:
>         lFlags = getWindowInfo(id, {WINDOWINFO_Style})
>         if and_bits(lFlags[1], LBS_MULTIPLESEL) != 0 then
> with:
>         lFlags = w32Func(xGetWindowLong, {getHandle(id), -16})
>         if and_bits(lFlags, LBS_MULTIPLESEL) != 0 then
> and change lFlags to an atom instead of a sequence.
> Now, no need to upgrade from Windows 95 (unless you want to.)
> 
> 
> >From: Brian Broker <bkb at cnw.com>
> >Reply-To: EUforum at topica.com
> >To: EUforum <EUforum at topica.com>
> >Subject: RE: Problem with Win32Lib
> >Date: Fri, 29 Aug 2003 17:47:31 +0000
> >
> >
> >Hi Prasanta,
> >
> >The function 'GetWindowInfo' has the following restriction:
> >
> >Minimum operating systems: Windows 98, Windows NT 4.0 SP6
> >
> >Solution: install SP6 for NT 4.0
> >
> >-- Brian
> >
> >Prasanta Chakraborty wrote:
> > >
> > >
> > > When I try to run a few Win32lib programs and also the new IDE, I get
> > > the following error:
> > >
> > > Error Code 464
> > > Couldn't link to C function 'GetWindowInfo'
> > >
> > > I have installed the latest Win32Lib and V18 of the IDE. The OS is Win
> > > NT 4.0 SP 5.
> > >
> > > Regards,
> > > Prasanta
> > >
> >
> >TOPICA - Start your own email discussion group. FREE!
> >
> >
> --^----------------------------------------------------------------
> This email was sent to: ddparnell at bigpond.com
> 
> 
> TOPICA - Start your own email discussion group. FREE!
> 
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: Problem with Win32Lib

> this function is unnecessary. It should be replaced by a call to
> GetWindowLong(). The second parameter should be GWL_STYLE, which is -16 (I

Right... and I could use some more help, re: this...
How does one get the equivalent of WINDOWINFO_WindowType ???

...also, while GetVersionEx(), in Win98, for example, returns 4 for Major,
while WINDOWINFO_CreatorVersion returns 1024 for same OS.
Is this another stupid Microsoft ( we'll return it in the hi-bye of the
low-word ), or something else?

...trying to substitute the entire function with other equivalents...
Wolf

new topic     » goto parent     » topic index » view message » categorize

6. Re: Problem with Win32Lib

----- Original Message ----- 
From: "Wolf" <wolfritz at KING.IGS.NET>
To: "EUforum" <EUforum at topica.com>
Subject: Re: Problem with Win32Lib


> 
> 
> > this function is unnecessary. It should be replaced by a call to
> > GetWindowLong(). The second parameter should be GWL_STYLE, which is -16 (I
> 
> Right... and I could use some more help, re: this...
> How does one get the equivalent of WINDOWINFO_WindowType ???

GetClassLong()

 
> ...also, while GetVersionEx(), in Win98, for example, returns 4 for Major,
> while WINDOWINFO_CreatorVersion returns 1024 for same OS.
> Is this another stupid Microsoft ( we'll return it in the hi-bye of the
> low-word ), or something else?

Yes. Using GetVersionEx() is simplier than decoding the _CreatorVersion value,
which merges opsys family code, build#, and version number into one 32-bit value.

-- 
Derek

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu