473,378 Members | 1,383 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

IDE basics question

I need to use Visual Basic to create an ActiveX DLL that
subclasses an Access form (cf. Knowledge Base Article
278379). Should I use Visual Studio .NET --or-- regular
Visual Basic 6 --or-- VS.NET 6... something else? what's
the diff?? is VS.NET only for creating managed code?
Jul 21 '05 #1
10 1358
Cor
Hi deko

C# and VB.net are for managed code and you can make that with C++
C++ is also for unmanged code in VS.net.

Cor
Jul 21 '05 #2
>Should I use Visual Studio .NET?

You can not create ActiveX anything with .NET.
or regula Visual Basic 6?
If you truley want to build an ActiveX DLL, then this would be your
place to do it.

or VS.NET 6?
There is no such thing. VS.NET is the next generation of Microsofts
Visual Studio brand but it is not built upon the same architecture and is a
completely different animal.

... something else? what's the diff?? is VS.NET only for creating

managed code?

Ah, now that is the question! Anything built with .NET is managed code and
you can not use .NET to build (emphasis on build) unmanaged code (COM). You
can build an application with .NET that calls unmanaged code, but you can
not build unmanaged code with .NET.

In genera, using .NET over its predicessor will bring better performance,
better scalability, better compatibility with other .NET languages, easier
maintenane and more to your application. There is a price though, VS.NET is
not just the "next" version of VS 6 and VB.NET is not just the "next"
version of VB 6.0. They are brand new and there will be a learning curve
involved.

Hope this helps.

Scott M.
Jul 21 '05 #3
Hi and thanks for the reply,

so it sounds like VS.NET is for building stuff that
requires the .Net Framework (?)

I fired up Visual Studio 6.0 (VB component) and clicked on
the "ActiveX DLL" icon in the New Project window... so far
so good...

-----Original Message-----
Should I use Visual Studio .NET?
You can not create ActiveX anything with .NET.
or regula Visual Basic 6?


If you truley want to build an ActiveX DLL, then

this would be yourplace to do it.

or VS.NET 6?
There is no such thing. VS.NET is the next

generation of MicrosoftsVisual Studio brand but it is not built upon the same architecture and is acompletely different animal.

... something else? what's the diff?? is VS.NET only
for creatingmanaged code?

Ah, now that is the question! Anything built with .NET is managed code andyou can not use .NET to build (emphasis on build) unmanaged code (COM). Youcan build an application with .NET that calls unmanaged code, but you cannot build unmanaged code with .NET.

In genera, using .NET over its predicessor will bring better performance,better scalability, better compatibility with other .NET languages, easiermaintenane and more to your application. There is a price though, VS.NET isnot just the "next" version of VS 6 and VB.NET is not just the "next"version of VB 6.0. They are brand new and there will be a learning curveinvolved.

Hope this helps.

Scott M.
.

Jul 21 '05 #4
> so it sounds like VS.NET is for building stuff that
requires the .Net Framework (?)
Yes, that's the whole point.

I fired up Visual Studio 6.0 (VB component) and clicked on
the "ActiveX DLL" icon in the New Project window... so far
so good...
I hope that this serves your purpose.

Good luck!


-----Original Message-----
Should I use Visual Studio .NET?


You can not create ActiveX anything with .NET.
or regula Visual Basic 6?


If you truley want to build an ActiveX DLL, then

this would be your
place to do it.

or VS.NET 6?


There is no such thing. VS.NET is the next

generation of Microsofts
Visual Studio brand but it is not built upon the same

architecture and is a
completely different animal.

... something else? what's the diff?? is VS.NET only

for creating
managed code?

Ah, now that is the question! Anything built with .NET

is managed code and
you can not use .NET to build (emphasis on build)

unmanaged code (COM). You
can build an application with .NET that calls unmanaged

code, but you can
not build unmanaged code with .NET.

In genera, using .NET over its predicessor will bring

better performance,
better scalability, better compatibility with other .NET

languages, easier
maintenane and more to your application. There is a

price though, VS.NET is
not just the "next" version of VS 6 and VB.NET is not

just the "next"
version of VB 6.0. They are brand new and there will be

a learning curve
involved.

Hope this helps.

Scott M.
.

Jul 21 '05 #5
Scott M. wrote:
Should I use Visual Studio .NET?
You can not create ActiveX anything with .NET.


You certainly can, by exporting your .NET classes usin tlibexp.
or regula Visual Basic 6?


If you truley want to build an ActiveX DLL, then this would
be your place to do it.

or VS.NET 6?


There is no such thing. VS.NET is the next generation of
Microsofts Visual Studio brand but it is not built upon the same
architecture and is a completely different animal.

... something else? what's the diff?? is VS.NET only for creating
managed code?


Ah, now that is the question! Anything built with .NET is managed
code and you can not use .NET to build (emphasis on build) unmanaged
code (COM). You can build an application with .NET that calls
unmanaged code, but you can not build unmanaged code with .NET.


That is not true. You can build unmanaged code with MC++.
Jul 21 '05 #6
deko wrote:
Hi and thanks for the reply,

so it sounds like VS.NET is for building stuff that
requires the .Net Framework (?)


In general, yes, but you can export your .NET classes and create an ActiveX
..tlb by doing so which other modules can use as if their were using an
ActiveX library. Still there is the overhead of using .NET to host your
ActiveX .NET implementation as opposed to just creating ActiveX libraries
without .NET. OTOH I believe it is much simpler creating an ActiveX library
from .NET classes than through, let's say, the VC++ ATL classes.
Jul 21 '05 #7
> > You can not create ActiveX anything with .NET.
You certainly can, by exporting your .NET classes usin tlibexp.


But then you would be using CCW's so that the .NET app would "look" like a
COM app. Sure, you can do this, but I wouldn't say that this is ActiveX
development. I would say this is .NET to COM interOp.

The fact is that you can't build an ActiveX anything directly from VS.NET.
Jul 21 '05 #8
Scott M. wrote:
You can not create ActiveX anything with .NET.

You certainly can, by exporting your .NET classes usin tlibexp.


But then you would be using CCW's so that the .NET app would "look"
like a COM app. Sure, you can do this, but I wouldn't say that this
is ActiveX development. I would say this is .NET to COM interOp.

The fact is that you can't build an ActiveX anything directly from
VS.NET.


I am sure you know that exporting one's .NET classes using tlibexp does in
fact produce an ActiveX library which can be used in the normal way without
the user needing to be aware that the .NET framework will host the ActiveX
implementation. However I think we will be splitting hairs over this if we
discuss it much further. Whether this constitutes just "looking" like an
ActiveX library or being one, or whether it constitutes "building an ActiveX
anything directly from VS.NET", will probably degenerate into a semantic
argument rather than a technical one.

As far as whether it is better to build an ActiveX library from C++/ATL or
..NET classes, I think that is almost purely an ease of personal programming
preference. I do recognize having the .NET framework host an ActiveX library
as being more of a run-time overhead than if one's ActiveX library were
built directly from native COM classes and interfaces. But then again,
having .NET "anything" will impose more of an overhead than dealing directly
with the Win32 API and its native libraries.
Jul 21 '05 #9
> I am sure you know that exporting one's .NET classes using tlibexp does in
fact produce an ActiveX library which can be used in the normal way without the user needing to be aware that the .NET framework will host the ActiveX
implementation. However I think we will be splitting hairs over this if we
discuss it much further. Whether this constitutes just "looking" like an
ActiveX library or being one, or whether it constitutes "building an ActiveX anything directly from VS.NET", will probably degenerate into a semantic
argument rather than a technical one.


I don't think this is splitting hairs at all. I can build a VB 6.0 (COM)
component and use it in .NET but that doesn't mean that I have built a .NET
component in VB 6.0.

The same is true for creating a .NET component and "using" it from a COM
application (via a COM Callable Wrapper -CCW).

The fact reamains: You can't build an ActiveX anything "directly" from
..NET.

Jul 21 '05 #10
Thanks Edward.

I've been away for a few days on Christmas break...

So, as I begin my journey into Visual Studio and Microsoft development,
there are 2 choices: managed code and unmanaged code. If I want to write
stuff that uses the .NET Framework, I can use VS.NET -- otherwise (generally
speaking) I should use Visual Studio 6 and a language like VB or C++. Does
this sound about right?

But now I'm wondering... why bother with the .NET framework? Why not
simply write the app in VB? Is there some advantage to using managed code?
Are there language-based advantages - for example, is C# better than VB for
some things?

In general, yes, but you can export your .NET classes and create an ActiveX .tlb by doing so which other modules can use as if their were using an
ActiveX library. Still there is the overhead of using .NET to host your
ActiveX .NET implementation as opposed to just creating ActiveX libraries
without .NET. OTOH I believe it is much simpler creating an ActiveX library from .NET classes than through, let's say, the VC++ ATL classes.

Jul 21 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: enki | last post by:
I have been learning perl and C++, and I have been looking into Java. I know very little about the language, I have found some realy bad books that realy served to confues me and I have to find...
1
by: manish | last post by:
Hi, I am a fresher in the programming field i.e although I have done programming at the basic level but at professional level I am very new and I am facing many problems. These probllems are...
22
by: Luke | last post by:
Elements with name attribute: form, input, textarea, a, frame, iframe, button, select, map, meta, applet, object, param, img (if you know more reply...) Methods of addresing html elements:...
10
by: deko | last post by:
I need to use Visual Basic to create an ActiveX DLL that subclasses an Access form (cf. Knowledge Base Article 278379). Should I use Visual Studio .NET --or-- regular Visual Basic 6 --or-- VS.NET...
14
by: chitu | last post by:
Hi pals, Hope u all of r intersted in C programming.Let start from d basics.
2
by: Sreenivas Gangadhar | last post by:
hi everyone i have a quick question, whats the difference between argc and argv in C i am new here, so i dont know whether the question was previously discussed but however still i expect. ...
3
Mague
by: Mague | last post by:
Hey, I need help to some how open a exe file with Microsoft Visual basics. You mite think im trying to steal someone elses project but im not i wont to no how they did it and upgrade it if...
0
by: Satka | last post by:
Hello, I'm quite new to Apache, and I have what I think is a very basic question. I installed Apache 2.2.4, and use it with JBoss/Tomcat, using ajp13 conduit. This all works very well as...
0
by: babu8880 | last post by:
www.convensysglobal.com/elearn You can login and attend courses and similar resources ask your doubts from experienced engineers in iphone and Objective C Domain You can attend live classes...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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
0
BarryA
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.