32-bit MF COBOL DLL calling from VB4 
Author Message
 32-bit MF COBOL DLL calling from VB4

Pls, help
I am trying to get VB4 to call MF cobol in 32-bit land. I cannot seem to
get the stack correct.  Parameters are not getting in and on return we get
a junp to the unknown.
Does anyone knows the compile/link options to get this to work? We have
been using CALLING-CONVENTIONS 3, 67
Doug



Fri, 02 Apr 1999 03:00:00 GMT  
 32-bit MF COBOL DLL calling from VB4

Quote:

>Pls, help
>I am trying to get VB4 to call MF cobol in 32-bit land. I cannot seem to
>get the stack correct.  Parameters are not getting in and on return we get
>a junp to the unknown.
>Does anyone knows the compile/link options to get this to work? We have
>been using CALLING-CONVENTIONS 3, 67

I have the same problem using calling-convention 74. Doing a dll using
MFCobol seens nearly impossibile.

I have do an attempt to create an OLEServer using VisualObject Cobol,
but even the sample in the compiler doesn't work.

I have fount another solution.  I have built an exe in MFCobol that
get parameters from command line then write the result to a temporary
file.  VB can run this program using CreateProcess and
WaitForSingleObject and read back the data in the temporary file.

It's ugly but it's work !!!!

################################################
# Roberto Paterlini                            #
# Reggio Emilia - Italy                        #

#==============================================#
#          Don't worry, be happy!!!!           #
#==============================================#
#       PATSoft - Shareware per Windows        #
#    Archivio Softeca - TTBase Font Manager    #
#          http://www.bns.it/patsoft/          #
################################################



Thu, 08 Apr 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problems in calling Fortran DLLs from VB4 32-bit

2. Calling 32-bit FORTRAN dlls from 32-bit VB

3. Calling 32-bit DLLs from 16-bit code

4. Building 32 bit DLL from 32 bit EXE

5. building MF DLLs in 32 bit

6. Loading a 32-Bit DLL into a 16-Bit DLL

7. 32 Bit ASM from 32 Bit Windows COBOL

8. 32 Bit ASM from 32 Bit Windows COBOL

9. 32-bit (NT) compiler for MF COBOL

10. Vendo MF Object Cobol E Dialog System 32 Bit

11. MF-Cobol 32(bit) and Crystal Report 5.0

12. Building dll in MF Cobol 4.0.32

 

 
Powered by phpBB® Forum Software