hPal Picture property in VB4/32 vs VB4/16 
Author Message
 hPal Picture property in VB4/32 vs VB4/16

I need to assign a Logical Palette to a Picture control.   The following
code works fine with VB4/32:

Sub AssignPalette(aPicture as Picture, hPalette as Long)
        aPicture.hPal = hPalette
End Sub

But when I move it to VB4/16 bit, I get error 438 - "Object doesn't
support this property or method".

(hPalette IS declared as Integer in the 16bit version of my code)

I can GET the hPal property of a Picture in VB4/16, but apparently, can't
LET it.   Certainly this must be a bug (or undocumented feature).  

Looking at the Object Browser, I see that the Picture control is a
"Standard OLE Types" member.  In Tools...References this refers to
c:\windows\system\olepro32.dll.   Mine is version 4.1.6038 dated 8/23/96.
Is there an updated version that corrrects this bug?   Or are the
properties and methods  that an OLE object responds to defined in another
object or type library file somewhere that needs to be updated on my
system?  Or does VB4/16 reference another dll for Standard OLE Types (the
32 in olepro32.dll has me concerned)?  

Is there another workaround for this?   I've tried using the Clipboard as
suggested in Appleman's VB3 book for pasting the palette into the Picture,
but this hasn't worked with VB4.  I suspect it has to do with the OLEness
of the Picture control in VB4.

Any suggestions anyone?



Fri, 27 Aug 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. hPal property in Picture control (16 bit VB4)

2. DLL 32 vs 16 bit in VB4

3. VB4 16-bit vs 32-bit

4. VB4 16-bit vs 32-bit

5. Differences between VB4 16 and VB4 32 bits

6. VB4-32 compatibility with VB4-16?

7. VB4/16 and VB4/32...

8. Russian(Cyrillic): vb4 32-bit works, but vb4 16-bit doesn't

9. CodeBase in VB4 16/32

10. Invalid database with VB4 16/32

11. Passthrough queries fail in 16-bit VB4, succeed in 32-bit

12. VB4 16 & 32 bit compatability

 

 
Powered by phpBB® Forum Software