Animating MF COBOL DLLs 
Author Message
 Animating MF COBOL DLLs

Hi,
        Does anyone know to how to animate a MF COBOL DLL. I did RTFM and
check MF's website but came up with nothing. Also DISPLAY statements in
DLLs do not seem work either. DISPLAYs in the calling program work fine.
Any ideas.

Thank You for your time
Uday



Sun, 16 May 1999 03:00:00 GMT  
 Animating MF COBOL DLLs

Is that a DLL that you create with MF-Cobol? in this case delete the DLL
and you can animate your .INT



Mon, 17 May 1999 03:00:00 GMT  
 Animating MF COBOL DLLs


Quote:

>Is that a DLL that you create with MF-Cobol? in this case delete the DLL
>and you can animate your .INT

Yes It is a DLL I wrote.The DLL has more than one entry point and the
entry points accept multiple parameters. I was hoping that I will be able
to run a driver program that loads the DLL and calls the entry point and
I would get control in the animator in DLL program. Is this possible.?

Thanks for your help
Uday



Sun, 23 May 1999 03:00:00 GMT  
 Animating MF COBOL DLLs

Quote:



> >Is that a DLL that you create with MF-Cobol? in this case delete the DLL
> >and you can animate your .INT
> Yes It is a DLL I wrote.The DLL has more than one entry point and the
> entry points accept multiple parameters. I was hoping that I will be able
> to run a driver program that loads the DLL and calls the entry point and
> I would get control in the animator in DLL program. Is this possible.?

> Thanks for your help
> Uday

YES, it is possible. I have done something like this where my Windows 3.1
C front-end calls a Cobol .DLL.
Your driver program program must be compiled into an .EXE program (This
can be anything like C, VB or anything that compiles into an .EXE).
I am using MF cobol version 3.2.50. Your .DLL's must be compiled with the
GANIM compiler option. I am using the Xilerator that is included in the
Workbench. On the Windows commandline you just start the Xilerator with
the .EXE program and it will load the .DLL  into the de{*filter*}.
I needed to load the .DLL upfront by the front-end program to get it in
memory.
sample:   F:\MFO\COBWB\EXEDLL\XILW.EXE c:\coboldll\proj0000.exe

Hope this will help a bit.

Christo Stemmet
Cape Town
South Africa



Mon, 24 May 1999 03:00:00 GMT  
 Animating MF COBOL DLLs



Quote:



>YES, it is possible. I have done something like this where my Windows 3.1
>C front-end calls a Cobol .DLL.
>Your driver program program must be compiled into an .EXE program (This
>can be anything like C, VB or anything that compiles into an .EXE).
>I am using MF cobol version 3.2.50. Your .DLL's must be compiled with the
>GANIM compiler option. I am using the Xilerator that is included in the
>Workbench. On the Windows commandline you just start the Xilerator with
>the .EXE program and it will load the .DLL  into the de{*filter*}.
>I needed to load the .DLL upfront by the front-end program to get it in
>memory.
>sample:   F:\MFO\COBWB\EXEDLL\XILW.EXE c:\coboldll\proj0000.exe

>Hope this will help a bit.

>Christo Stemmet

Thanks for you help. I am working Windows 95 with MF COBOL 4.0.16. I
finally figured out the thing to do based on a hint provided by  someone
in this group. The steps are
1. Compile the programs with the ANIM option
2. Set the environment variable COBANIM_2=animate
3. Animate the .INT file of the driver not the exe.

Do you know how to capture the output that comes to the screen via the
DISPLAY statements to a file. DOS redirection does not work. The only way
I have bee able to do this is to use the compiler directive OUTDD (I
think this was OUT in the previous versions, the syntax diagram says OUT,
the heading says OUTDD in the manual, only OUTDD works). OUTDD however
restricts the name of the file tobe specified before hand. It would be
nice to be able to use the DOS redirection.

Thanks again
Uday



Thu, 27 May 1999 03:00:00 GMT  
 Animating MF COBOL DLLs


Quote:

> Do you know how to capture the output that comes to the screen via the
> DISPLAY statements to a file. DOS redirection does not work. The only way
> I have bee able to do this is to use the compiler directive OUTDD (I
> think this was OUT in the previous versions, the syntax diagram says OUT,
> the heading says OUTDD in the manual, only OUTDD works). OUTDD however
> restricts the name of the file tobe specified before hand. It would be
> nice to be able to use the DOS redirection.

I can't talk for MF 4, but earlier versions supported using stdout
with the S5 run-time switch - as long as you were using the shared
run-time.  You also need to have the switch in the COBSW environment
variable:

     SET COBSW=+S5
     RUNTHIS >redirect.fil

It also only works with DISPLAY .... UPON CONSOLE, though this is
the default for DISPLAY.

This is required when doing CGI to bang out HTML pages.



Sun, 30 May 1999 03:00:00 GMT  
 Animating MF COBOL DLLs


Quote:


>> Do you know how to capture the output that comes to the screen via the
>> DISPLAY statements to a file. DOS redirection does not work. The only way
>> I have bee able to do this is to use the compiler directive OUTDD (I
>> think this was OUT in the previous versions, the syntax diagram says OUT,
>> the heading says OUTDD in the manual, only OUTDD works). OUTDD however
>> restricts the name of the file tobe specified before hand. It would be
>> nice to be able to use the DOS redirection.

>I can't talk for MF 4, but earlier versions supported using stdout
>with the S5 run-time switch - as long as you were using the shared
>run-time.  You also need to have the switch in the COBSW environment
>variable:

>     SET COBSW=+S5
>     RUNTHIS >redirect.fil

>It also only works with DISPLAY .... UPON CONSOLE, though this is
>the default for DISPLAY.

>This is required when doing CGI to bang out HTML pages.

The switch exists even in MF COBOL 4.x. The documentation for the switch
mentions about redirection. I had looked at the switch settings documentation
earlier but kind of skipped this since the first few lines were talking
of ANSI compatible displays.

Thanks for the help.
Uday



Sun, 06 Jun 1999 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. MF Animate - calling DLL's

2. How to compile and link to C-DLL out of COBOL-DLL (MF)

3. mf cobol animate wide screen

4. mf cobol/animate/alt-f10 key on a hp/unix

5. mf cobol on unix using animate - wide screen

6. Calling MF COBOL-DLL from VB

7. Calling C++ DLL from MF COBOL

8. MF Cobol and OS/2 DLLs

9. REXX calling MF Cobol DLLs problem

10. MF Cobol and Windows NT DLLs

11. Releasing MF Cobol DLL

12. MF CObol and TCP/IP DLL?

 

 
Powered by phpBB® Forum Software