[Message Deleted]
-
-
-
yes i want to have vb.net and c# in one project.would u please tell me what i should write in my project which is in c# to call a function in my another project which is in vb? if u help me that is very kind of u.
Hi, A .NET app can instantiate objects and call on its public methods and properties, independent of what CLR language is used. Just add a reference to the DLL you want to use, add a using statement (app=C#) or an Imports statement (app=VB.NET) and use the types as if they were in your app's language. A .NET app can call upon unmanaged code (as in VB, not VB.NET) by using P/Invoke, which may be rather easy up to very difficult depending on the kinds of data that need to be marshaled. :)
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
-
Hi, A .NET app can instantiate objects and call on its public methods and properties, independent of what CLR language is used. Just add a reference to the DLL you want to use, add a using statement (app=C#) or an Imports statement (app=VB.NET) and use the types as if they were in your app's language. A .NET app can call upon unmanaged code (as in VB, not VB.NET) by using P/Invoke, which may be rather easy up to very difficult depending on the kinds of data that need to be marshaled. :)
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets