The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => The Orphanage => Topic started by: shankle on June 17, 2011, 09:52:22 PM

Title: program won't run in Windows XP Pro
Post by: shankle on June 17, 2011, 09:52:22 PM
Thanks for any suggestions,
Got a program somewhat working in Windows 7 Pro but it just stares at me in Windows XP Pro on Wiffies computer.
Any ideas?
Thinking about transferring the whole masm folder to Wiffies computer and trying again.
I have little hope that that will make any difference as I did just that not to long ago.
Title: Re: program won't run in Windows XP Pro
Post by: dedndave on June 17, 2011, 10:35:58 PM
hiya Jack
without seeing the code - hard to say
my guess is that you are using a newer function or (more likely) a newer functionality of an old one   :P
Title: Re: program won't run in Windows XP Pro
Post by: shankle on June 17, 2011, 10:44:02 PM
Hi Dave,
Still using the SDK from the late 90s.
With the old visual studio from the same time.
It really ought to work on XP and not on 7 one would think.
Title: Re: program won't run in Windows XP Pro
Post by: qWord on June 17, 2011, 10:46:08 PM
You may can fix i by running it as administrator...
Title: Re: program won't run in Windows XP Pro
Post by: shankle on June 18, 2011, 01:30:47 AM
Yes it did work in safe mode Qword.
I copied the entire masm32 folder to wiffies XP Pro computer.
Compiled the program there and it stared at me.
Can't delete the executable module as it gives an access denied message.
Had to go into safe mode to delete it. This shouldn't be necessary.
Since I am using the old SDK I shouldn't have anything in the program not compatible
with XP. :(
Title: Re: program won't run in Windows XP Pro
Post by: Gunner on June 18, 2011, 02:08:09 AM
WinXP is more temperamental than Win7,  If you forget to save esi, edi, ebx, ebp, esp where you use them, the program will have problems, were Win7 seem to disregard them at times (From what I have seen)  Mis aligned stack maybe?  Hard to tell without seeing code.
Title: Re: program won't run in Windows XP Pro
Post by: mineiro on June 18, 2011, 01:39:43 PM
One day I have create one code to win XP, and worked fine. But when I enable the visual effects, it don't worked. Then I corrected it, and when I tryed in Vista, don't worked again.
The fault is that I do not have fully filled some structures.
Try it.
Title: Re: program won't run in Windows XP Pro
Post by: qWord on June 18, 2011, 03:37:36 PM
Quote from: shankle on June 18, 2011, 01:30:47 AM
Can't delete the executable module as it gives an access denied message.
Had to go into safe mode to delete it.
You have tried to kill the process? (Taskmanager)
If this wont work, it could be a problem with ruining AV, that keeps an open handle to the image. (I've seen this when using the famous Norton AVĀ  :bg)
You may show us your code?
Title: Re: program won't run in Windows XP Pro
Post by: shankle on June 18, 2011, 10:49:10 PM
No I have not tried killing the process but I will.
I am using ESET SS for my virus program.
Will keep on digging. Maybe using another approach.
Nothing out of the ordinary with the APIs.
Title: Re: program won't run in Windows XP Pro
Post by: shankle on June 19, 2011, 07:35:43 PM
Problem is solved. Now working in Windows XP Pro and Windows 7.
Problem caused by the intricacies of CreateWindowsEX.
Thanks for your help.
Title: Re: program won't run in Windows XP Pro
Post by: jj2007 on June 19, 2011, 08:56:07 PM
Quote from: shankle on June 19, 2011, 07:35:43 PM
Problem caused by the intricacies of CreateWindowsEX.

C'mon, sharing is loving - details please :thumbu
Title: Re: program won't run in Windows XP Pro
Post by: shankle on June 19, 2011, 10:51:42 PM
Ok will try.
One of the "addr" was not capitalized. Not sure if that is a problem.
I had the dwExStyle parameters mixed up with the Windows Style parameters.
Since I am going to have to have more than one "CreateWindowsEx" in my
program the hWndParent doesn't seem to want to work when changed to
something other than "NULL".
Title: Re: program won't run in Windows XP Pro
Post by: Gunner on June 20, 2011, 12:06:45 AM
Quote from: shankle on June 19, 2011, 10:51:42 PM
Ok will try.
One of the "addr" was not capitalized. Not sure if that is a problem.
I had the dwExStyle parameters mixed up with the Windows Style parameters.
Since I am going to have to have more than one "CreateWindowsEx" in my
program the hWndParent doesn't seem to want to work when changed to
something other than "NULL".

The addr thing doesn't matter.  Mixing up the Extended Styles with the reg window styles will matter.  The first (Main window) you create, the parent is NULL, everything else (all children) and other windows, need a valid parent handle, or they don't get created correctly.