Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1559

.NetCobol invoking C# - COBCH0845

$
0
0

I have a solution in VS named AllManaged.

It consists of 2 projects: CobolPrograms and CSharpPrograms.  (The VS book says that a project should not contain a mixture of languages.)

CobolPrograms contains 2 programs/classes: CobolMain and CobolSub.  Both are managed code.

CSharpPrograms contains 1 program/class: CSharpSub.  The NameSpace is CSharpPrograms.

All programs display their program name and “Hello World”.

CobolMain invokes CobolSub and CSharpSub.

 

When I compile the solution, I get error COBCH0845 in CobolMain saying “Unknown class ‘CSharpSub’”.

I have unsuccessfully tried the following:

. In CobolMain, I put in the ILUSING “CSharpPrograms” compiler directive.

. For Project CobolPrograms, I have added CSharpPrograms to the NameSpace Property.

. For Project CobolPrograms, I have added “C:\...\visual studio 2010\Projects\AllManaged\CSharpPrograms” to the Reference Paths Property.

 


Viewing all articles
Browse latest Browse all 1559

Latest Images

Trending Articles



Latest Images