Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Installation / Documentation > Problem with OCX File Referencing a DLL File


Reply
 
Thread Tools Display Modes
  #1  
Old 12-10-2010, 12:17 AM
amitabhas amitabhas is offline
Newcomer
 
Join Date: Oct 2009
Posts: 3
Unhappy Problem with OCX File Referencing a DLL File


Dear All,

We are working on a scenario where we are integrating an SAP system with a weighbridge connected to the Serial Port of the presentation server. We are using OLE to achieve this. We have OLE Server object, an OCX file, which refers to a DLL file. The dll file houses all the codes and methods to communicate with the Serial Port, the OCX is just a wrapper to expose these. The OCX and DLL works perfectly in one machine, but somehow, in other machines, when we try to communicate to the OCX via OLE, it throws an error:"File Not Found: YYY.DLL" (YYY.DLL is the referenced DLL file name). But, there is no configuration difference in the machines. The steps we have followed to configure the machine is as follows:

1. Install VB 6
2. Put the OCX file in System32 folder
3. Register the OCX using command regsvr32 aaa.ocx (aaa.ocx is the OCX file name)

The OCX gets registered allright in both the machines, but in one machine it is working, in the others it throws the error mentioned above. We tried registering the DLL file itself using regsvr32 YYY.dll, but we get an error (in both the machines) that "DllRegisterServer Entry Point Not Found". Are we missing something in the configuration? Any ideas?

Thanks for Answering.

Sincere Regards,
Amitabha
Reply With Quote
  #2  
Old 12-10-2010, 01:17 AM
Flyguy's Avatar
Flyguy Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 18,882
Default

Were did you put "YYY.dll".
I bet it's not an ActiveX DLL, because of the AAA.ocx wrapper, so you can not register it.
For windows to find the YYY.dll you either need to place it in the system32 folder or in the application folder.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->