 |
| ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

April 8th, 2004, 08:06 PM
|
|
Authorized User
|
|
Join Date: Apr 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
How can I build a ActiveX DLL in VS.net 2003 ?
I need a function which can generate album in asp application.so I built a asp.net WebApp in VB.net and compiled it to DLL.Unfortunately the DLL is a standard DLL but not a ActiveX DLL,so I can not register it with regsvr32.exe.
How can I build a ActiveX DLL in VS.net ?
thx for any advice :P
__________________
-------------------------
<font color=\"red\">No Pains,No Gains.</font id=\"red\">
|
|

April 9th, 2004, 04:22 PM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
You don't build ActiveX DLLs in .net. You build .net assembly DLLs. If you wish to use a .net assembly in COM you can compile the project with the setting to make it COM Callable by means of the "Register for COM interop" checkbox inside the project's properties page. Once the .net assembly is created you can use the RegASM tool to register the assembly in the way you would use regsvr32.
I'm a little curious how you are planning on using this ASP.net project's assembly. You can't just write an ASP.net application and be able to call it from COM. Page classes created within an ASP.net web application project are pretty useless without an accompanying .ASPX file.
What are you trying to achieve? From what I gather you are attempting to create some sort of album that you want to have run in ASP but you built it with ASP.net. Is this correct? Why not just run it in ASP.net?
Peter
-------------------------
Work smarter, not harder
|
|

April 9th, 2004, 11:09 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
As I should know: users & browsers had many problems with ActiveX & Microsoft is not going to work with ActiveX anymore! So in .NET we use DLL instead of ActiveX. u can use them to make UserControl & ...
May I know why do u want to make ActiveX?! There might be a way with DLL.
Always:),
Hovik Melkomian.
|
|

April 10th, 2004, 12:11 PM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Hovik, you're providing some somewhat misleading information.
ActiveX is very much alive and isn't going anywhere too soon (at least until Windows is built on a new .net kernel). I think what you might be referrering to is ActiveX controls in the browser. I never used and was always a bit scared of these so I'll be happy to see their use go. Perhaps this is what the original poster is asking about, the post is not specific enough to know. If that is the case, then my answer will be of little use as I was responding under the notion that Mohammed is interested in a server-side ActiveX DLL.
Peter
-------------------------
Work smarter, not harder
|
|

April 11th, 2004, 08:50 PM
|
|
Authorized User
|
|
Join Date: Apr 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thx for all above useful suggestions.
planoie:Actually I just want to generate an album when I upload an image to web server.But my web server don't support .net framework.I have to make a DLL component using asp.net so that I can call it from asp script. Any better solutions to this requirement?
any help is much appreciated.
thx in advance.
Mohammed
|
|

April 11th, 2004, 11:30 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
Hi Peter & all:
Plz excuse my info for wrapped messages, insure I meant browser ActiceX controls but I guess this week im a little dizzy!
Sorry again & tnx for ur respnce to make this clear.
Always:),
Hovik Melkomian.
|
|

April 12th, 2004, 01:07 PM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Mohammed,
You are missing an important point. If your web server doesn't support the .net framework, how can you expect to have a .net assembly run? Even if a .net assembly is wrapped by COM it's still .net and it runs its code on .net.
What is this "album" you speak of? Can you explain in greater detail what you are trying to achieve. It sounds like you are going to have to resort to standard VB COM classes to do what you want.
Peter
-------------------------
Work smarter, not harder
|
|

April 12th, 2004, 10:43 PM
|
|
Authorized User
|
|
Join Date: Apr 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
planoie:
Thank you for your help at first.
I'm very sorry to my obscure expression.
I mean that I need generate a thumbnail image in the asp application.I also know it's easy to achieve it with .net image library.so I want to make a DLL with .net then call it in asp app.
If my idea is improper,could you give me a better solution to it?
thx again. ;P
-------------------------
No Pains,No Gains.
|
|

April 13th, 2004, 01:03 PM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Aha.. The light has been revealed. I see what you are looking to do. This idea is certainly not improper. However the problem remains: if the web server this is running on doesn't have the .net framework, you cannot use .net regardless of how you are calling it (from COM thru a COM callable wrapper around a .net library). You are going to have to use another method. Third party components are possible, but not knowing what your server setup is, you may not be able to install such third party tools. It seems that it would be a lot easier to just install the .net framework.
Is the server this is going on one of your servers (or one you have access to) or is it a web host?
|
|

April 14th, 2004, 09:31 PM
|
|
Authorized User
|
|
Join Date: Apr 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
OK.I make use of a third party component to achieve this goal.
and I hope I can persuade my boss to install .net framework on the web server ... hehe
thank u for ur kindly helps.
especially thx to Peter ;P
-------------------------
No Pains,No Gains.
|
|
 |