The MASM Forum Archive 2004 to 2012
Welcome, Guest. Please login or register.
March 23, 2023, 08:02:00 AM

Login with username, password and session length
Search:     Advanced search
128553 Posts in 15254 Topics by 684 Members
Latest Member: mottt
* Home Help Search Login Register
+  The MASM Forum Archive 2004 to 2012
|-+  Project Support Forums
| |-+  MASM32
| | |-+  Memory dialogs revisited.
« previous next »
Pages: 1 [2] 3 Print
Author Topic: Memory dialogs revisited.  (Read 23938 times)
jj2007
Member
*****
Gender: Male
Posts: 6011



Re: Memory dialogs revisited.
« Reply #15 on: March 17, 2011, 10:53:59 PM »

On Win XP SP2, there is indeed a problem with the manifest file:
If it is included in rsrc.rc, the app launches but does not show and quits silently.
If 1 24 "manifest.xml" is removed, it works just fine.
Logged

dedndave
Member
*****
Posts: 12523


Re: Memory dialogs revisited.
« Reply #16 on: March 17, 2011, 10:57:14 PM »

that's odd Jochen - it works here
the only thing "out of the ordinary" that i see in the manifest is the "description" tag
Logged
jj2007
Member
*****
Gender: Male
Posts: 6011



Re: Memory dialogs revisited.
« Reply #17 on: March 17, 2011, 11:06:18 PM »

I put
Code:
mactst.exe
echo %ERRORLEVEL%
into the batch file. "Impossible to run the specified program" and errorlevel 9020 Roll Eyes

With //1 24 manifest.xml commented out in rsrc.rc it runs fine and gives errorlevel 0.
Logged

hutch--
Administrator
Member
*****
Posts: 12013


Mnemonic Driven API Grinder


Re: Memory dialogs revisited.
« Reply #18 on: March 17, 2011, 11:14:03 PM »

Same problem with an earlier app, if it has a manifest file it must have the common controls enabled. This may be specific to the Windows version that Erol is running but it looks like you need both to be safe on all Windows versions.

The attached ZIP file has the modification done by enabling the common control library.

* newtest2.zip (56.02 KB - downloaded 337 times.)
Logged

Regards,



Download site for MASM32
http://www.masm32.com
dedndave
Member
*****
Posts: 12523


Re: Memory dialogs revisited.
« Reply #19 on: March 17, 2011, 11:14:18 PM »

i am curious to see if this one runs on your machine JJ...

* mactstexe.zip (25.78 KB - downloaded 312 times.)
Logged
jj2007
Member
*****
Gender: Male
Posts: 6011



Re: Memory dialogs revisited.
« Reply #20 on: March 17, 2011, 11:37:26 PM »

Hutch 1:0 Dave
 BigGrin
Logged

dedndave
Member
*****
Posts: 12523


Re: Memory dialogs revisited.
« Reply #21 on: March 17, 2011, 11:39:32 PM »

heeyyyyyyyyyyyyyyyyyy
i just wanted to know if i will see the problem on my machine   BigGrin
Logged
hutch--
Administrator
Member
*****
Posts: 12013


Mnemonic Driven API Grinder


Re: Memory dialogs revisited.
« Reply #22 on: March 18, 2011, 12:59:53 AM »

Dave,

Probably not if you are running a US version of XP but for folks writing general purpose software its worth knowing that you need both a manifest file AND that you must enable the common controls to display the later styles for XP, Vista and Win7.

The feedback from both Erol and JJ has been very useful.
Logged

Regards,



Download site for MASM32
http://www.masm32.com
Antariy
Member
*****
Gender: Male
Posts: 1041


Re: Memory dialogs revisited.
« Reply #23 on: March 18, 2011, 03:20:18 AM »

It seem, that nobody, except Hutch and Vortex, ever reading my useless posts: http://www.masm32.com/board/index.php?topic=15932.msg131804#msg131804

Sadly enough Sad
Logged
dedndave
Member
*****
Posts: 12523


Re: Memory dialogs revisited.
« Reply #24 on: March 18, 2011, 03:35:19 AM »

hiyas Alex   ThumbsUp

well - the wording is a little hard to understand in that post   Tongue
noone mentioned it had to do with language/versions of XP, either - until now
i thought it might be something to do with the fact that i have media center edition - lol
there are a couple very hefty updates for MCE that do not get installed onto regular XP
as i recall, one is 20 Mb and the other is 35 Mb
Logged
Antariy
Member
*****
Gender: Male
Posts: 1041


Re: Memory dialogs revisited.
« Reply #25 on: March 18, 2011, 03:44:47 AM »

hiyas Alex   ThumbsUp

well - the wording is a little hard to understand in that post   Tongue
noone mentioned it had to do with language/versions of XP, either - until now
i thought it might be something to do with the fact that i have media center edition - lol
there are a couple very hefty updates for MCE that do not get installed onto regular XP
as i recall, one is 20 Mb and the other is 35 Mb

Well, then I'll write in native language Tongue

BigGrin
Logged
hutch--
Administrator
Member
*****
Posts: 12013


Mnemonic Driven API Grinder


Re: Memory dialogs revisited.
« Reply #26 on: March 18, 2011, 04:00:49 AM »

Alex,

I have no doubt that many read you post, its just that I remembered it.  ThumbsUp
Logged

Regards,



Download site for MASM32
http://www.masm32.com
Ramon Sala
Easy Code programmer
Member
*****
Gender: Male
Posts: 425


Re: Memory dialogs revisited.
« Reply #27 on: March 18, 2011, 08:13:07 AM »

Hi,

It works fine on Windows 7 (both 32 and 64-bit), but it doesn't on Windows XP SP3.
Logged

Greetings from Catalonia
jj2007
Member
*****
Gender: Male
Posts: 6011



Re: Memory dialogs revisited.
« Reply #28 on: March 18, 2011, 10:51:25 AM »

Alex had the right idea. See attachment, and try the UseCommonControls option...

* DlgTest.zip (27.44 KB - downloaded 297 times.)
Logged

hutch--
Administrator
Member
*****
Posts: 12013


Mnemonic Driven API Grinder


Re: Memory dialogs revisited.
« Reply #29 on: March 18, 2011, 12:59:27 PM »

OK,

So if I have it right at the moment, some Windows versions are conditional in their usage of the initialised common control library. With the US English versions I use this code works on all of them, Win2000, XP SP3 and Win7 64 bit. I looked at the mod that JJ posted which runs on my US English versions. Now the situation that Erol reported was that on his Windows version if you ran a manifest file without enabling the common control library that the dialog would not start.

Now what I am interested in determining is if on some Windows language versions that you must match the control flags to the controls used. IE bar classes for toolbars and status bars etc ...
Logged

Regards,



Download site for MASM32
http://www.masm32.com
Pages: 1 [2] 3 Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP The MASM Forum Archive 2004 to 2012 | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!