Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / .ico files in dll/exe

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. .ico files in dll/exe
#11479
Posted by: Michael S 2007-08-14 03:49:53 Last edited by: Michael S 2007-08-14 03:55:21 (Total edited 2 times)
I've just noticed the following. In one directory, I have a start rex script, a RPC DLL that contains an icon (ms.ico) that is shown as the icon for any windows and an RPC generated exe.
I "attach" the icon to the GUI windows via

	script_name = /* full_path ||*/ 'MS.ICO'
	IF STATE(script_name) = 0 THEN
		DO
			guiwindowdefaults(script_name, , , , extra_args)
			CATCH SYNTAX
				NOP
		END	
	ELSE
		guiwindowdefaults(, , , , extra_args)
.
I run the start rex script, which does a MACRO call on the DLL (resulting in the icon being shown in the first "non-compiled" script).
 
From this window, I call (via iterateexe), the exe file. This also runs through the code above, and also after doing a MACRO call to the same DLL.

However, with the exe window, I don't see any icon.

Do you want me to try and put together a scenario ?

(Note that as soon as I copy the ico file to the directory above, the exe shows the icon).

BTW, I tried changing the code to

	DO
		guiwindowdefaults('MS.ICO', , , , extra_args)
		CATCH SYNTAX
			NOP
	END	

but it's almost as if the exe doesn't look in the DLL for the icon.
Message2.
#11480
Posted by: Jeff Glatt 2007-08-14 04:33:14
Right now, icons are found only in the exe, not a dll.
Message3. Fair enough
#11481
Posted by: Michael S 2007-08-14 04:36:34
I'll simply move the icon file to the same directory
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Mon 2022-12-5  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0