Re: 32-bit Forms
Date: 1997/04/28
Message-ID: <01bc53a2$ae9a81e0$8c8765c1_at_babsi.horn-goerwitz.de>#1/1
Hi,
Answer to your 1st question:
You can use INI-Files under 32bit-windows too. Instead of using the
KRNL386.EXE-Functions you have to use the KERNEL32-Functions like the
following:
OLD
lh ORA_FFI.LIBHANDLETYPE := ORA_FFI.Register_Library('','KRNL386.EXE');
f1 ORA_FFI.FUNCHANDLETYPE :=
ORA_FFI.Register_Function(lh,'GetPrivateProfileString',ORA_FFI.PASCAL_STD);
f2 ORA_FFI.FUNCHANDLETYPE :=
ORA_FFI.Register_Function(lh,'WritePrivateProfileString',ORA_FFI.PASCAL_STD)
;
NEW
lh ORA_FFI.LIBHANDLETYPE := ORA_FFI.Register_Library('','kernel32');
f1 ORA_FFI.FUNCHANDLETYPE :=
ORA_FFI.Register_Function(lh,'GetPrivateProfileStringA',ORA_FFI.PASCAL_STD);
f2 ORA_FFI.FUNCHANDLETYPE :=
ORA_FFI.Register_Function(lh,'WritePrivateProfileStringA',ORA_FFI.PASCAL_STD
);
good look
edbis <edbis_at_pacific.net.sg> schrieb im Beitrag
<01bc518e$7abf6220$947418d2_at_ppp.ncs.com.sg>...
> Hi,
>
> I've developed a 16-bit application using Dev 2k for windows 1.3 and need
> to convert to 32-bit to run on win 95 and Win NT. The 16-bit application
> make use of foreign function like getprivatestring and setprivatestring
to
> read and write into an ini file. With the 32-bit function, I'm not able
to
> do this. I understand I would need to read and write to the registry
> instead. Appreciate if someone and tell me how can I do this. What
> function should I use.
>
> I also make use of cmdialog.vbx in the 16-bit application. Do I need to
> convert to cmdlg32.ocx for the 32-bit conversion? How should I begin?
>
>
> Thanks in advance....
>
>
> Loh Mun Kong
> Principle S/W Engineer
> National Computer System Pte Ltd
> mkloh_at_ncs.com.sg or munkong_at_edb.gov.sg
>
>
Received on Mon Apr 28 1997 - 00:00:00 CEST