grid vbx
Charles -- chung.charles@syncrude.com Tuesday, September 24, 1996 Environment: Win3.1 MSVC 1.52 Hi all, I installed the grid.vbx (from the dir "c:\windows\system\") onto my app-wizard and have put the control on a Dialog. However, when I run the application, an error appear on the debug window saying that it fails to create the dialog window. Any clue out there? I also wondered if I could install the .ocx controls too? If so, how? Thanx. charles.
Phil Reeves -- p.reeves@rbh.nthames.nhs.uk Thursday, September 26, 1996 [Mini-digest: 5 responses] At 08:56 24/09/96 -0600, you wrote: > >Environment: Win3.1 MSVC 1.52 > >Hi all, > I installed the grid.vbx (from the dir "c:\windows\system\") onto my >app-wizard and have put the control on a Dialog. However, when I run the >application, an error appear on the debug window saying that it fails to >create the dialog window. > Any clue out there? One obvious thing to check is that you have EnableVBX() somewhere. Philip Reeves Knowledge Engineer ************************************* Royal Brompton Hospital Sydney Street London SW3 6NP UK Tel: +44 (0)171 351 8702 Fax: +44 (0)171 351 8743 e-mail: p.reeves@rbh.nthames.nhs.uk web: http://www.rbh.nthames.nhs.uk ************************************* -----From: Dina Veygman/Shiva Corporation void AfxEnableControlContainer( ); Remarks Call this function in your application object's InitInstance function to enable support for containment of OLE controls. For complete information about OLE controls, look under Key Visual C++ Topics/MFC Topics/OLE Controls in the InfoView pane of the Workspace window. -----From: Lee FullerAre you setting properties of the VBControl? If so, check it isn't NULL - it will be until the memory is allocated to the VBControl pointer. Lee. > -----From: "Joseph, Johny (Exchange)" Hi Charles Please check your CWinApp derivative class .In the InitInstance function add the following function. EnableVBX(); Then it should work.Actually if you create the application using the appwizard it will ask you (There is check box for enabling VBX.).It will automatically put the EnableVBX(); function in your InitInstance function. Thanks Johny. -----From: jimt1@voicenet.com (Jim Tannenbaum) Charles, Move the grid.vbx file to either c:\windows or the project (working) directory. JJM Systems, Inc Phone: (215) 672-3660 1 Ivybrook Blvd, Suite 190 Fax: (215) 672-5702 Ivyland, PA 19874 Net: jimt1@voicenet.com
| Вернуться в корень Архива |