Re: Cuny's WIN32lib question/Win32 programming

new topic     » goto parent     » topic index » view thread      » older message » newer message

STQuMan wrote:

> I am programming in 32-bit win3.1, and
> is there an equivelant to display_image
> besides win32lib's setBitmap()?  I read
> Cuny's doc file and it said anything less
> than NT4 or win95 it wouldn't work.

The reason it doesn't work is because LoadBitmap() is not supported in
the other flavors of Win32. You would have to replace the LoadBitmap()
call with something you coded by hand that does the same thing, which is
a bit of work.

I made a couple of attempts to do that. The latest routine is included
in Win32Lib, and is called loadBitmapFromFile(). It fails in the
SetDIBitsToDevice call, for reasons that I am still unable to figure
out.

The routine is an adaption of code found on Borland's C++ page, and so
in theory should work. I've documented it to the best of my
understanding, as well as the point where it fails. My best guess is
that it's not reading the structure correctly.

If someone wants to take a look at it and fix it, I (and other people)
would really appreciate it!

Thanks.

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu