
12-10-2010, 12:17 AM
|
|
Newcomer
|
|
Join Date: Oct 2009
Posts: 3
|
|
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
|
|