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.

can anyone give me the correct syntax?

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.

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.

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:

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.