473,320 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Class does not support Automation or does not support expected interface

Hey guys!
I'm having some issues with one of my installer packages i compiled with Microsoft Visual Studio 2005. (VB installer is buggy as hell and wouldn't work on half of our machines no matter what we did with it) The installer wraps a VB 6.0 application. When i install the package on my machine everything works flawlessly. When i installed it on the user's machine, once again, everything ran great. When we uninstalled it and installed it again, we ended up getting the following error:
Run-Time Error 430 "Class does not support Automation or does not support expected interface"
Here is the kicker, when we try to open the actual project on user's machine in Visual Basic 6.0, he can run and execute the application without any problems whatsoever. No missing dependecies - nothing! However, when he tries to run it from a shortcut that the installer puts on his desktop he gets the message mentioned before.
The shortcut itself is passing command-line arguments. When we tried getting rid of these arguments and simply hardcoding their values into the code, the application ran fine from the shortcut on his desktop; even though the application wasn't using command-line arguments from the shortcut. I tried manually creating the shortcut but that didn't solve the problem either. I really don't know what can be wrong. I check MDAC versions on mine and his computer and both are identical.
Any suggestions?

P.S. This behavior is not happening on the dev. machine of course :(
Jun 26 '07 #1
2 17889
Killer42
8,435 Expert 8TB
Just as another check on what's happening, have you tried filling in the arguments in the Project | Project Properties | Make | Command Line Arguments option in VB on the problem machine? Or is that what you meant when you said you hard-coded them in the program?
Jun 27 '07 #2
Thanks for the response!
The actual project has command-line arguments saved in the properties of the project. During start-up, the command-line is parsed and the arguments are saved into 2 variables. What we did is just skipped the parsing and manually set the variables to what the user is passing through the command-line like so:
Expand|Select|Wrap|Line Numbers
  1. strEnvironment = "test"
After more research, it doesn't even look like it has anything to do with the command-line. It looks like when the user compiles the application in VB environment it starts working. This is what i don't understand, even though the references would show components that got moved out onto their machine from the installer, something is still off as it wouldn't run outside of the VB environment. But when they try compiling with the same components it works. I'm think i'm about as lost as one could possibly be.
Jun 27 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: jabailo | last post by:
I came across this article while researching a VB6 430 error: INFO: Considerations for Server-Side Automation of Office http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757 ...
9
by: justanotherguy63 | last post by:
Hi, I am designing an application where to preserve the hierachy and for code substitability, I need to pass an array of derived class object in place of an array of base class object. Since I...
3
by: Robert | last post by:
---EN--- This message has been crossposted in a french speaking newsgroup, english version is at the end. Thanks a lot for your help... --/EN--- Bonjour, Je développe une application...
15
by: qwweeeit | last post by:
Hi all, Elliot Temple on the 1 June wrote: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no...
10
by: Joe | last post by:
My question is more an OOD question. I know *how* to implement both abstract classes and interfaces. Here's my question - under what circumstacnes does one use an abstract class and under what...
3
by: Robin Tucker | last post by:
It seems that all of the interfaces, such as IDataObject etc. from basic OLE are no longer supported in .NET, although they are implemented (differently). I have an OLE object type and am having...
8
by: Gregory | last post by:
I have a question about using STL containers in C++ class public interface. Lets say that I want to return some container from class method or accept class method parameter as some container. For...
52
by: Ben Voigt [C++ MVP] | last post by:
I get C:\Programming\LTM\devtools\UselessJunkForDissassembly\Class1.cs(360,27): error CS0535: 'UselessJunkForDissassembly.InvocableInternals' does not implement interface member...
162
by: Sh4wn | last post by:
Hi, first, python is one of my fav languages, and i'll definitely keep developing with it. But, there's 1 one thing what I -really- miss: data hiding. I know member vars are private when you...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.