🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #2372

disappeared main window

#2372
From: Haijing Wang
Date: Thu, 10 Feb 2000 00:00
39 lines
1731 bytes
(Thank you Stefan for helping me to get rid of the "dummy version of
OwlMain" error message.)

I am in the process of converting an BC++ 4.5 windows app to C++ builder
4.0.

Now I got the executable, and I can run it.
But in start up, I can not see the main window, can only see a sign on
dialog with some logo which is supposed to be displayed inside the main
window, then the first dialog  box come up.

One thing I found out suspicious is the value of CREATESTRUCT.
the code looks like:

int AI_Main_Window::EvCreate( CREATESTRUCT & cstruct )
{
  int result = TDecoratedMDIFrame::EvCreate( cstruct );

  PostMessage( WM_MAIN_INIT_DESKTOP, 0, 0 );  // this will call a function
to prepare menu and toolbar.

  return result;
}  //  AI_Main_Window::EvCreate()

By using the C++ Builder debugger, I found out the pointer lpCreateParams is
NULL.
cy, cx, x, y are either 0, or negative huge numbers.
During debugging, I changed the value of cy,cx, x, y to make them reasonable
values.
That makes no difference, the main window is still invisible.
Since I suppose this cstruct is passed on to me by the system( am I right?),
there is no way for me to find out why lpCreateParams is NULL.

What might be wrong?

Thank you for your help.


Haijing Wang
Technical Details
Message-ID: <87vlq2$d4a7@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10529a,36bded2fec603339,start
X-Google-Attributes: gid10529a,public
From: "Haijing Wang" <hwang@kbsi.com>
Subject: disappeared main window
Date: 2000/02/10
Message-ID: <87vlq2$d4a7@bornews.borland.com>
X-Deja-AN: 584341087
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.cppbuilder.upgrade