flat assembler
Message board for the users of flat assembler.

Index > Windows > Windows problem

Author
Thread Post new topic Reply to topic
xyblack



Joined: 20 Mar 2008
Posts: 19
xyblack
Good afternoon。
I encountered a problem.i write a Program 。but windows Do not show。Help see next question trouble . Thank You..


Code:
    
Post 06 Apr 2008, 05:24
View user's profile Send private message Reply with quote
Rahsennor



Joined: 07 Jul 2007
Posts: 61
Rahsennor
You should be calling RegisterClassEx, not RegisterClass. Also,
Code:
invoke GetMessage, eax, NULL, 0, 0    

should probably be
Code:
invoke GetMessage, ebx, NULL, 0, 0    

and several uses of hInstance should probably be bracketed. That stops it from crashing on my machine, but I can't get the window to appear. Embarassed The problem seems to be in _ProcWinMain.
Post 06 Apr 2008, 06:09
View user's profile Send private message Reply with quote
xyblack



Joined: 20 Mar 2008
Posts: 19
xyblack
thank you ...
Caused by careless

Contact friends? email ? msn?
Post 06 Apr 2008, 06:21
View user's profile Send private message Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 708
Location: Adelaide
sinsi
Code:
proc  _ProcWinMan, hwnd, wmsg, wparam, lparam 
        push    ebx esi edi  
        cmp     [wmsg], WM_DESTROY 
        je      .wmdestroy 
         
  .wmdestroy: 
        invoke  DestroyWindow,hWinMain 
    

ummm .wmdestroy gets called no matter what.
Post 06 Apr 2008, 06:23
View user's profile Send private message Reply with quote
xyblack



Joined: 20 Mar 2008
Posts: 19
xyblack
thank you ..

Problems are solved。

should be

Code:

       invoke   ShowWindow, [hWinMain], SW_SHOWNORMAL 
       invoke   UpdateWindow, [hWinMain]
    


In a contact, we exchange after the
Post 06 Apr 2008, 06:45
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.