473,326 Members | 2,805 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,326 software developers and data experts.

no object in control

Ray
Hi folks,

I have two Vis Basic projects, one creates a dll, the other an ocx. I
compile them both. Then I drop the ocx activex object onto a Microsoft
Access 2002 form: it works fine. In another form, some code
instantiates the DLL object, and it runs fine.

Then I create an mde file from the mdb. The mde runs ok, and the ocx
and dll both work fine.

Then I copy the mde to another computer. I copy the ocx and the dll to
C:\Windows\system32 and register them both manually.

I run the mde (under Access 2003). The DLL works fine. The ocx gives
me a "no object in control". What am I doing wrong?

Thanks,

Ray
Nov 13 '05 #1
3 1659
Check References in the VB Editor, under Tools, on the original machine to
be certain that you copied the OCX to the proper location on the target
machine. Does the OCX require any additional files to function properly?

Jim Evans.
"Ray" <ra*@aic.net.au> wrote in message
news:9f**************************@posting.google.c om...
Hi folks,

I have two Vis Basic projects, one creates a dll, the other an ocx. I
compile them both. Then I drop the ocx activex object onto a Microsoft
Access 2002 form: it works fine. In another form, some code
instantiates the DLL object, and it runs fine.

Then I create an mde file from the mdb. The mde runs ok, and the ocx
and dll both work fine.

Then I copy the mde to another computer. I copy the ocx and the dll to
C:\Windows\system32 and register them both manually.

I run the mde (under Access 2003). The DLL works fine. The ocx gives
me a "no object in control". What am I doing wrong?

Thanks,

Ray

Nov 13 '05 #2
Thanks Jim. So just to clarify, does that mean that an OCX file in, say,
Windows\system32 on the development machine, MUST be in Windows\system32
on the target machines? (And no, the OCX doesn't need any other files.)

Does the OCX still need to be registered then? I obviously don't
understand the purpose of registering files! If you can recommend where
I could find out more about this vexed area, I would appreciate it.

Ray

*** Sent via Developersdex http://www.developersdex.com ***

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 13 '05 #3

"Ray Corbin" <ra*@aic.net.au> wrote in message
news:42**********@127.0.0.1...
Thanks Jim. So just to clarify, does that mean that an OCX file in, say,
Windows\system32 on the development machine, MUST be in Windows\system32
on the target machines? (And no, the OCX doesn't need any other files.)
Yes, unless you go to the references on the target machine and change the
reference to the new location.
Does the OCX still need to be registered then? I obviously don't
understand the purpose of registering files! If you can recommend where
I am no where being an expert in this area but I believe that it must be
registered to show up in the list of available references.

Jim Evans
I could find out more about this vexed area, I would appreciate it.

Ray

*** Sent via Developersdex http://www.developersdex.com ***

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms - Total Privacy via Encryption

=----
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pkpatel | last post by:
Hi, I keep getting this error every time I try to load crystalreportviewer on a webform with a dataset. Here is the error: -------------------------------------------------------- Server...
12
by: Sanjay | last post by:
hi, We are currently porting our project from VB6 to VB .NET. Earlier we used to make scale transformations on objects like pictureBox , forms etc.Now Such transformations are made on the...
9
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
1
by: Georg Scholz | last post by:
Hello, The class "Control" contains a documented Property "ControlType". So for example, in a form, you can write code like this: Dim c as control set c = me.Controls("textbox1") if...
1
by: Martine | last post by:
Hi there! I have a problem with programmatically adding user controls to my mobile webforms. If I load my usercontrol programmatically (in the Page_Load), the object is instantiated, I have...
9
by: Moe Sizlak | last post by:
Hi There, I am trying to write the selected value of a listcontrol when a button is clicked and I keep getting the error "object not set to a reference of an object". The libox itself is in a...
6
by: blash | last post by:
Can someone help me? I really don't have a clue. My company staff told me they often got such error: "Object reference not set to an instance of an object." when they are in search result page...
1
by: Reza Nabi | last post by:
Bakground: I have a webform (LoadCtl.aspx) which loads the user control to a placeholder dynamically based on the ctlName querystring passed in the URL. Webform (LoadCtl.aspx) also passes a...
12
by: Jim Hammond | last post by:
I am passing the whole object instead or parameters in my select and update methods. I can get the updated object if I set UpdateMethod, let ASP.NET autogenerate an update button, and then press...
15
by: Hamed | last post by:
Have I posted the message to wrong newsgroup? Or Does the question is so much strage? Would someone please kindly direct me to a true newsgroup or resource? Best Regards Hamed
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.