The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: chicago on July 09, 2010, 03:33:42 AM

Title: Help with this first program of mine.
Post by: chicago on July 09, 2010, 03:33:42 AM
Hey :D

I've been playing with the assembly thing.

I've been able to write some small programs on my own (without cheating   :green LOL).

Now I've come across this problem (twice...).

I copy Izcellion's part 3 example line by line. I think I've understood it and the thing assembles and links, yet, the window does not appear. If I copy paste the code into the same project it does work. Therefore here I attach the problematic files (Rar with OBJ, ASM, and even the EXE).

I hope you could help me find my error.

http://rigel.fca.unam.mx/~li306542084/FirstWin2.rar

Thanks!!!
Title: Re: Help with this first program of mine.
Post by: sinsi on July 09, 2010, 03:58:05 AM
No problems here, even rebuilding it works OK - win7pro x64
Title: Re: Help with this first program of mine.
Post by: chicago on July 09, 2010, 04:06:59 AM
Quote from: sinsi on July 09, 2010, 03:58:05 AM
No problems here, even rebuilding it works OK - win7pro x64

:dazzled:
It does work too on my 7Ultimate x64...

On the 95 client does not (it was built there), but... the copied code from the site (on that same project) does work there! :O

What could be happening on the process?

Could it be my IDE?

I use WinAsm, but I don't know if it's good.
Title: Re: Help with this first program of mine.
Post by: mineiro on July 09, 2010, 04:08:27 AM
Insert the line below before register the class.

      mov wc.hIconSm,eax

regards
Title: Re: Help with this first program of mine.
Post by: chicago on July 09, 2010, 04:13:44 AM
Quote from: mineiro on July 09, 2010, 04:08:27 AM
Insert the line below before register the class.

      mov wc.hIconSm,eax

regards

Yey!

So the small icon was the problem!

Thank you! :D
Title: Re: Help with this first program of mine.
Post by: dedndave on July 09, 2010, 04:18:56 AM
you'll find a few errors in Iczelion's tutorials
so - don't be surprised
but, debugging is an important thing to learn, as well   :U
Title: Re: Help with this first program of mine.
Post by: chicago on July 09, 2010, 04:38:33 AM
Quote from: dedndave on July 09, 2010, 04:18:56 AM
you'll find a few errors in Iczelion's tutorials
so - don't be surprised
but, debugging is an important thing to learn, as well   :U

Yep, I'm actually happy to get this kind of errors. Slowly I'll learn to identify them. This particular one was cool because everything looked ok.

Thanks to all. A great community.