Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Cannot find entry point with NetCobol for .NET

Posted on 2004-10-14
5
Medium Priority
?
504 Views
Last Modified: 2008-01-09
I recently switched from using MicroFocus Personal Cobol to NetCobol for .NET. With .NET, I get an error code that states " JMN10026I-U  Cannot find entry point 'Lab2.2.Program1'. I am new to .NET, but this program compiles in Personal Cobol. Any ideas? I have my .cbl file and my resource file in the same folder, so I don't know why it can't find the entry point...

Thanks.
0
Comment
Question by:Pam_Baugh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 1

Expert Comment

by:jaguarul
ID: 12311973
I have no idea about COBOL, but how do you specify its entry point? its "main" function? it doesn't sound like a COBOL error, but rather an error of the .NET runtime which complains it cannot find your executable entry point.
0
 

Author Comment

by:Pam_Baugh
ID: 12312058
yes, exactly, but I don't know how .NET finds the entry point. The beginning of the program is in the Main function. Here's a little of the code. This is a classroom assignment....


       PROCEDURE DIVISION.
       Main.
           OPEN INPUT CookbookFile
           PERFORM PrintHeadings

           READ CookbookFile
               AT END move "Y" to EOFSwitch
               NOT AT END MOVE SPACES to CookbookDetailLine
                   MOVE CookbookGroupIn to CookbookGroupOut
                   MOVE CookbookGroupIn to DLCookbookGroup
           END-READ



         
0
 
LVL 1

Accepted Solution

by:
jaguarul earned 2000 total points
ID: 12312386
I think you should try to find something like "Startup Object", somewhere in the Solution (Project) Properties. It should provide a list of possible entry points.
0
 

Author Comment

by:Pam_Baugh
ID: 12312426
BINGO! Thanks:-)
0
 
LVL 1

Expert Comment

by:jaguarul
ID: 12312564
thanks aswell. good luck ;)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Simple Linear Regression
Introduction to Processes

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question