Model Engineer FAQ
How can I bring up a components GUI (Property Page) in design-mode in Visual Basic?
You need to first put the component in edit-mode by right clicking on it and selecting “Edit”. Then right click on it again and the “run-time” popup menu will appear and you can select the Properties… interface.
When I try to “drag and drop” my new component created with Object Engineer onto an Excel spreadsheet I get an error message that says “Cannot Insert Object.”
Using Windows Explorer, go to your Windows\Temp directory (e.g., “Windows\Temp” or “WinNT\Temp”) and you’ll see a folder for Excel temporary files. Delete the entire folder and it will probably clear up the problem.
Why do I get two error messages that say “This program has performed an illegal operation and will be shut down.” When I exit Excel?
The most likely problem is a known bug in Model Engineer B1.7 components that will be fixed in 2.0.
When I compile from Object Engineer I keep getting a message that says the compile failed?
There are several things that could cause a failure in the compilation.
1) See the solution to the “Errors during load…” question.
2) You have an invalid property name. Some examples are:
a) Spaces or special characters used in the name..
b) You put an _ (underscore) in a property name in addition to the ones use by Object Engineer.
c) Reserved Visual Basic words such as “End”, “Public”, etc.
3) Your component name is longer than 17 characters. [Anytime you change component name after you’ve already saved it, make sure you do a File / Save As… and save with a new name that is in synch with your component. For example: CompA should be saved as CompAProj. If you change the name to CompB you need to Save As… CompBProj.]
4) You did not declare (dimension) a variable you created in a User Code section.
5) You make an invalid reference to a component service in User Code.
If you have looked at these and still can’t find the error, the easiest thing to do is open the project in VB and compile from there. It will break on the offending line of code.
Why is my “File / Compile” menu grayed out in Object Engineer?
Object Engineer uses the Visual Basic compiler to compiles its source code. So first you have to have Visual Basic 5 (not the Control Creation Edition) or Visual Basic 6 installed on your system. Once you have it installed, select the Tools / Options menu item. In the textbox labeled “VB Executable Directory” you need to have the full-path name of the VB compiler (VB5.exe or VB6.exe).
When should you use the Rebuild functionality in Object Engineer?
The design file (D3Lab.csv) is an architecture document. It keeps up with all the "structural" information about a component but not detailed user code. The "Rebuild" function completely rewrites the component based on the current design file and then imports user code from the other current component files (D3Lab.ctl and D3Lab.cls) to create a new version of the component. As a safeguard it versions (creates backups) all the old files before writing new ones.
Given this functionality, there are several different instances in which you might want to perform a rebuild. To name three:
1) A new version of Object Engineer is released with new functionality that you would like in your component.
2) Somehow your source code that is outside the user code areas has gotten messed up and is causing errors.
3) You want to add or edit embedded services or properties via the design file instead of the Object Engineer GUI.
Why do I get an “Errors during load…” VB error message when I try to open one of the Forms created by Object Engineer in B1.7?
The B1.7 installation is missing a file. Copy the file ControlName.frx from the Modelogics ftp site and put in into the same subdirectory where you have installed the ObjectEngineer.exe file.
Does Model Engineer work with VB5 CCE (Visual Basic 5 Control Creation Edition), the free version of VB that Microsoft distributed to build market share for VB as a component creation tool?
Yes Model Engineer does work with VB5 CCE but there are some limitations between CCE and the normal VB. The limitation that most affects Model Engineer is that you may not use the compiler outside of the VB development environment… which means you cannot compile from within Object Engineer.
To get around this limitation you simply open your Object Engineer project in VB and compile from there.
Does Model Engineer support Visual Basic 4?
Model Engineer only supports Visual Basic 5 or greater because version 5 was the first release to provide control creation capabilities, which is essential for what Model Engineer does.