[Migrated content. Thread originally posted on 05 August 2011]
SI 2527714
Client has a query:
How to pass data (string or pic x(100) ) from Net Express .exe to Visual Cobol .dll and pass it back again. 
I cannot find a demo or sample that is readily available that shows how to do this. Does anyone know if there is a demo available that I can use to provide the client, instead of creating something from scratch(trying to)? I do not think it is too relevant that it has to be a Visual Cobol .dll , unless you know if this would cause problems.. please let me know if this is a bad practice.
Many thanks,
Kim
The two products use different COBOL runtimes, different COBOL runtime types, different C runtime and different licensing systems.
So having a Net Express .exe call a Visual COBOL .dll is opening yourself up to a world of pain and is not a recommended or tested scenario.
My recommendation is to make the Visual COBOL part an out of process COM component, which ensures both are running in different processes.
                
     
                                    
            [Migrated content. Thread originally posted on 05 August 2011]
SI 2527714
Client has a query:
How to pass data (string or pic x(100) ) from Net Express .exe to Visual Cobol .dll and pass it back again. 
I cannot find a demo or sample that is readily available that shows how to do this. Does anyone know if there is a demo available that I can use to provide the client, instead of creating something from scratch(trying to)? I do not think it is too relevant that it has to be a Visual Cobol .dll , unless you know if this would cause problems.. please let me know if this is a bad practice.
Many thanks,
Kim
Kim,
There is a sample of doing exactly this in the Library section of this Community forum.
Please look at:
Calling Visual COBOL .NET classes from Net Express native application
                
     
                                    
            [Migrated content. Thread originally posted on 05 August 2011]
SI 2527714
Client has a query:
How to pass data (string or pic x(100) ) from Net Express .exe to Visual Cobol .dll and pass it back again. 
I cannot find a demo or sample that is readily available that shows how to do this. Does anyone know if there is a demo available that I can use to provide the client, instead of creating something from scratch(trying to)? I do not think it is too relevant that it has to be a Visual Cobol .dll , unless you know if this would cause problems.. please let me know if this is a bad practice.
Many thanks,
Kim
Many thanks for the excellent replies, most appreciated!
                
     
                                    
            [Migrated content. Thread originally posted on 05 August 2011]
SI 2527714
Client has a query:
How to pass data (string or pic x(100) ) from Net Express .exe to Visual Cobol .dll and pass it back again. 
I cannot find a demo or sample that is readily available that shows how to do this. Does anyone know if there is a demo available that I can use to provide the client, instead of creating something from scratch(trying to)? I do not think it is too relevant that it has to be a Visual Cobol .dll , unless you know if this would cause problems.. please let me know if this is a bad practice.
Many thanks,
Kim
This link "Calling Visual COBOL .NET classes from Net Express native application" is broken.
                
     
                                    
            [Migrated content. Thread originally posted on 05 August 2011]
SI 2527714
Client has a query:
How to pass data (string or pic x(100) ) from Net Express .exe to Visual Cobol .dll and pass it back again. 
I cannot find a demo or sample that is readily available that shows how to do this. Does anyone know if there is a demo available that I can use to provide the client, instead of creating something from scratch(trying to)? I do not think it is too relevant that it has to be a Visual Cobol .dll , unless you know if this would cause problems.. please let me know if this is a bad practice.
Many thanks,
Kim
Here is the correct link:
community.microfocus.com/.../452.calling-visual-cobol-net-classes-from-net-express-native-programs.aspx
Regards,