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/ #
################################################