Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a new version of a dll-file (ActiveX-Component) to VFP for creating 2D-barcodes fails

Status
Not open for further replies.

ManniB

Programmer
Nov 9, 2020
113
DE
Hi,

for creating 2D-Barcodes in VFP like QR-Code and Datamatrix I have implenented a dll-file (an ATL ActiveX component) called XBarCodePro.dll into VFP (their webseite: I implemented it by first registering the file with a batch-command using regsvr32. Then I added it to VFP via Options -> Controls -> ActiveX Controls and added the xbarcodepro.dll file to the list and checkmarked it. Afterwards I could add barcode-objects to my forms. It worked well, but now I have to use an updated version of the dll-file, because there were some issues with the datamatrix-Barcode. So I received a new xbarcodepro.dll file. It also comes with a new .lib-file for the license.

After unregistering the old dll-file via a "regsvr32 /u" command and registering the new one with regsvr32 command, I tried to add the new file to vfp again via options -> controls. But when choosing the new dll-file, there appears an error message that the "file does not exist"!? Even though I used the add-button, chose libraries as file type and could select the dll-file.

Any ideas on how I can make the new version of the xbarcodepro.dll file work in VFP?

Manni
 
The only reason making sense for the "file does not exist" message is, if the DLL is in a path containing a space. Then the part o the file name up to the first space is taken as the file name and, well, likely that does not exist.

Chriss
 
Hi Chris,

thank you for your answer. I found out that the new version of the ActiveX DLL file is a 64-bit. The old one, which was working, was a 32-Bit DLL. I contacted the vendor to send me a 32-Bit dll and hope it will then be working, again.

To my understanding, it is never possible to incorporate a 64-bit COM Server DLL file into VFP, right?
 
You could only use a 64bit COM-Server that's within an EXE and is used out-of-process, but not a DLL, that's right.

Chriss
 
Ok thanks, then that was the reason for the weird message "file does not exist".

Manni
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top