Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 8th, 2004, 08:06 PM
Authorized User
 
Join Date: Apr 2004
Location: Nanjing, Jiangsu, China.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Mohammed
Default 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\">
  #2 (permalink)  
Old April 9th, 2004, 04:22 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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
  #3 (permalink)  
Old April 9th, 2004, 11:09 PM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

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.
  #4 (permalink)  
Old April 10th, 2004, 12:11 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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
  #5 (permalink)  
Old April 11th, 2004, 08:50 PM
Authorized User
 
Join Date: Apr 2004
Location: Nanjing, Jiangsu, China.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Mohammed
Default

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
  #6 (permalink)  
Old April 11th, 2004, 11:30 PM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

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.
  #7 (permalink)  
Old April 12th, 2004, 01:07 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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
  #8 (permalink)  
Old April 12th, 2004, 10:43 PM
Authorized User
 
Join Date: Apr 2004
Location: Nanjing, Jiangsu, China.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Mohammed
Default

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.
  #9 (permalink)  
Old April 13th, 2004, 01:03 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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?
  #10 (permalink)  
Old April 14th, 2004, 09:31 PM
Authorized User
 
Join Date: Apr 2004
Location: Nanjing, Jiangsu, China.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Mohammed
Default

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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use ActiveX DLL in VB.NET debuajm General .NET 4 June 6th, 2004 05:26 AM
Can you write an ActiveX DLL with VB.NET? james gold VB.NET 1 September 8th, 2003 09:49 AM
Can you write an ActiveX DLL with VB.NET? james gold VB Components 0 September 8th, 2003 09:44 AM
Can you write an ActiveX DLL with VB.NET? james gold VB.NET 2002/2003 Basics 0 September 5th, 2003 05:25 AM



All times are GMT -4. The time now is 09:20 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.