Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Windows Service using Fujitsu Cobol for WIndows
We are converting from Micro Focus COBOL to Fujitsu because of the new
licensing fees.

We have a number of Windows Services (NT Services) and need to convert
them.

When I talked to Fujitsu, they said we could not convert them. Then,
we thought that we could write a Driver in C# (.Net) that would call
the Cobol program with "pinvoke"-

That works, except, when C# calls Cobol wwhich then calls Cobol- (both
Cobol being non .Net)- the second Cobol program does not retain in
Working Storage.

When I reported this to Fujitsu, they said "Yes, that is correct".

Has anyone been successful in getting Widnwos Sewrvices to run using
Fujitsu Cobol for Windows?

thanks for any information or help-


Report this thread to moderator Post Follow-up to this message
Old Post
AAD
03-19-07 11:55 PM


Re: Windows Service using Fujitsu Cobol for WIndows
"AAD" <anthonydyer@frontiernet.net> wrote in message
news:1174321250.534238.79410@l77g2000hsb.googlegroups.com...
> We are converting from Micro Focus COBOL to Fujitsu because of the new
> licensing fees.
>
> We have a number of Windows Services (NT Services) and need to convert
> them.
>
> When I talked to Fujitsu, they said we could not convert them. Then,
> we thought that we could write a Driver in C# (.Net) that would call
> the Cobol program with "pinvoke"-
>
> That works, except, when C# calls Cobol wwhich then calls Cobol- (both
> Cobol being non .Net)- the second Cobol program does not retain in
> Working Storage.
>
> When I reported this to Fujitsu, they said "Yes, that is correct".
>
> Has anyone been successful in getting Widnwos Sewrvices to run using
> Fujitsu Cobol for Windows?
>
> thanks for any information or help-
>

I wouldn't do it with pinvoke - use Interop Services and call your COBOL as
unmanaged code. (I have Fujitsu COBOL components that I activate in this
way). This works extremely well. I haven't tried getting COBOL to run as a
windows service, though in theory it should be fairly strightforward to set
up a windows service in C# and have that invoke your COBOL through Interop
Services.

Basically, wrap your COBOL .dll as a COM component (Fujitsu will do this for
you), then make that COM component known to C#  through the COM tab on the
Add Reference menu option in VS 2005. Once your project has the reference,
it has no difficulty in invoking the methods and properties of your COBOL
code. (All of the nterfacing through Interop Services is transparent; just
make sure you have Interop Services referenced in your project.) If you tell
the C# to run as a Windows service, I'm pretty sure it will, but I haven't
tried it.

I'm working on getting COBOL to run as a wrapped web service under ASP.NET
at the moment, but if I have some time I'll have a look at how a windows
service might be implemented.

Pete.



Report this thread to moderator Post Follow-up to this message
Old Post
Pete Dashwood
03-20-07 12:55 PM



Catherine Zeta Jone Throatjob!
http://Catherine-Zeta-Jone-Throatjo...hp?movie=148803

Report this thread to moderator Post Follow-up to this message
Old Post
Erencetard7
03-20-07 02:34 PM



Lindsay Lohan Doing A Hung Guy!
[url]http://Lindsay-Lohan-Doing-A-Hung-Guy.info/WindowsMediaPlayer.php?movie=148803[/ur
l]

Report this thread to moderator Post Follow-up to this message
Old Post
Fatinha
04-07-07 02:10 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:51 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.