TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Gerard Gerritsen
date: 1997-02-02 16:27:08
subject: Resources ?? aargh

Hello everybody !

I have got a 'little' problem with resources.

I have got

- one dll called 'B' with it's own resources linked into the dll
- one program called 'A' also with it's own ( different ) resources.

When compiling both B and A the linker ( I presume it's wrong ) links the
resources to B and A ( and A also get's the resources from  B )

When running program A everything works fine ( although WinGetLastError
returns with error 1001 ( invalid hwnd ) the dialog displays fine just as
the menu and the other dialog windows.

PlayPM2 00081001 SbModule handle 00000565 module handle 0000052D

But when I recompile the resources of A ( which should be indepedent of B )
and try to show the dialogs of B I can only view three of them instead of
all.

The error number for both working and not working dialogs ! is

PlayPM2 00081003 SBModule handle 0000055D module handle 0000058D


I do not know what's wrong, my program has obtained the right module (
DosQueryModuleHandle ) and the resource numbers are ok ( otherwhise it
would not be able to load when A has got the resources of A and B )


Anyone ?

==> Gerard/2   - member of team os/2 -  1000521{at}ibk.fnt.hvu.nl

--- Fmail/2 1.02 Registered
* Origin: Living in interesting times (2:283/203.18)
SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 283/203 2 1 280/801 270/101 712/624 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.