DrDamnit
asked on
Application-defined or object-defined error - I will jump out the window.
Please save me from jumping out the window!
I have a Project Group that has 2 dlls, 1 ocx, and 1 exe.
Ctrl-F5 runs the group just fine. No problems.
When I compile, and install on my own machine (the same as the developing machine) or a testing machine I get two errors:
1. Type Mismatch
followed immediately by:
2. Application-defined or object-defined error Error 599999 (give or take a '9')
So, I compiled the whole group, and just opened up the exe project, and did a Ctlr-F5. Turns out the problem has to do with one of the Dlls (wme.dll) on this line of modMain.bas:
set x = new wme.engine '(x is defined as public in the module)
Question: How do I debug that Dll? In the group and on its own it works just fine
I have a Project Group that has 2 dlls, 1 ocx, and 1 exe.
Ctrl-F5 runs the group just fine. No problems.
When I compile, and install on my own machine (the same as the developing machine) or a testing machine I get two errors:
1. Type Mismatch
followed immediately by:
2. Application-defined or object-defined error Error 599999 (give or take a '9')
So, I compiled the whole group, and just opened up the exe project, and did a Ctlr-F5. Turns out the problem has to do with one of the Dlls (wme.dll) on this line of modMain.bas:
set x = new wme.engine '(x is defined as public in the module)
Question: How do I debug that Dll? In the group and on its own it works just fine
What does the code look like for Class_Initialize in the dll?
make sure your dll's and ocx is binary compability.
from project properties->component tab
from project properties->component tab
and dont jump out the window lol...
ASKER
There is nothing in the Class_Initialize.
Will try binary compatibility.
Will try binary compatibility.
ASKER
I am also compiling from a network drive. Project is located at \\server\user\vbcode\categ ory\name. Could that have something to do with it?
What is the X type of variable?
Type mismatch usually refers to a confusion in variable types (passing an integer when expection a single, etc.)
If using VB.NET - doesn't like VARIANTS.
Scott C
Type mismatch usually refers to a confusion in variable types (passing an integer when expection a single, etc.)
If using VB.NET - doesn't like VARIANTS.
Scott C
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.