Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8085379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:05:47+00:00 2026-06-05T18:05:47+00:00

How would I get the main program to recognize that I have an outside

  • 0

How would I get the main program to recognize that I have an outside class that I need to refer to?

I have created a class “Hello”
and I need to refer to an instance of the class

private Hello hello1 = new Hello();

But when I write this code out, it does not recognize “Hello” to begin with..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:05:48+00:00Added an answer on June 5, 2026 at 6:05 pm

    If your hello class is in the same project with main program you can do it by just adding a using statement as raphael mentioned. If they are not on the same project first you should add reference of the project that includes hello class. Lets say you got 2 projects. 1 main (including your main program) second is hello project(including your hello class). In visual studio extend main project, right click to the references and select “add reference” then select the hello project.

    hope it was clear enough.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have: Main Program Class - uses Library A Library A - has partial
I've created this just to test things outside my main program. I got this
I have a program that has a MDI host and I would like to
How would get find an average from an array? If I have the array:
I'm looking for a method or an event that would get fired when a
I'm trying to write a recursive function that would get some string, as well
Before posting my question, I would like to tell you that I have no
I have a main application which dynamically loads a dylib , from inside that
I had to implement a C function in an Objective-C class that normally would
I have a header-file, the COM interface. I have created a small win32 program

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.