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

  • SEARCH
  • Home
  • 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 6578187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:44:19+00:00 2026-05-25T15:44:19+00:00

I have three projects under another project of which each contains one namespace. Now

  • 0

I have three projects under another project of which each contains one namespace. Now among them I need to call a class which is under a namespace in visual studio 2008. Please don’t ask me to add the dependencies to the main project so that I can access the namespace and all the classes in that just like local namespace which I can’t do due to some restrictions. Tell me something like derived class concept so that I can access that class.

The LanguageTable class which I want to call is as follows:

#define GFX_LANGUAGE_MAX 20

namespace gfx_viewer_win32
{
  public ref class LanguageTable 
  {
  public:    
     static Dictionary<String ^, List<String ^>^> ^ language_string_table;
     static array<String ^> ^language_string_id;

     LanguageTable(void)
     {
     }
     ~LanguageTable(void)
     {
     }     
  };
}

The place from where i want to call LanguageTable class is as follows:

#pragma once
using namespace gfx_coder_prj_parser;

namespace Code_generator
{
public ref class CCodeGenerator : CCodeParserMultiLayer
    {
       CCodeGenerator(void)
       {
       }
       ~CCodeGenerator(void)
       {
       }
       /*============I want to call LanguageTable class from here==========*/
    };
}
  • 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-05-25T15:44:20+00:00Added an answer on May 25, 2026 at 3:44 pm

    If you don’t want to add the assembly of LanguageTable class as a reference, you can reach it by System.Reflection. First load the assembly and create an instance of LanguageTable and now you can call methods,access properties of it by searching for by their names like

    Assembly ^ langTableAssembly = Assembly::Load("assembly_name" or  binary_data_of_assembly  );
    object ^ langTable = langTableAssembly->CreateInstance("gfx_viewer_win32::LanguageTable", ...with_other_params);
    Type ^ langTableType = langTable->GetType();
    MemberInfo ^ langStringID = langTableType.GetMember("language_string_id")[0];
    MethodInfo ^ someMethod = langTableType.GetMethod("method_name");
    someMethod->Invoke(langTable, ...other_params);
    

    It is not a good approach though. It depends on the names, any change of the names (via refactoring etc.) you have to fix the code above. And I cannot say, this has the best performance.

    Lastly, once loaded, the assembly of LanguageTable will not be unloaded during the execution of program. If you wish to unload it, this is another story called “playing with Appdomains“.

    Here and here are some links to begin with.

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

Sidebar

Related Questions

I have a project which has shared functionality between three other projects and have
I have a project which was made under the Creative Commons licence (Attribution-NonCommercial) Now
I have three projects written with VB.NET (2005) and have to convert them to
I have three projects 1)unmanaged c++ containing full business logic 2)C++/CLI ( Project name
I'm working in VS 2008 and have three projects in one solution. I'm debugging
In one of my iPhone projects, I have three views that you can move
I have a project which is under source control via Star Team in VS
I have parent project parent, which has three modules like: <groupId>com.dummy.bla.bla</groupId> <artifactId>parent</artifactId> <version>1.0-SNAPSHOT</version> <packaging>pom</packaging>
Suppose I have three projects in my sln. (1) xyz.a{Class Lib}{no reference added} (2)
I am creating solution and inside I have three projects: A WCF Service Library

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.