RDO 1.0 and VB4.0 16-bit 
Author Message
 RDO 1.0 and VB4.0 16-bit

I am running a Windows 95 computer.  I have a 16-bit application written
for Windows and I have a 16-bit DDE client that connects to it.  This
client also connects to a SQL server database via RDO to write data to
the database that it retrieves from the DDE server.

The ODBC driver is set up to point at the SQL Server, and the DSN is
"DNO_Databases".  I experienced a problem earlier when I had a space in
the DSN, which explains the underscore.

The problem is, the RDO piece is not working.  When I first wrote this
code, I was working with VB 4.0 32-bit version.  I moved the code into a
16-bit application and copied the files msrdo32.dll, msrdc32.ocx, and
msrdc32.oca files into my \\Windows\system directory.

When the application gets to this code, I get the error "Run-time error
429    OLE Automation server can't create object"

Here's the code.  I am glad to provide any further information.

_______________________________________________
szPddialogdsn = "DNO_Databases"

szUid = "user1"
szPwd = "fubar"

szConnectString = ""

rdoEnvironments(0).UserName = szUid
rdoEnvironments(0).Password = szPwd

'This is the line where it goes berserk
Set Cn = rdoEnvironments(0).OpenConnection(dsName:=szPddialogdsn, _
                               Prompt:=rdDriverNoPrompt, _
                               ReadOnly:=False, _
                               Connect:=szConnectString)
________________________________________________

Thanks for any help.



Sun, 21 Nov 1999 03:00:00 GMT  
 RDO 1.0 and VB4.0 16-bit

Hey, can RDO even be used in a 16-bit application?



Sun, 21 Nov 1999 03:00:00 GMT  
 RDO 1.0 and VB4.0 16-bit

Nope!!!
------------------
Dag Sunde
Softwarer Engineer
Orion Systems As
Oslo, Norway

Quote:
>Hey, can RDO even be used in a 16-bit application?



Sun, 21 Nov 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Calling 16 bit DLL from VB4 16 bit in Win 95

2. Russian(Cyrillic): vb4 32-bit works, but vb4 16-bit doesn't

3. Passthrough queries fail in 16-bit VB4, succeed in 32-bit

4. HELP: VB4-16 bit to VB5-32 bit problem

5. VB4.0 - 16 bit and 32 bit

6. VB4 16-bit vs 32-bit

7. VB4 16-bit vs 32-bit

8. Can VB4.0 32 Bit call a 16 bit DLL

9. 16 bit .dll's and 32 bit VB4

10. Vb4: 16-bit and 32-bit installation

11. VB4 (16 Bit) => VB5 (32 Bit)

 

 
Powered by phpBB® Forum Software