I am attempting to deploy a Powerbuilder 11.5 Application using SQLAnywhere on the back end. In the AQL Anywhere documentation after the required file list is the instruction to run the followng command

regsvr32 install-dirbin32dbodbc11.dll

I subsitute my directory that actually contains dbodbc11.dll.

regsvr32 install-dirmydirdbodbc11.dll

I get a Load failure message. Specified module could not be found.

  1. can anyone give me the correct syntax?
  2. Do I really need this utility to register the datasource or can I make the registry entries directly?

I am developing on Windows 7, but currently deploying to Windows XP Service pack 3.

Thanks very much, Melvyn Polatchek

asked 25 Aug '11, 14:19

MelvynP's gravatar image

MelvynP
90669
accept rate: 0%


While the documented syntax for regsvr32 is to use "regsvr32 /i dll", the /i argument is optional. I just tried it from the commandline without the argument and it works fine.

Sounds to me like there is still something wrong with your path or the set of included files, but you can skip the regsvr32 step altogether and create the registry entries yourself. Regsvr32 is just supposed to be a time saver for you. You can create the registry keys yourself instead.

permanent link

answered 26 Aug '11, 10:11

Bill%20Hillis's gravatar image

Bill Hillis
83637
accept rate: 66%

Are you deploying on a 64-bit machine?

If so, it's entirely possible you are trying to launch the 64-bit version of regsvr32 when the dll you are trying to register is 32-bit. In this case, you need to use the appropriate executable from the 32-bit SysWOW64 directory under windows:

%WINDIR%\SysWOW64\regsvr32.exe
permanent link

answered 25 Aug '11, 18:49

Tyson%20Lewis's gravatar image

Tyson Lewis
2.2k1641
accept rate: 22%

Melvyn,

What are you using to deploy your application and database with?? We have the same environment. PowerBuilder application with a SQL Anywhere database.

We are currently using one of the old WISE installers and are working on moving over to InstallAware.

Either way, you select to register the file when its installed, so it's handled under the covers for you on install.

You may want to look at your access rights under the profile you're trying to install the product to. I believe you still need to have administrative rights if you're going to be registering files.

You also might want to look at Microsoft's Dependency Walker. You can select your DLL's and make sure that all the required files are available on the machine you're trying to register the file on.

Let me know if you need some more detail on this.

HTH

Jeff Gibson
Intercept Solutions - Sybase SQL Anywhere OEM Partner
Nashville, TN

permanent link

answered 25 Aug '11, 18:51

Jeff%20Gibson's gravatar image

Jeff Gibson
1.4k284654
accept rate: 21%

Hi Tyson and Jeff, Thanks for responding. While I am developing on a 64 bit machine, the deployment target is the XP machine, so there is no conflict there. I do not have access to an installation program that will handle the registry for me and I would like to know how to do it even if I had such access.

I still think it is a matter of syntax. For instance, while the documented syntax is:

regsvr32 install-dirmydirdbodbc11.dll

When I type regsvr32 by itself, in the command window, I get a message indicating that switches are single letter as /i, /a, /u and they are preceded by a slash. I have tried various combinations, but have not found one that clicked. The /i, which is supposedly the install switch, tells me the dll was loaded, but the dll entry point cannot be found.

So my questions remain. 1. What is the proper syntax for this utility? 2. Can I simply make the entries in the registry directly?

The Powerbuildeer side of the documentation does not mention the regsvr utility and simply says to make the registry entries. However, the application does not find the database which is why I started looking into the SQL Anywhere documentation.

Thanks guys.

permanent link

answered 26 Aug '11, 09:48

MelvynP's gravatar image

MelvynP
90669
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×124

question asked: 25 Aug '11, 14:19

question was seen: 956 times

last updated: 26 Aug '11, 10:11