Quote:
>Please let me know if any of my assumptions are wrong:
>-I cannot run a 32-bit dll from a 16-bit VB4 program
>-I cannot run a 16-bit dll from a 32-bit VB4 program
Looks right.
Quote:
>I have a 16-bit program that I need to convert to 32-bit. Simple. I just run
>the VB4-32-bit version, replace my dll with the 32-bit version and open my
>project. But it doesn't work. Says it can't load dll (run-time error 48 -
>error in loading dll). What is the problem?
You cannot use a 16-bit DLL from within a 32-bit program. It's that
easy.
Either get a 32-bit version of that DLL, don't upgrade the program to
32-bit (I have my doubts that "upgrade" even is the correct
terminology... ;-), or use thunking.
You could create an OLE server in VB/16 that calls the DLL, and get your
requests through this external applet , from within your VB/32 program.
There are some docs available somewhere on Internet describing the
how... but I forgot where. I've not done this, so far, myself.
HTH,
Bart.