Skip to main content
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:30 AM UTC

Uniface 9: URUN call-in not working any more?!

URUN call-in not working any more?!

Author: kevin.palm@labsolution.lu (palm.kevin)

Hi all,
I need to launch a Uniface form from an external C application (Both running on Windows 7).
In the Uniface documentation I found the information I needed to do such a 3GL operation: URUN.
I wrote a small C application to test this call (callin.c):

#include <h3gl.h>
void main (void)
{
 unifbeg(0);
 urun("PSCRIPT_PYT.frm", 0, 0, 0, 0);
 unifend(1);
}


To compile my application, I executed the following instructions:
cl  /c /I "C:\\Uniface94\\uniface\\3gl\\include" callin.c
link /OUT:"callin.exe" "/LIBPATH:C:\\Uniface94\\uniface\\3gl\\lib"  ucall.lib urtl.lib ulib.lib yrtl.lib callin.obj
 

 
The compilation and the linking worked both. Now when I execute the program callin.exe, I get the following error message:
The ordinal 574 could not be located in the dynamic link library ULIB.dll
I really don't understand this error:

  • URUN is NOT defined at ordinal 574 of ulib.dll, but at ordinal 41 of yrtl.dll ?!
  • At ordinal 574 in ULIB.dll is function "_uSql2Trx" ... ?!?

Can anybody provide some help on this topic?!

Best thanks beforehand,
Kevin Palm

Additional information concerning my system:

  • OS: Windows 7 (64 bit)
  • Uniface: 9.4.0.1 (32 bit)
  • C Compiler: Visual C++ (32 bit)

12 replies

Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:30 AM UTC

URUN call-in not working any more?!

Author: kevin.palm@labsolution.lu (palm.kevin)

Hi all,
I need to launch a Uniface form from an external C application (Both running on Windows 7).
In the Uniface documentation I found the information I needed to do such a 3GL operation: URUN.
I wrote a small C application to test this call (callin.c):

#include <h3gl.h>
void main (void)
{
 unifbeg(0);
 urun("PSCRIPT_PYT.frm", 0, 0, 0, 0);
 unifend(1);
}


To compile my application, I executed the following instructions:
cl  /c /I "C:\\Uniface94\\uniface\\3gl\\include" callin.c
link /OUT:"callin.exe" "/LIBPATH:C:\\Uniface94\\uniface\\3gl\\lib"  ucall.lib urtl.lib ulib.lib yrtl.lib callin.obj
 

 
The compilation and the linking worked both. Now when I execute the program callin.exe, I get the following error message:
The ordinal 574 could not be located in the dynamic link library ULIB.dll
I really don't understand this error:

  • URUN is NOT defined at ordinal 574 of ulib.dll, but at ordinal 41 of yrtl.dll ?!
  • At ordinal 574 in ULIB.dll is function "_uSql2Trx" ... ?!?

Can anybody provide some help on this topic?!

Best thanks beforehand,
Kevin Palm

Additional information concerning my system:

  • OS: Windows 7 (64 bit)
  • Uniface: 9.4.0.1 (32 bit)
  • C Compiler: Visual C++ (32 bit)

Hi Kevin,

I was able to see the same problem.

You might move the callin.exe to the common\\bin directory. Then the right ulib.dll can be found.

When you only start Uniface from your program, then you also can use windows function CreateProcess to start Uniface as a seperate program.

Kind regards,

Sjaak


Author: sjaak (sjaak.van.schie@uniface.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:30 AM UTC

URUN call-in not working any more?!

Author: kevin.palm@labsolution.lu (palm.kevin)

Hi all,
I need to launch a Uniface form from an external C application (Both running on Windows 7).
In the Uniface documentation I found the information I needed to do such a 3GL operation: URUN.
I wrote a small C application to test this call (callin.c):

#include <h3gl.h>
void main (void)
{
 unifbeg(0);
 urun("PSCRIPT_PYT.frm", 0, 0, 0, 0);
 unifend(1);
}


To compile my application, I executed the following instructions:
cl  /c /I "C:\\Uniface94\\uniface\\3gl\\include" callin.c
link /OUT:"callin.exe" "/LIBPATH:C:\\Uniface94\\uniface\\3gl\\lib"  ucall.lib urtl.lib ulib.lib yrtl.lib callin.obj
 

 
The compilation and the linking worked both. Now when I execute the program callin.exe, I get the following error message:
The ordinal 574 could not be located in the dynamic link library ULIB.dll
I really don't understand this error:

  • URUN is NOT defined at ordinal 574 of ulib.dll, but at ordinal 41 of yrtl.dll ?!
  • At ordinal 574 in ULIB.dll is function "_uSql2Trx" ... ?!?

Can anybody provide some help on this topic?!

Best thanks beforehand,
Kevin Palm

Additional information concerning my system:

  • OS: Windows 7 (64 bit)
  • Uniface: 9.4.0.1 (32 bit)
  • C Compiler: Visual C++ (32 bit)

Hi,

Some time ago I tested the same kind of situation and I got it working. Unfortunately I don't remember very much about it and I never had to use it.
I think I remember that it was very important to use a manifest file  "myappl.dll.manifest" (info from Compuware), otherwise it didn't work. Something like this:

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>

Regards RogerW.


Author: rogerw (roger.wallin@abilita.fi)