Call 16bit ODBC API from VB5 32bit 
Author Message
 Call 16bit ODBC API from VB5 32bit

For reasons that would take to long to explain, I need to right a 32bit VB
app that can connect to a 16bit ODBC datasource.  I have written the API
code using ODBC.DLL (it works great with ODBC32.DLL), but when I run the VB
App I get an error message that says it cant find ODBC.DLL.  The DLL exists
in the correct path so I dont think it's really not found, I think this is a
general 'cant load the DLL message'.

So, does anyone know if you can call 16bit DLL functions from
VB5 32bit?  And how?

Thanks,
Lance Thompson



Mon, 01 Jan 2001 03:00:00 GMT  
 Call 16bit ODBC API from VB5 32bit
If you are sure this is what you want to do, one option is to create a
16bit ole sever that wraps the 16 bit dll



Quote:
> For reasons that would take to long to explain, I need to right a 32bit
VB
> app that can connect to a 16bit ODBC datasource.  I have written the API
> code using ODBC.DLL (it works great with ODBC32.DLL), but when I run the
VB
> App I get an error message that says it cant find ODBC.DLL.  The DLL
exists
> in the correct path so I dont think it's really not found, I think this
is a
> general 'cant load the DLL message'.

> So, does anyone know if you can call 16bit DLL functions from
> VB5 32bit?  And how?

> Thanks,
> Lance Thompson



Tue, 02 Jan 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help needed with 16bit to 32bit API calls migration (using VB 4.0)

2. Q: 16bit API -> 32bit API

3. VB5 Question about CreateProcess 32bit API call

4. 16bit ODBC in VB4.0 (32bit)

5. Accessing 32bit Access from a 16bit VB app using ODBC

6. 16bit ODBC in 32bit progs

7. 16bit->32bit C dll : bad dll calling convention

8. Need sample of Thunk code to call 16bit from 32bit Comm functions

9. Calling 16bit functions from 32bit VB

10. Can 32bit C call 16bit VBX?

11. calling 16bit dll from 32bit application

12. Calling 32bit DLL from 16bit apps

 

 
Powered by phpBB® Forum Software