Hi,
I am writing a simple graphics program to generate a Yin Yang logo. I need
to implement a flood fill routine and am trying to write a stack class in
C#. My main program is in VB.
My solution is called "Yin-Yang", containing the two projects.
My C# project is called coordstack with a class file in it called stack.cs.
This file contains a namespace called "coordstack " and a class, also called
"coordstack ". This is a class library.
My VB program is called "Yin-Yang", same as the solution. This is a windows
application.
How do I go about declaring a variable in my main VB program (a subroutine
in form1) of type "coordstack " which is in the C# project?
I want to say: Dim s as coordstack
I get an error: "type coordstack is not defined".
When I try an "imports coordstack" I get an error, "namespace or type
coordstack for the imports "coordstack " cannot be found.
Can someone show me the way?
I am using Visual Studio .Net, the one before 2005.
Thanks, Zeke 5 1308
compile your C# class into a .dll, then in your vb project, in the solution
explorer, add a reference to the C# dll you just compiled. at the top of your
code in VB, add the imports statement.
--
-iwdu15
Hello iwdu15,
It'll Probably be Imports Yin_Yang compile your C# class into a .dll, then in your vb project, in the solution explorer, add a reference to the C# dll you just compiled. at the top of your code in VB, add the imports statement.
how do you figure? the main program in Yin_Yang, which he is the importing
the C# file into the VB file. His C# class is named "stack" which means the
imports statement will be "Imports Stack"
--
-iwdu15
Zeke,
In addition to iwdu15
You can as well add the C# project to your current project.
Be sure that it is a DLL library project or change that in the properties.
Go to Project -> Add reference choose for project; than you see that in the
box
Select that and you are ready again.
I hope this helps,
Cor
"Zeke Zinzul" <ze**@shambolic a.demon.co.uk> schreef in bericht
news:e6******** ***********@new s.demon.co.uk.. . Hi,
I am writing a simple graphics program to generate a Yin Yang logo. I need to implement a flood fill routine and am trying to write a stack class in C#. My main program is in VB.
My solution is called "Yin-Yang", containing the two projects.
My C# project is called coordstack with a class file in it called stack.cs. This file contains a namespace called "coordstack " and a class, also called "coordstack ". This is a class library.
My VB program is called "Yin-Yang", same as the solution. This is a windows application.
How do I go about declaring a variable in my main VB program (a subroutine in form1) of type "coordstack " which is in the C# project?
I want to say: Dim s as coordstack
I get an error: "type coordstack is not defined".
When I try an "imports coordstack" I get an error, "namespace or type coordstack for the imports "coordstack " cannot be found.
Can someone show me the way?
I am using Visual Studio .Net, the one before 2005.
Thanks, Zeke
Hello iwdu15,
Because you dont import classes.. you import namespaces.
-Boo how do you figure? the main program in Yin_Yang, which he is the importing the C# file into the VB file. His C# class is named "stack" which means the imports statement will be "Imports Stack" This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Brandon J. Van Every |
last post by:
Is anyone using Python for .NET? I mean Brian's version at Zope, which
simply accesses .NET in a one-way fashion from Python.
http://www.zope.org/Members/Brian/PythonNet
Not the experimental ActiveState stuff, which tried to compile IL and
apparently didn't succeed.
Two motives for the question:
1) whether to use it for my C++ / C# / .NET / Python (?) game project. It's
a prototype, so in this context a "mostly working beta" is...
|
by: CM |
last post by:
Hi, there:
I have some questions, I hope someone can briefly describe how ASP (not
ASP.Net) to do the following things:
1) Get real-time information from other web site such as tracking via
Fed-Ex;
2) Real-time credit card charging via a payment gateway such as WorldPay;
|
by: typingcat |
last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so
on. I've tried many PHP IDEs today, but almost non of them supported
Unicode (UTF-8) file.
I've found that the only Unicode support IDEs are DreamWeaver 8 and
Zend PHP Studio.
DreamWeaver provides full support for Unicode. However, DreamWeaver is
a web editor rather than a PHP IDE. It only supports basic IntelliSense
(or code completion) and doesn't have anything...
|
by: Scott C. Reynolds |
last post by:
Hi.
I have created a templated control, and I want to know how i can set it
up so that the projects consuming it will have all the same intellisense
benefits of using any other server control. It will be used by multiple
projects.
|
by: Jason |
last post by:
Hi,
I was wondering if any could point me to an example or give me ideas on how
to dynamically create a form based on a database table? So, I would have a
table designed to tell my application to create certain textboxes, labels,
and combo boxes? Any ideas would be appreciated.
Thanks
| |
by: James Radke |
last post by:
Hello,
I have a multithreaded windows NT service application (vb.net 2003) that I
am working on (my first one), which reads a message queue and creates
multiple threads to perform the processing for long running reports. When
the processing is complete it uses crystal reports to load a template file,
populate it, and then export it to a PDF.
It works fine so far....
|
by: Rahul |
last post by:
Hi Everybody
I have some problem in my script. please help me. This is script file.
I have one *.inq file. I want run this script in XML files. But this
script errors shows . If u want i am attach this script
files and inq files. I cant understand this error. Please suggest me.
You can talk with my yahoo id b_sahoo1@yahoo.com. Now i am online.
Plz....Plz..Plz...
|
by: gunimpi |
last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431
********************************************************
VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help
wanted
********************************************************
For this teeny job, please refer to:
http://feeds.reddit.com/feed/8fu/?o=25
|
by: colemanj4 |
last post by:
Here is what I have so far, it loops while the PW is incorrect, or
until cancel is selected. I want it to lock the tables for adds,
deletes, and edits when cancel is selected, and if the PW is correct.
I want this to run when the DB is opened, I would also like the text
box to be starred (*) out when text is input.
Thanks for your help.
==============================
|
by: hcaptech |
last post by:
This is my Test.can you help me ?
1.Which of the following statement about C# varialble is incorrect ?
A.A variable is a computer memory location identified by a unique name
B.A variable's name is used to access and read the value stored in it
C.A variable is allocated or deallocated in memory during runtime
D.A variable can be initialized at the time of its creation or later
2. The.……types feature facilitates the definition of classes...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |