Re: Informix/DOS and Visual C (MSC 8)
Posted in 1993
Topics: Error Codes & Troubleshooting
In article <bobbCCMw6J.LJ3@netcom.com>, bobb@netcom.com (Bob Beaulieu) writes: |> In article <CCM7L6.LM1@hact1.hact.de> marcus@marcus.hact.de (Marcus Kallabis ) writes: |> >It is possible to generate Informix 4.1 Applications for MS-DOS |> >with VisualC (Microsoft C 8) ? |> |> Yes |> |> > |> >What is necessary (which Compiler/Linker Options) to do this ? |> |> You need to link in OLDNAMES.LIB. |> |> See Release Notes... |> |> Bob Beaulieu |> > |> >Thank you in advance |> > |> >Marcus I'm linking with oldnames.lib. I try to run the Informix "wdemo" Windows Demo. It compiles without an error. But it don't run correct. My problem looks like this: ... ... if (SQLCODE != 0) ERROR; else OK; ... ... the debugger says SQLCODE = -349, but he steps to OK. I changed "SQLCODE" to "sqlca.sqlcode", but the same effect. Compiling with MSC 7 solve the problem. Also, i write a Windows 3.1 application (MSC 7) and the first call of an Informix function produce a General Protection Fault. This happens when i run "remsql" (remote DB). I try it with "pstartsq" (local DB) and it run correct. Thanks for any hints, Marcus +--+ +--+ +--+| +--+| Marcus Kallabis | |+-| || | +--+ || Halstenbach ACT GmbH Telefon.: +49 2261 72051 HALSTENBACH Breidenbrucherstr. 2 Fax.....: +49 2261 72054 | +--+ || | |+ | |+ D 51674 Wiehl-Bomig email...: marcus@hact.hact.de +--+ +--+