Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Calling .class files frm a C# App


  • Please log in to reply

#1
Dsypher

Dsypher

    Member

  • Member
  • PipPip
  • 97 posts
Hi,

I want to load/call a ".class" file created using java from my C# Application. How can I create an object of that class file and use in my C# app.

Thanx
  • 0

Advertisements


#2
BuRnEr

BuRnEr

    Member

  • Member
  • PipPip
  • 48 posts
if you want to use components which are created other langugage than .net languages(C#,VB.net,J#,C++...), you have to create component and insert them in your applications as a component,
how it has to be done!!!!

actually there are two types component in .net environment you can use,
first type is com
second is .net

first type is you have to create your component in what language you desire in your case java as .exe,
your case you have C# application and you want to use that java component in your C# project to do so
in solution explorer right click on references and choose Add Reference... there is window pop up select COM tab and "browse" till find your java component than
select--->ok that component will be added your C# application, and it should be appear in ToolBox, sometime not...
i usually use it for add my perl component to my .net application,...

second type of components that you have to download specific components from web like microsoft and have to install it and than you go to in your application open solution explorer Add Reference window will pop up respectly and choose the .net tab find which component you want to use in your application select --> ok
it will be shown ToolBox list just use it, ofcourse never forget the add namespace to your application
this kind of components are really sophisticated components are created really high performance,,,
example MSXML4 (microsoft XML 4.0 created in C++) the purpose of this component is it helps online bank transactions(bank API), commonly use for e-commerce web applications

so i guess this ll be help you little bit about your quest.

take care
BuRnEr
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP