Hi,
How do I add a reference in VC++.NET?
In VB.NET and VC#.NET, there's an option in "Project" menu called "Add
Reference". This will add a .NET DLL reference to the current project. After
I add a reference, I can start using the class in the DLL as follows:
[VB]
Imports <TheNamespace>
Dim someobj As New <ClassName>
[VC#]
using <TheNamespace>
<ClassName> obj = new <ClassName>
Please note that this a namespace can be imported or used only after adding
the reference.
How do I similar kind of operation in VC++.NET? I want to use a DLL which
cannot be dropped on the form. It can only be used through code.
Please Help.
--
Sam 10 5050
You add the reference in the solution explorer References map and then put
using namespace <TheNamespace>
To instantiate an object use <ClassName>* obj = new <ClassName>.
"msnews.microsoft.com" <an******@gnostice.com> wrote in message
news:OJ**************@TK2MSFTNGP12.phx.gbl... Hi,
How do I add a reference in VC++.NET?
In VB.NET and VC#.NET, there's an option in "Project" menu called "Add Reference". This will add a .NET DLL reference to the current project.
After I add a reference, I can start using the class in the DLL as follows:
[VB] Imports <TheNamespace>
Dim someobj As New <ClassName>
[VC#] using <TheNamespace>
<ClassName> obj = new <ClassName>
Please note that this a namespace can be imported or used only after
adding the reference.
How do I similar kind of operation in VC++.NET? I want to use a DLL which cannot be dropped on the form. It can only be used through code.
Please Help.
-- Sam
> You add the reference in the solution explorer References map and then put using namespace <TheNamespace>
To instantiate an object use <ClassName>* obj = new <ClassName>.
or you can use following instruction:
#using <filename.dll>
Regards, Robert
"msnews.microsoft.com" <an******@gnostice.com> wrote in message news:OJ**************@TK2MSFTNGP12.phx.gbl... Hi,
How do I add a reference in VC++.NET?
In VB.NET and VC#.NET, there's an option in "Project" menu called "Add Reference". This will add a .NET DLL reference to the current project. After I add a reference, I can start using the class in the DLL as follows:
[VB] Imports <TheNamespace>
Dim someobj As New <ClassName>
[VC#] using <TheNamespace>
<ClassName> obj = new <ClassName>
Please note that this a namespace can be imported or used only after adding the reference.
How do I similar kind of operation in VC++.NET? I want to use a DLL
which cannot be dropped on the form. It can only be used through code.
Please Help.
-- Sam
Hi,
Thanks to both Michiel and Robert. I'll try both.
--
Sam.
"SunFire" <sf****@interia.pl> wrote in message
news:##**************@TK2MSFTNGP09.phx.gbl... You add the reference in the solution explorer References map and then
put using namespace <TheNamespace>
To instantiate an object use <ClassName>* obj = new <ClassName>.
or you can use following instruction: #using <filename.dll>
Regards, Robert
"msnews.microsoft.com" <an******@gnostice.com> wrote in message news:OJ**************@TK2MSFTNGP12.phx.gbl... Hi,
How do I add a reference in VC++.NET?
In VB.NET and VC#.NET, there's an option in "Project" menu called "Add Reference". This will add a .NET DLL reference to the current project. After I add a reference, I can start using the class in the DLL as follows:
[VB] Imports <TheNamespace>
Dim someobj As New <ClassName>
[VC#] using <TheNamespace>
<ClassName> obj = new <ClassName>
Please note that this a namespace can be imported or used only after adding the reference.
How do I similar kind of operation in VC++.NET? I want to use a DLL which cannot be dropped on the form. It can only be used through code.
Please Help.
-- Sam
Hye Michiel,
as you told in the prevous post, "You add the reference in the solution
explorer References map and then put", but I don't understand where is
References map in Solution Explorer???
Can you please throw some light on this aspect...
Jigar Mehta jb*******@yahoo.co.in
----------------------------------------
"Jigar Mehta" <jb*******@yahoo.co.in> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Hye Michiel, as you told in the prevous post, "You add the reference in the
solution explorer References map and then put", but I don't understand where is References map in Solution Explorer???
Can you please throw some light on this aspect...
Jigar Mehta jb*******@yahoo.co.in ----------------------------------------
When you create a new project such a map should have been appended to the
solution explorer tree-view (ctrl-alt-L, also under Views in your menu).
HTH,
Michiel.
Hi Michiel,
I still can't figure out how to add a .NET DLL to VC++.NET project. In the
Reference Map, there's no way to add a .NET DLL Reference.
Please explain.
--
Sam.
"Michiel" <mi*********@RECLAMEpayvision.com> wrote in message
news:#o**************@tk2msftngp13.phx.gbl... You add the reference in the solution explorer References map and then put
using namespace <TheNamespace>
To instantiate an object use <ClassName>* obj = new <ClassName>.
"msnews.microsoft.com" <an******@gnostice.com> wrote in message news:OJ**************@TK2MSFTNGP12.phx.gbl... Hi,
How do I add a reference in VC++.NET?
In VB.NET and VC#.NET, there's an option in "Project" menu called "Add Reference". This will add a .NET DLL reference to the current project. After I add a reference, I can start using the class in the DLL as follows:
[VB] Imports <TheNamespace>
Dim someobj As New <ClassName>
[VC#] using <TheNamespace>
<ClassName> obj = new <ClassName>
Please note that this a namespace can be imported or used only after adding the reference.
How do I similar kind of operation in VC++.NET? I want to use a DLL
which cannot be dropped on the form. It can only be used through code.
Please Help.
-- Sam
Did you switch to the .Net tab inside the Add Reference dialog ?
Btw, I'm using VS 2003.
"msnews.microsoft.com" <an******@gnostice.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl... Hi Michiel,
I still can't figure out how to add a .NET DLL to VC++.NET project. In the Reference Map, there's no way to add a .NET DLL Reference.
Please explain.
-- Sam.
"Michiel" <mi*********@RECLAMEpayvision.com> wrote in message news:#o**************@tk2msftngp13.phx.gbl... You add the reference in the solution explorer References map and then
put using namespace <TheNamespace>
To instantiate an object use <ClassName>* obj = new <ClassName>.
"msnews.microsoft.com" <an******@gnostice.com> wrote in message news:OJ**************@TK2MSFTNGP12.phx.gbl... Hi,
How do I add a reference in VC++.NET?
In VB.NET and VC#.NET, there's an option in "Project" menu called "Add Reference". This will add a .NET DLL reference to the current project. After I add a reference, I can start using the class in the DLL as follows:
[VB] Imports <TheNamespace>
Dim someobj As New <ClassName>
[VC#] using <TheNamespace>
<ClassName> obj = new <ClassName>
Please note that this a namespace can be imported or used only after adding the reference.
How do I similar kind of operation in VC++.NET? I want to use a DLL
which cannot be dropped on the form. It can only be used through code.
Please Help.
-- Sam
Hi Michiel,
There is no "Add Reference" choice/option in Visual C++.NET 2002 or 2003.
It's available only for the other languages(VB.NET, VC#.NET, etc). For
VC++.NET the "Add Reference" choice which is usually found under the
"Projects" Menu is not available.
--
Sam.
"Michiel" <mi*********@RECLAMEpayvision.com> wrote in message
news:Or**************@TK2MSFTNGP10.phx.gbl... Did you switch to the .Net tab inside the Add Reference dialog ? Btw, I'm using VS 2003.
"msnews.microsoft.com" <an******@gnostice.com> wrote in message news:ea**************@TK2MSFTNGP12.phx.gbl... Hi Michiel,
I still can't figure out how to add a .NET DLL to VC++.NET project. In
the Reference Map, there's no way to add a .NET DLL Reference.
Please explain.
-- Sam.
"Michiel" <mi*********@RECLAMEpayvision.com> wrote in message news:#o**************@tk2msftngp13.phx.gbl... You add the reference in the solution explorer References map and then put using namespace <TheNamespace>
To instantiate an object use <ClassName>* obj = new <ClassName>.
"msnews.microsoft.com" <an******@gnostice.com> wrote in message news:OJ**************@TK2MSFTNGP12.phx.gbl... > Hi, > > How do I add a reference in VC++.NET? > > In VB.NET and VC#.NET, there's an option in "Project" menu called
"Add > Reference". This will add a .NET DLL reference to the current
project. After > I add a reference, I can start using the class in the DLL as
follows: > > [VB] > Imports <TheNamespace> > > Dim someobj As New <ClassName> > > [VC#] > using <TheNamespace> > > <ClassName> obj = new <ClassName> > > Please note that this a namespace can be imported or used only after adding > the reference. > > How do I similar kind of operation in VC++.NET? I want to use a DLL
which > cannot be dropped on the form. It can only be used through code. > > Please Help. > > -- > Sam >
Well in my version there is :P Anyway, you _do_ have a references map in the
Solution Explorer ? You have to right-click on it.
"msnews.microsoft.com" <an******@gnostice.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Hi Michiel,
There is no "Add Reference" choice/option in Visual C++.NET 2002 or 2003. It's available only for the other languages(VB.NET, VC#.NET, etc). For VC++.NET the "Add Reference" choice which is usually found under the "Projects" Menu is not available.
-- Sam. "Michiel" <mi*********@RECLAMEpayvision.com> wrote in message news:Or**************@TK2MSFTNGP10.phx.gbl... Did you switch to the .Net tab inside the Add Reference dialog ? Btw, I'm using VS 2003.
"msnews.microsoft.com" <an******@gnostice.com> wrote in message news:ea**************@TK2MSFTNGP12.phx.gbl... Hi Michiel,
I still can't figure out how to add a .NET DLL to VC++.NET project. In the Reference Map, there's no way to add a .NET DLL Reference.
Please explain.
-- Sam.
"Michiel" <mi*********@RECLAMEpayvision.com> wrote in message news:#o**************@tk2msftngp13.phx.gbl... > You add the reference in the solution explorer References map and
then put > > using namespace <TheNamespace> > > To instantiate an object use <ClassName>* obj = new <ClassName>. > > "msnews.microsoft.com" <an******@gnostice.com> wrote in message > news:OJ**************@TK2MSFTNGP12.phx.gbl... > > Hi, > > > > How do I add a reference in VC++.NET? > > > > In VB.NET and VC#.NET, there's an option in "Project" menu called "Add > > Reference". This will add a .NET DLL reference to the current project. > After > > I add a reference, I can start using the class in the DLL as follows: > > > > [VB] > > Imports <TheNamespace> > > > > Dim someobj As New <ClassName> > > > > [VC#] > > using <TheNamespace> > > > > <ClassName> obj = new <ClassName> > > > > Please note that this a namespace can be imported or used only
after > adding > > the reference. > > > > How do I similar kind of operation in VC++.NET? I want to use a
DLL which > > cannot be dropped on the form. It can only be used through code. > > > > Please Help. > > > > -- > > Sam > > > >
OK...Got It! I was looking mostly at Visual Studio 2002. Looks like it's
available only in Visual Studio 2003. I am unable to find it in Visual
Studio 2002. Any idea how to add reference in VS2002?
Thanks,
--
Sam.
"Michiel" <mi*********@RECLAMEpayvision.com> wrote in message
news:ug**************@tk2msftngp13.phx.gbl... Well in my version there is :P Anyway, you _do_ have a references map in
the Solution Explorer ? You have to right-click on it.
"msnews.microsoft.com" <an******@gnostice.com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... Hi Michiel,
There is no "Add Reference" choice/option in Visual C++.NET 2002 or
2003. It's available only for the other languages(VB.NET, VC#.NET, etc). For VC++.NET the "Add Reference" choice which is usually found under the "Projects" Menu is not available.
-- Sam. "Michiel" <mi*********@RECLAMEpayvision.com> wrote in message news:Or**************@TK2MSFTNGP10.phx.gbl... Did you switch to the .Net tab inside the Add Reference dialog ? Btw, I'm using VS 2003.
"msnews.microsoft.com" <an******@gnostice.com> wrote in message news:ea**************@TK2MSFTNGP12.phx.gbl... > Hi Michiel, > > I still can't figure out how to add a .NET DLL to VC++.NET project.
In the > Reference Map, there's no way to add a .NET DLL Reference. > > Please explain. > > -- > Sam. > > "Michiel" <mi*********@RECLAMEpayvision.com> wrote in message > news:#o**************@tk2msftngp13.phx.gbl... > > You add the reference in the solution explorer References map and then put > > > > using namespace <TheNamespace> > > > > To instantiate an object use <ClassName>* obj = new <ClassName>. > > > > "msnews.microsoft.com" <an******@gnostice.com> wrote in message > > news:OJ**************@TK2MSFTNGP12.phx.gbl... > > > Hi, > > > > > > How do I add a reference in VC++.NET? > > > > > > In VB.NET and VC#.NET, there's an option in "Project" menu
called "Add > > > Reference". This will add a .NET DLL reference to the current project. > > After > > > I add a reference, I can start using the class in the DLL as follows: > > > > > > [VB] > > > Imports <TheNamespace> > > > > > > Dim someobj As New <ClassName> > > > > > > [VC#] > > > using <TheNamespace> > > > > > > <ClassName> obj = new <ClassName> > > > > > > Please note that this a namespace can be imported or used only after > > adding > > > the reference. > > > > > > How do I similar kind of operation in VC++.NET? I want to use a DLL > which > > > cannot be dropped on the form. It can only be used through code. > > > > > > Please Help. > > > > > > -- > > > Sam > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Brad Quinn |
last post by:
Is there a way to add an assembly to the .NET tab of
the "Add Reference" dialog?
|
by: Trevor Andrew |
last post by:
Hi There
I am having some difficulty referencing Web Services. I am using Visual Studio .NET 2003, with the .NET Framework 1.1, and trying to write a VB.NET Windows Application that consumes an...
|
by: Samuel R. Neff |
last post by:
I just started having a problem with the Add Reference dialog not
displaying in VS.NET 2003.
Whenever I click Add Reference the dialog doesn't display. I've tried
several different projects and...
|
by: Vuillermet Jacques |
last post by:
Hi !
In a project, in References, when I click on "Add... / Web reference...",
the following message occurs :
"Some of the files required for Web references are not installed."
I've...
|
by: SrDhUS |
last post by:
I get the following error when I try to add a web reference using Web
Reference Dialog (VS .Net 2003)
Error "The proxy settings on this computer are not configured correctly for
web discovery."...
|
by: Matthew.DelVecchio |
last post by:
hello,
i am working w/ a partner company's webservice, which they wrote in
java.
using a provided webservice.wsdl file, i am able to compile it into a
proxy class, webservice.dll. i can add...
|
by: Mike Logan |
last post by:
I used WSDL.exe to generate a client side web proxy for a web service, called
the web service, got the results but an array returned by the web service is
not in the results.
However if I use...
|
by: PJSimon |
last post by:
In regards to this MSDN article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;306149
.... how do I add the registry key? I got confused on three points:
1) I do not have a key...
|
by: abtandon |
last post by:
Hi,
I am using VS 2008 Team Suite for my ATL application, at one point I
needed to "Add web reference", but I found it disbaled. I used the
same application in VS 2005, but that was not the case...
|
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: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: 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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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,...
|
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...
| |