Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Error In Creating A Server Object From Custom Activex Dll


I have written an ActiveX dll to perform some work. At the top of my ASP script I place the following line.

<!--METADATA TYPE="TypeLib" NAME="MyClass" FILE="c:windowssystem32MyClass.dll"-->

I try to create an object using the following line.

Set MyObj = Server.CreateObject("MyClass")

I get the error "Invalid class string " on that line.

What am I doing wrong?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
-Compile Error When Passing A Custom ActiveX Control To A Custom DLL
We have created an ActiveX control (called Clapton) which works fine until we make a custom DLL that references the control.

In the DLL project we have added the Clapton control to the components toolbar and dropped an instance on a form. We also have some Public procedures in Class Modules in this DLL which take a variable of type Clapton as an argument. When we compile this DLL, we recieve the following error message:

"Private object modules cannot be used in public object modules as parameters or return types for public procedures..."

Any idea what's wrong?

--Ben

How To Catch A Custom Error In ASP From Custom COM Object
Hi,

hope my subject is appropriately titled...

When programming in ASP (VBScript), objects are instantiated by the Server.CreateObject method. Later, these objects can be used (or mis-used).

When said object is mis-used it somehow "throws" a well-described error message, which then is displayed in the ie browser window.

For example, if I create a recordset object, and try to traverse it before it contains any data, I get an error message:


Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/DataWH/Test_Search.asp, line 48


This is good. I am going to be making my own custom COM objects (VB6) to be used on the server from ASP pages soon.

Q: How do I make my objects throw my own custom errors to be seen in the browser window like the above example?

Let's assume an error occured in my object and now I am in the error handler, Err:


Code:

Err:
' Here is where I want to spit out an error to be seen by the browser.
' is there anything special I should do?
Exit Sub


I am kind of thinking there is some kind of Public declaration of an error that I must define in the project scope? I'm not too familiar with this.

Any ideas will be helpful!

Thanks,

Dave

Custom ActiveX And Dictionary Object
i created a custom dll that works great from Visual Basic. However, when i try to use it from an ASP page, it doesn't work. The dll has a function that takes a Dictionary Object as a parameter, but when i pass a scriptiong.Dictionary object from ASP it gives me a wrong type error? does anyone know why this is happening?

Custom Type Into A C++ DLL ActiveX W/o Wrapping It Into A COM Object
Hello everybody,

I am at despair and looking for help. If my question seems to be too simple for Guru's please disregard. If you have a second then just please point me in the right direction.

I have written a C++ COM DLL (ATL framework).

The DLL defines a few custom types (I actually have them defined in the IDL).

The types are nothing but some struct's.

My client is in VB. I can clearly see the type definitions in the VB Object Browser.

I can also define the variables of the type ATLLibrary.MyType.

However I get a VB "compilation error" when trying to run this thing.

The error says something to the extent of public types not defined in public objects. (I am sorry I do not have the exact error message in front of me).

The question is: can I do it at all?

Define a custom type in the IDL. Declare a variable of that type in VB and pass it to the C++ COM object.

Now, I know I can define another COM object and give it the same properties, but this strikes me as an expensive solution to a simple problem.

I have a custom type defined in the IDL:

typedef struct
{
a[5] char;
b[6] int;
} MyType;

UM should be able to figure out how to marshall this thing from VB to C++. Should not it?

Thanks in advance for any help.



Val Gamerman

Custom Event From Activex Object Don't Fire In Browser
I have created an activex object which (among other things) opens Word. I need to pass events back to the opening web page.

I have set up the activex object (with "Withevents" as appropriate), defined the events and set up subroutines to fire them. THe routines seem to work.

However the web browser does not seem to sense the events:

<object
CLASSID="CLSIDC5EABEF-64B3-4DF7-B7FC-B7035CA85832"
    ID="CBWordCall" viewastext
    Standby="Downloading ContractBuild Desktop Tool"
    codebase="http://XXXXX/casm/cbuildword/CBWord.CAB#version=1,0,0,0">
</OBJECT>

<script language=vbscript>

    CBWordCall.CBWordCall
 
    Sub CBWordCall_OnDocSave()
        msgbox "Document Saved"
    end sub
    
    Sub CBWordCall_OnDocClose()
        msgbox "Document Closed"
    end sub
</script>

THe call works fine, the events do not. Any comments?
 

Creating A ActiveX Object At Run Time?.?
I'm trying to create an ActiveX object that I created using VB, in another project on the fly. I like to Create the object and show it in a form. The thing is, I need to do it late binding, like:

dim obj as object

set obj = CreateObject("myObj.TestControl")

' Then show it some how

How do I do this?

Creating Server Side ActiveX Exe
Hi all,

i'd like to post an old question again - as it is excactly mine and hasn't been answered yet... so here it is:

<<<<<<<<
Nanda (Visitor) Oct 2, 2000
Hi All,

I am almost stuck with my problem. I explain it. Any kind of help will be appreciated.

I m trying to run/call a component in ASP. Component is installed on server where my IIS server is installed. The component is an Exe (also run as stand alone application) and I can run it on server.

1. Invoking this exe from ASP using CreateObject, gives error as...
Cannot launch out of process...Only InProc server components be used. If you want to use LocalServer components, you must set the AspAllowOutOfProcComponents metabase setting. ...

2. To solve above, I tried to run code, as I could not locate where to set AspAllowOutOfProcComponents manually
<%
Set WebServObj = GetObject("IIS://LocalHost/W3Svc")
WebServObj.Put "AspAllowOutOfProcComponents", True
WebServObj.SetInfo
%>

3. Now, pt 2 fails at the first statement itself, saying
Permission denied: GetObject

I am absolutely stuck what to do, as it is very urgent to meet my deadline and I do not know what and wher to look for this.

If anyone of kknow how to solve this/these problems, I am heartly thankful.

Thanks
Nanda (&Pong)




ActiveX-Error 429-ActiveX Component Can't Create Object
I am having this message when doing interfacing with MATLAB as the following codes
<vbcodes>
Set MatLab = CreateObject("Matlab.Application")
</vbcodes>

What should I do. I am using Windows XP Professional. Is that version doesn't support ActiveX for interface with Matlab?
Tq

ActiveX Component Can't Create Object Or Return Reference To This Object (Error 429)
MSDN talks about the "registry" and "setup program". I'm a beginner and CLUELESS! I tried to install Active X references and got the following notice: Name conflicts with existing module, project, or object library. The last line is where I get the run-time error in VB6:

Dim ppApp As PowerPoint.Application
Dim ppPres As PowerPoint.Presentation
Dim ppShape As PowerPoint.Shape
Dim ppCurrentSlide As PowerPoint.Slide
Dim msoTrue As New OLEObject
Dim msoFalse As New OLEObject
Dim oPicture As New OLEObject

Set ppApp = CreateObject("PowerPoint.Application")
ppApp.Visible = True

Set ppPres = ppApp.Presentations.Add(msoTrue)

Hope someone can help me....thanks Warren

Adding Custom CommandBar Yields ActiveX Error - Help
Creating VB Application that embedds an Office component via OLE. I want to add a Menu to Save the new document when editting is complete.
Any Code such as below, yields an "Active X component cannot create object"
Documentation refers to adding appropriate reference in Projects, but which one???
   Dim cstmAcctProduct As CommandBarControls
   Set cstmAcctProduct = Application.CommandBars("Worksheet Menu Bar").Controls("Accounting") _
    .Controls.Add(Type:=msoControlPopup)
cstmAccProduct.Caption = "&Product"

Runtime Error 429 ActiveX Object Cannot Create Object
Hi All,
Am getting the following error,

"RunTime error 429
ActiveX Object Cannot Create Object"

The same application runs fine in other machines, but it throws error inNT Server.
Your help will be highly appreciated,
Thanks in advance,
Badri

Activex Server Object Reference
Hi,
i've problems with an object reference given to an ActiveX Server (Visual Basic 6). I create an object outside the server (from a class which is defined in another component) and pass it through any method from client to the server. If i send back then the reference of the object in the server to the client in an event and then try to access the object again, the server crashes (in debug mode in the IDE and compiled). So the steps of passing the object reference to crash the server are:
client => server => server.event => client
This problem is always reproduceable.

In VB this would look like this:


Code:
Client
...
Private WithEvents moMyServer as MyServer.MyClass
...

Private Sub Form_Load()
set moMyServer = New MyServer.MyClass
End Sub

Private Sub anyMethod()
dim o as AnotherComponent.AnyClass
set o = New AnotherComponent.AnyClass
moMyServer.queue o
End Sub

Private Sub moMyServer_evtSomething(o as AnotherComponent.AnyClass)
...
end

ActiveX Server
...
Public Event evtSomething(o As AnotherComponent.AnyClass)
...

Public Sub queue(o As AnotherComponent.AnyClass)
'* queue the object for processing
...
End Sub

'* This method is called by another method which takes first queued object
Public Sub processObject(o As AnotherComponent.AnyClass)
'* do something with the object
...
RaiseEvent evtSomething(o)
'* If object is used after event, server crashes, for example
debug.print(o.toString)
End Sub
The AnotherComponent is in my case another ActiveX Server.
Do you think that's a VB bug?

Creating An Email Account From ActiveX Server Component
Hello there,

I am writing a ActiveX server component(a dll actually) which will
be called from an ASP to create a email account in an Microsoft Exchange server.

I hope someone is able to tell me how to go about doing this.
Does Microsoft Exchange server provides API in dll form?

thanks a lot!

darren

Custom ADODB Connection/Recordset Object Error
Hi,

I have done custom object that simplifly the access to the database.
It has declared
Private cn As ADODB.Connection
Private rs As ADODB.Recordset
and now I want to implement Value property.

My code is:

Code:
Public Property Get Value(Optional Index As Variant) As Variant
If IsMissing(Index) Then
Value = rs.Fields(0).Value
Else
If rs.Fields(Index).Value Is Null Then
Value = ""
Else
Value = rs.Fields(Index).Value
End If
End If
End Property
and works fine but when rs.Fields(Index).Value is Null (debugging I can see that it is Null) reports me error'424' object is required.

I had tried is Null, is Nothing, = Null, = Nothing, = "", Cstr(rs.Fields(Index).Value) = "" . With all of them it fails.
How I can do this casting? I'm using VBA with ActiveX Data Object 2.5 Library, but I suposse that the error is not related to use VBA.

Thanks

'Error In GetMaxIssue: ActiveX Component Can't Create Object' Error???
Hi I have the above error.
The VB code accesses mdb database and works OK when package installed. (package developed by external group)

BUT when this package is uninstalled and I install my new install :-

I have created a new install, that copies program files and installs MDAC 2.5.

Can anyone help me with what Dlls/components are missing to get the above error??????


This is the connection to Database:-
Set rs = New ADODB.Recordset
sSQL = "Select Max(IssueNo) From Issues"
rs.Open sSQL, oADOCon, adOpenStatic

Thanks

Matt

ActiveX Error Creating Instance Of A Class
Hi,

In my project i have a class called gridclass.cls.

This is my declaration for the objects that are going to be instances of this class, in my module:

Private grid(1 To 5) As Object


this is my next reference to the grid array which is what is causing the error:

For i = 1 To numOfGrids

Set grid(i) = CreateObject("SwitchConfig.GridClass")

Next

switchconfig is my project's name in VB. I'm new to vb so i will just check that with you. my project name is where all the hierarchy of forms, modules and classes stem off from on the right hand side of my VB development area? yeah? the one where you right-click -> properties and set the startup object and project type??? - just to make sure

it hasnt iterated successfully yet through the for loop because 'i' is still set to 1. The error that comes up is:

Run-Time Error '429':

ActiveX component can't create object.


Any ideas?

cheers

Error Using ActiveX EXE On Server
I created an ActiveX EXE to replace a class that may need to be changed often.  Instead of having to recompile the application (8 MB), I wanted to be able to simply and quickly replace the ActiveX EXE (80 KB) via an internet connection.  The application is placed on the server with multiple clients accessing it through a shortcut.

As I understand the difference between ActiveX DLLs and ActiveX EXEs is that the DLLs must reside and be registered on each client whereas an EXE can reside solely on the server.  Is that essentially correct?  Does the ActiveX EXE need to be registered as well?  If so, where and how?  Does it make a difference whether the component is early or late bound (I've tried both)? My application works fine in testing with a compiled ActiveX EXE located in the same directory, but I get errors when running the client portion.  They are: "Class not registered on local machine" or "ActiveX component can't create object" depending on what I try.  I've been unable to find any solutions on the internet as yet.  Any help is appreciated.


Runtime Error 429: Error Creating Object...
Hi,

I've got the following problem. I wrote a Visual Basic application which creates an Excel 2000 object and which creates an Excel sheet with several charts. Now, some of our co-workers changed to Windows XP and Office XP. So when I start the creation of the Excel sheet out of my application on one of these machines, I always get the Runtime Error 429. I had a look at the Microsoft webpage. They recommended to use DAO 3.6 instead of DAO 3.0...But it still doesn't work.
A thought: Should I compile and create the application under Windows XP with an installation of Visual Studio? Does this help because of newer libraries?

Any ideas?

Thanks a lot!

Harry

Error Creating RDO Object
In searching the forum, I came across this post, and wondered if there was a resolution. I am having the same problem. At my new job, I am trying to get some older projects working. The projects are using RDO, and I am getting the same error jp_schwartz describes. I am running on a Win2K pro box, with VB6/SP5 installed. At my old job, the VB projects using RDO ran fine (that was on a Win95 box with VB6/SP4 installed). Any ideas?

Error Creating New Object In MTS
I am attempting to create a new MTS object using the following code:

Dim liptrObjectContext as Object

Set liptrObjectContext = GetObjectContext
Set liptrValTypeI = liptrObjectContext.CreateInstance("T2CplxBs.SV_ValTypeI")


I am receiving the following error:
Failed on creation within a server process. InitialBind (Package: TRaC II Components) (ProgId: T2CplxBs.SV_ValTypeI) (CLSID: {D2861E61-30F3-11D4-B664-0008C759C5B0}) (Interface: IClassFactory) (IID: {00000001-0000-0000-C000-000000000046}) (Method: 3) (Microsoft Transaction Server Internals Information: File: d:vipersrc
untimecontextccontext.cpp, Line: 2032)

Any idea what this means?

Error Creating Object
I have an application that uses an Oracle database and it's suddenly started giving Error 429, ActiveX Component Can't Create Object at this line:

Set OraSession = CreateObject("OracleInProcServer.XOraSession")

OraSession is an object.

The program was running fine for 2 years, and it's on a Win98 machine. I can't do a full install with setup because my development PC is now WinXP.

I really need to fix this. How do I determine which component is responsible for creating this object?

Thanks.
Dave

Error Creating An Object
Hi. I am a VC++ developer. This is the first time I'm using VB. I have a COM component which is not a control, that fires an event. In VB I want to catch this event so I created an object using WithEvents. I then do a new on the object but it's here that it complains when I run the app.
The code follows:

option Explicit
private withevents mEvent as MsgGrabber

private Sub Form_Load()
set mEvent = new MsgGrabber
End Sub

private Sub mEvent_MessageRetreived(byval bstr as string)
MsgBox "This is the string: " + bstr
End Sub

private Sub Send_Click()
mEvent.SendMessage ("Client string")
End Sub



MsgGrabber is my COM interface's implementation. The compiler complains on the Set statement. The error I get is:
Automation Error
The specified module could not be found.

Any help would be appreciated.

Error 249 : ActiveX Can't Create Object
hello
i had installed my application in a win98 and it works correctly except the reports (i had created them with Crystal Report 7). so i decided to install Crystal Report to search exactly the problem, after the install the application didn't work, and i had the Error 429: ActiveX Can't Create Object
i uninstalled Crystal Report and Re-installed the application but i had the same error.

PS : before the installation of application I installed MDAC_TYP 2.7
the first lines of the program is used to verify the existence of DataBase.what can i try know
thank you for hour suggestions

Error 429 ActiveX Can't Create Object
I am trying to open a word document so that I can paste values to it. I have code written as

Documents.Open FileName:="Base.doc", ConfirmConversion:=True, ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:=False, Format:=wdOpenFormatAuto

I have a similar configuration for an Excel worksheet which I am copying from. I have the reference set for Microsoft Word 10.0 , Excel 10.0 and DAO 3.6.

Every time I run it, it stops at the Word document and I get the Error 429 ActiveX can't create object.

I have run the same code as a macro and it works flawlessly.

Can someone tell me why this is happening?

Error 429: Activex Cannot Create Object
i created a setup file for my project that was developed in VB, then installed and run in some other system. it is giving the error 429: Activex Cannot create object. i have office'97 in the development system(Actually, im using MS-Access as a backend). but the target system has office'2000. i installed my application in some other system with office'97.
it is working fine. Could you tell me how to make my application run on any windows platform irrespective of presence of MS-Office.

Error 429 ActiveX Can't Create Object
I'm very new at this and having a problem. My program works fine on my computer by will not run on other systems...I keep getting the Run Time Error 429 "ActiveX Can't Create Object. I am using VB6, Windows XP Pro and trying to run the program on another Windows XP Pro machine. I have used code from open source that I don't understand and is probably causing the Run Time Error 429 but I don't understand how to fix the problem. I've attached the code and hope someone can help.

Thanks in advance.

~ Greg

Error 429 Activex Cannot Create Object
What is the solution for this error.

Error 429 - Can't Create Object Activex
Yeah..I know it is a common error that happens when something isn't registered right.

Here is the deal. I developed an app on my laptop (Windows XP home). It runs fine in the IDE and when I compile the dll and exe projects for it..they run as well (on the laptop). I took my files (.exe, .dll,.lib,.exp) to my Windows 2000 desktop pc and I get the 429 error. I tried registering the .dll file with regsvr32 and it sucessfully register, but I still get the error. What else could be going on?

Thanks!

Help - Error 429 ActiveX Can't Create Object
I downloaded a few programs from http://www.vbaccelerator.com/ but when I try to run them I get that '429' error. What is that about???

another one comes up with this:
can't find project or library

and goes to this part of the code:

Implements ISubclass

Error 429 - ActiveX Cannot Create Object
Hi All

I am having trouble with an FTP client program written in VB 6. It uses the winsock control to connect to an FTP site. The program itself works fine but I get the 'Error 429' message once installed on a client's machine.

I have installed it on Windows 98 (both versions) and tried installing VB6 runtime files, DCOM98 but to no avail.
It does work on one machine running Windows 98 second edition. I checked the winsock control (ocx) and it does differ from the one that comes with the program. I can only suspect that it has something to do with this.
(There are other fancy controls like a tree view and toolbar etc.)

I do not have any VB 6 service packs installed on my development machine. Would this make any difference?

Can anybody please offer some advice on how to resolve this error?

Thanks in advance.

Ritchie

Error 429: ActiveX Cannot Create The Object
This problem has been bugging me for a while now and would love any kind of imput on it.

Here is the problem:
I am creating a VB application that connects to QuickBooks using the Quickbooks SDK. It takes orders from a SQL server Database. I am using ADO to connect to the DB. Below is the code to do this.

References for project:
Visual Basic For Applications
Visual Basic runtime objects and procedures
Visual Basic objects and procedures
Microsoft ActiveX Data Objects 2.5 Library
gbFC1 1.1 Type Library

Components for project:
Microsoft ADO Data Control 6.0 (SP4) (OLEDB)


Private DB As adodb.Connection
Private RS As New adodb.Recordset

Set DB = New adodb.Connection

DB.Open "Driver={SQL Server};" & _
"server=IP_Address;" & _
"Address=IP_Address,1433;" & _
"Network=DBMSSOCN;" & _
"database=DB_name;" & _
"Uid=SQL_UID;" & _
"Pwd=SQL_Pwd;"

MySQL = "Select * FROM Table_Name where QuickBooks = 0"

RS.Open MySQL, DB, adOpenStatic, adLockOptimistic, dCmdText


I am only using the "Public Sub Main()" funtion. When the user clicks on the App.exe the file will run and display results, no user interacation is being used.


I am using the VB Package and Deployment wizard to create the setup.exe package. When I create it and run the setup.exe file on the machine the application was created on it installs without a problem and the app.exe runs error free. But when I run the setup.exe on another computer, the install goes fine but when I run the app.exe I always get the error "ActiveX component can't create object".

Please HELP!!!!!!!!!!!

Thanks beforehand.

ERROR 429, ActiveX Can&#039;t Create Object
Hi.
I have a problem of AutoEmail with Outlook Demonstration Project.
http://vb-world.net/demos/autoemail/
I am getting error which says:
"Runtime Error 429"
"ActiveX component can't create object"
when I try to activate program.
I believe this is because AutoEmail.exe is not registered.
So I have tried to register under RUN.(regsvr32 "CMydirAutoEmail.exe")
However, the program still gives me a following error.
c:mydirAutoEmail.exe was loaded but the dllRegisterServer entry point was not found
c:mydirAutoEmail.exe does not appear to be a .DLL or .OCX file

I would like you to help me how to run this AutoEmail sample.
Thank you very much.

Error: ActiveX Cannot Create Object
I am getting this message when I install my program on Windows 95 machines. It does not seem to be a problem when I install them on '98 machines.. My program uses database connectivity (DAO), so MDAC_TYP.EXE has been included when packaged with the P&DW. When running the install for my program, everytthing completes with no error messages. However, when i go to run my program i get that "ActiveX cannot create object message". I've tried several things. I tried downloading DCOM95 and installing it along with the newest version of MDAC_TYP to no avail..

Any ideas, anyone??

-jman

Error 429, Activex Can Create Object
Hello
I created a vb app and when I run this on my computer where it was created, it works fine. But I put it on any other computer, I get the error 429, activex can not create object.
The point where it seems to stop is on a Filesystem object that I am using. The fs object is declared globally. Any ideas on where to start checking for a problem. I have all references and components selected. This is in VB6.

Error 429, Activex Can Create Object
Hello
I created a vb app and when I run this on my computer where it was created, it works fine. But I put it on any other computer, I get the error 429, activex can not create object.
The point where it seems to stop is on a Filesystem object that I am using. The fs object is declared globally. Any ideas on where to start checking for a problem. I have all references and components selected. This is in VB6.

ActiveX Can't Create Object Error
Hi..



I have an ActiveX DLL component, when I create one of the objects from this DLL component from within ASP page using either server.CreateObject OR VBS's CreateObbject function, I get the error ActiveX Can't create the object.



Interestingly this error occurs when I open the ActiveX DLL project in VB and run it in debug mode before I run my ASP page. Actually I want to debug my DLL's code.



The moment I use compiled DLL, I get no error and everything works fine except I am not able to go into DLL code in debugging session.



I have given all access permissions to everyone, also my VB installation is on C dirve which is FAT not NTFS.still I get permisssion problem.



One thing might be useful in this, I have VS .NET Beta installtion as well on my PC, does it create any problem functioning VB6 on the same computer ?







Thanks for any help you ight extend on this







Rakesh
Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
Buy the best in Movies at http://www.videos.indiatimes.com
Now bid just 7 Days in Advance and get Huge Discounts on Indian Airlines Flights. So log on to http://indianairlines.indiatimes.com and Bid Now !

ActiveX Can Not Create Object , Error 429, Win 95
I get an error 429 when I upgrade to a newer version of software. For instance Version 3.1 of my sofware works and version 3.2 gives me the error. I have reinstalled vbrun5 and 6 and IE 5 .The controls are basicly the same in both versions, the skins are different and there are added functions.I don't know if that helps , just trying to supply as much info as possible. IBM Thinkpad 24 megs ram, older machine.

Activex Error- Can't Create Object
Hello,

I am using vb.net. I use vb scripting to get internet explorer to print html page. For that I use
CreateObject("InternetExplorer.Application"). Here in my machine it works fine all the time and I sent that to the customer who is running windows 2003 server. When they execute this exe occasionally they get :Activex Component Cannot be Cretaed" at this CreateObject().

I really appreciate your help.

Thanks a lot.

Error 429: Activex Cannot Create Object
i created a setup file for my project that was developed in VB, then installed and run in some other system. it is giving the error 429: Activex Cannot create object. i have office'97 in the development system(Actually, im using MS-Access as a backend). but the target system has office'2000. i installed my application in some other system with office'97.
it is working fine. Could you tell me how to make my application run on any windows platform irrespective of presence of MS-Office.

Server Busy Error In ActiveX Exe
I have a VB Activex Exe proj which shows a Modal Form. My VB App is called from an non VB App.
Every thing works fine except that my VB App seems not to be recognising the Ole.... properties which I set in the Class Initialize.

I set this properties because when the user move or clicks the form, the in famous Server Busy dialog box come up.

How else can I get rid of this irritant pls

This is what I have in my Class Initialize

Private Sub Class_Initialize()

App.OleRequestPendingMsgText = "The action"
App.OleRequestPendingMsgTitle = "KBC"
App.OleRequestPendingTimeout = 10000
App.OleServerBusyMsgText = "countinue..."
App.OleServerBusyMsgTitle = "KBC CTI"
App.OleServerBusyTimeout = 10000
App.OleServerBusyRaiseError = False

Load Form1

End Sub

ActiveX Server Error Messages
I have two VB programs. One is an ActiveX exe (server). It responds to a timer interrupt, does some computing and then raises an event if appropriate.

The client responds to the events.

My problem is that when the server traps an event it can't just raise it to the client since it doesn't know who the client is. Is there some way, I can set things up so that the server can send a message to the client saying an error has occurred?

Runtime Error 91: While Creating The Object
Hi,

The application which was written in VB 6.0 was running fine untill I installed the Oracle 9.207 OID/LDAP. After installing this ORacle peice software I am getting the error "Run-time error '91': Object variable or With block variable not set". When I click on the debug button it is pointing to the line of code where I am creating a object:
Set mOraSession = CreateObject("OracleInProcServer.XOraSession")

Please help me to correct the problem.

ADODB Error 429 Creating New Object
I am getting a runtime error 429 "ActiveX can't create object" on my own code, so I downloaded the AXDATA sample from the MSDN site. It gives me the same error on the following line of code...

Set cn = New ADODB.Connection

Obviously I must have something specific to my machine that is causing the problem. I looked for the obvious project references to see if I was missing the ADODB definition source, but I do have a reference to...

msado20.tlb MS ActiveX Data Objects 2.0 Library

So, what am I missing??

Timothy

Error 429: Activex Component Cannot Create Object.
My application run fine, but sometimes I have the error 429
(activex component cannot create object) in this line:

Set acApp = CreateObject("Access.Application.9") '******'

I can sometime execute the application 20 times before the error occur.

my code:
Dim acApp As Object
Set acApp = CreateObject("Access.Application.9")
Dim path As String
path = curdir & "WeightScale.mdb"
With acApp
.OpenCurrentDatabase path
.DoCmd.OpenQuery "UpdateNull"
.CloseCurrentDatabase
End With
Set acApp = Nothing
If chexbox.Value = Checked Then
Set acApp = CreateObject("Access.Application.9") '******'
With acApp
.OpenCurrentDatabase CurDir & "db2.mdb"
.DoCmd.OpenQuery "DelOldPO"
.CloseCurrentDatabase
End With
Set acApp = Nothing
End If

Please Help. (VB6.0 with sp 5.0)

ActiveX Component, Cant Create Object Error
Hey, i am having a little problem, i am writing an applcation to automate some wordperfect merge files.

for some reason when i do this:

Set objWP = New WordPerfect.PerfectScript

it has a tendency to freeze.. and give me an "ActiveX Component, cant create object" error

it does not freeze every time, just about 1/2 the time.

when it crashes it bring up the "switch to" / "retry" box first, before giving me this error..

any help would be great.

-Jason

Activex Component Canīt Create Object Error
hi!
I really need help here...
I have one application that uses access reports, and it must
run with msaccess97 or access2000 depending the users msoffice. It runs perfectly with access97 but with access2000
it gives me an 429 error "Activex component canīt create object"

in "Set acc = New Access.Application"

I have DAO 3.6 Object Library and Access 9.0 object library
references checked.

here is the code,
thanks in advance

Dim acc As Access.Application
Dim db As DAO.Database
Dim strDbName As String
CommonDialog1.ShowPrinter
strDbName = "C:Safirasafira.mdb"
Set acc = New Access.Application
Set db = acc.DBEngine.OpenDatabase(strDbName, False, False, ";PWD=Sporting")
acc.OpenCurrentDatabase strDbName
acc.DoCmd.OpenReport "Proposta"
db.Close: Set db = Nothing

Activex Component Can't Create Object Error ?
Hello;
I made setup package to install my program to client computer but after instalation on client computer program gives "Activex Component Can't create object" when try to run my app. I know miss some component to put my setup package or maybe there are corrupted component on it but i couldn't find which one.
How can i find missed or faulty component ?
Thanks

Error 429 - ActiveX Component Can't Create Object
I don't have this problem on my machine, but when testing the installation on another machine (well Virtual PC) i get the error:

Error 429 - ActiveX component can't create object

I know what this error means, but I don't know why I am getting it.

I have the following code in my MDIForm Load, which refers to a dll (vbsystraytools.dll) and after checking on Virtual PC, this dll is in the system32 folder and I assume it's registered (not quite sure how to check this).
BTW: lngSysTray is a registry value for the option of minimising to the system tray

Code:
'Declarations
Public WithEvents mobjSysTray As vbSysTrayTools.SysTray

'Form_Load
Set mobjSysTray = New vbSysTrayTools.SysTray
Set mobjSysTray.ImageList = imgMO

With mobjSysTray
.Icon = 1
.Menu.Add "Show", "SHOW"
.Menu.Add "Hide", "HIDE"
.EnableMenu = True
End With

If lngSysTray = 1 Then
mobjSysTray.Visible = True
Else
mobjSysTray.Visible = False
End If

Error 429 ActiveX Component Can't Create Object
I am using the following statement in VB 6.0 to create outlook object.

Set m_olapp = CreateObject("Outlook.Application")
Set m_nspNameSpacee=m_opApp.GetNamespace("MAPI")
Set m_olContacts=m_nspNameSpace.GetDefaultFolder(olFolderContacts).Items

On Vista if I run my application, it works fine as long as outlook itself is not open. If I open outlook and then run my application then I get "ActiveX component can't create object" message. I am using outlook 2007.

Can someone let me know what I am doing wrong?

Thanks in advance

Copyright Đ 2005-08 www.BigResource.com, All rights reserved