Hello,
I have code in a C# file which I want to call the class within from a VB
DotNet form. The code is from http://www.dnzone.com/ShowDetail.asp?NewsId=223. I am a more of a Delphi and
web developer.
I tried using "Imports" but didn't show up when doing the dot operator
thing.
Thanks for any assistance!!!
Kevin 12 1912
You first have to build the C# code in its own project into a *.dll file and
then you set reference to it in the calling VB.NET project. You cannot use
different language in the same project.
"ke*************@state.or.us" <Ke***************@state.or.us> wrote in
message news:uM**************@TK2MSFTNGP12.phx.gbl... Hello,
I have code in a C# file which I want to call the class within from a VB DotNet form. The code is from http://www.dnzone.com/ShowDetail.asp?NewsId=223. I am a more of a Delphi
and web developer.
I tried using "Imports" but didn't show up when doing the dot operator thing.
Thanks for any assistance!!! Kevin
You first have to build the C# code in its own project into a *.dll file and
then you set reference to it in the calling VB.NET project. You cannot use
different language in the same project.
"ke*************@state.or.us" <Ke***************@state.or.us> wrote in
message news:uM**************@TK2MSFTNGP12.phx.gbl... Hello,
I have code in a C# file which I want to call the class within from a VB DotNet form. The code is from http://www.dnzone.com/ShowDetail.asp?NewsId=223. I am a more of a Delphi
and web developer.
I tried using "Imports" but didn't show up when doing the dot operator thing.
Thanks for any assistance!!! Kevin
Put the C# file into another project (class library) and add a project
reference in the VB.NET web app. You cannot mix languages in a single
project (at least not until VS.NET 2005).
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************** *************
Think outside the box!
************************************************** *************
"ke*************@state.or.us" <Ke***************@state.or.us> wrote in
message news:uM**************@TK2MSFTNGP12.phx.gbl... Hello,
I have code in a C# file which I want to call the class within from a VB DotNet form. The code is from http://www.dnzone.com/ShowDetail.asp?NewsId=223. I am a more of a Delphi
and web developer.
I tried using "Imports" but didn't show up when doing the dot operator thing.
Thanks for any assistance!!! Kevin
Put the C# file into another project (class library) and add a project
reference in the VB.NET web app. You cannot mix languages in a single
project (at least not until VS.NET 2005).
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************** *************
Think outside the box!
************************************************** *************
"ke*************@state.or.us" <Ke***************@state.or.us> wrote in
message news:uM**************@TK2MSFTNGP12.phx.gbl... Hello,
I have code in a C# file which I want to call the class within from a VB DotNet form. The code is from http://www.dnzone.com/ShowDetail.asp?NewsId=223. I am a more of a Delphi
and web developer.
I tried using "Imports" but didn't show up when doing the dot operator thing.
Thanks for any assistance!!! Kevin
Thanks Norm!
"Norman Yuan" <no********@RemoveThis.shaw.ca> wrote in message
news:KzZec.107970$Ig.94883@pd7tw2no... You first have to build the C# code in its own project into a *.dll file
and then you set reference to it in the calling VB.NET project. You cannot use different language in the same project.
"ke*************@state.or.us" <Ke***************@state.or.us> wrote in message news:uM**************@TK2MSFTNGP12.phx.gbl... Hello,
I have code in a C# file which I want to call the class within from a VB DotNet form. The code is from http://www.dnzone.com/ShowDetail.asp?NewsId=223. I am a more of a Delphi and web developer.
I tried using "Imports" but didn't show up when doing the dot operator thing.
Thanks for any assistance!!! Kevin
Thanks Norm!
"Norman Yuan" <no********@RemoveThis.shaw.ca> wrote in message
news:KzZec.107970$Ig.94883@pd7tw2no... You first have to build the C# code in its own project into a *.dll file
and then you set reference to it in the calling VB.NET project. You cannot use different language in the same project.
"ke*************@state.or.us" <Ke***************@state.or.us> wrote in message news:uM**************@TK2MSFTNGP12.phx.gbl... Hello,
I have code in a C# file which I want to call the class within from a VB DotNet form. The code is from http://www.dnzone.com/ShowDetail.asp?NewsId=223. I am a more of a Delphi and web developer.
I tried using "Imports" but didn't show up when doing the dot operator thing.
Thanks for any assistance!!! Kevin
Thanks Cowboy!
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote
in message news:eo**************@TK2MSFTNGP09.phx.gbl... Put the C# file into another project (class library) and add a project reference in the VB.NET web app. You cannot mix languages in a single project (at least not until VS.NET 2005).
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************** ************* Think outside the box! ************************************************** ************* "ke*************@state.or.us" <Ke***************@state.or.us> wrote in message news:uM**************@TK2MSFTNGP12.phx.gbl... Hello,
I have code in a C# file which I want to call the class within from a VB DotNet form. The code is from http://www.dnzone.com/ShowDetail.asp?NewsId=223. I am a more of a Delphi and web developer.
I tried using "Imports" but didn't show up when doing the dot operator thing.
Thanks for any assistance!!! Kevin
Thanks Cowboy!
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote
in message news:eo**************@TK2MSFTNGP09.phx.gbl... Put the C# file into another project (class library) and add a project reference in the VB.NET web app. You cannot mix languages in a single project (at least not until VS.NET 2005).
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************** ************* Think outside the box! ************************************************** ************* "ke*************@state.or.us" <Ke***************@state.or.us> wrote in message news:uM**************@TK2MSFTNGP12.phx.gbl... Hello,
I have code in a C# file which I want to call the class within from a VB DotNet form. The code is from http://www.dnzone.com/ShowDetail.asp?NewsId=223. I am a more of a Delphi and web developer.
I tried using "Imports" but didn't show up when doing the dot operator thing.
Thanks for any assistance!!! Kevin
Thanks Tian for the links and intel!
"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:1t*************@cpmsftngxa06.phx.gbl... Hi Kevin,
Thanks for your post. As suggested by Norman and Gregory, you will need to put C# file in a separate project (class library). In addition, please refer to the following MSDN articles for the sample and detailed information:
Cross-Language Inheritance http://www.vbip.com/books/1861004915...er_4915_12.asp
C# and the .NET Platform - Chapter 6 http://www.codeproject.com/books/1893115593_6.asp
Hope this helps.
Regards,
HuangTM Microsoft Online Partner Support MCSE/MCSD
Get Secure! -- www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights.
Thanks Tian for the links and intel!
"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:1t*************@cpmsftngxa06.phx.gbl... Hi Kevin,
Thanks for your post. As suggested by Norman and Gregory, you will need to put C# file in a separate project (class library). In addition, please refer to the following MSDN articles for the sample and detailed information:
Cross-Language Inheritance http://www.vbip.com/books/1861004915...er_4915_12.asp
C# and the .NET Platform - Chapter 6 http://www.codeproject.com/books/1893115593_6.asp
Hope this helps.
Regards,
HuangTM Microsoft Online Partner Support MCSE/MCSD
Get Secure! -- www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Asapi |
last post by:
1. Are linkage convention and calling convention referring to the same
thing?
2. Does calling convention differ between languages C and C++?
3. How does calling convention differ between...
|
by: Muthu |
last post by:
I've read calling conventions to be the order(reverse or forward) in
which the parameters are being read & understood by compilers.
For ex. the following function.
int Add(int p1, int p2, int...
|
by: Klaus Friese |
last post by:
Hi,
i'm currently working on a plugin for Adobe InDesign and i have some
problems with that. I'm not really a c++ guru, maybe somebody here has
an idea how to solve this.
The plugin is...
|
by: Nick Flandry |
last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my
development environment (Win2K server running IIS 5) and a test environment (also Win2K server
running IIS...
|
by: Mike |
last post by:
Timeout Calling Web Service
I am calling a .NET 1.1 web service from an aspx page. The web service can
take several minutes to complete its tasks before returning a message to the
aspx page.
...
|
by: Geler |
last post by:
A theoretical question: Sorry if its a beginner question.
Here is a quote from the MSDN explaning the C/C++ calling convention.. It
demonstrates that the calling function is responsible to clean...
|
by: teju |
last post by:
hi,
i am trying 2 merge 2 projects into one project.One project is using c
language and the other one is using c++ code.
both are working very fine independently.But now i need to merge both...
|
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= |
last post by:
I have a C# logging assembly with a static constructor and methods that is
called from another C# Assembly that is used as a COM interface for a VB6
Application. Ideally I need to build a file...
|
by: sulekhasweety |
last post by:
Hi,
the following is the definition for calling convention ,which I have
seen in a text book, can anyone give a more detailed explanation in
terms of ANSI - C
"the requirements that a...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |