[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1130
  • Last Modified:

Create ActiveX control in .NET

Hello experts,

I wish to create an ActiveX control in Visual Studio 2008 professional.
Then I want to import this ActiveX control in different IDEs like Delphi.

I found a source giving me the opportunity to create ActiveX in .Net in the following address

http://www.codeguru.com/csharp/.net/net_general/comcom/article.php/c16257

However the dll created there cannot be imported into delphi or other IDE. This is because it is registrable with RegAsm.exe (Register Assemblies), and doesn't have registration point for normal ActiveX that is being registered with regsvr32.exe

Is there some way to create and register ActiveX controls in Visual Studio 2008?
0
Ioannis Anifantakis
Asked:
Ioannis Anifantakis
  • 7
  • 5
2 Solutions
 
JohnGabyCommented:
You can create ActiveX controls using ATL.  Here is a tutorial:

http://msdn.microsoft.com/en-us/library/599w5e7x.aspx
0
 
Ioannis AnifantakisSoftware EngineerAuthor Commented:
JohnGaby,

Thank you for your post.
I followed the tutorial and its very interesting.

When it comes to creating activex control, I believe its accurate.

Maybe I wasn't clear enough though.  What I try to achieve is having an entire form with controls being created in .NET environment, and be able to use this in other win32 IDEs.

My way of achieving this was make an ActiveX form.

If thats impossible please let me know so I award you points.
0
 
JohnGabyCommented:
So you want to create a .net activeX control and use it in a win32 application?  I am pretty sure that you can do that, but I cannot tell you how.  I believe that one of the other experts should be able to help though.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Ioannis AnifantakisSoftware EngineerAuthor Commented:
What I want to achieve is initiated in this question

http://www.experts-exchange.com/Programming/Editors_IDEs/Delphi/Q_25590471.html

I accepted the solution that said I have to make an ActiveX for it.  But there was no option about how to make this ActiveX.

Maybe if you see the requirement from the initial post you will be able to understand my problem
0
 
JohnGabyCommented:
I am not a .net expert, and I am surprised that someone more knowledgeable than me has not responded.  Since they have not, however,  I can make some suggestions that might point you in the right direction.  It appears that what you need is a way to call .net managed code from native Visual C++ code.  To that end, here is an article which describes how you might do that.  If it doesn't meet your needs, I can probably come up with some other suggestions:

 http://support.microsoft.com/kb/828736
0
 
Ioannis AnifantakisSoftware EngineerAuthor Commented:
Hmmm... yes...

A more appropriate title would be "How to access managed DLLs from delphi"
0
 
JohnGabyCommented:
Yes, I understood that ultimately you wanted to call the .net functions from Delphi, but since I know nothing about Delphi, I am not able to help you directly with that.  However, I assumed that you already knew how to call C++ from Delphi and with that knowledge and the above article I thought you might be able to find a path.

I am sorry that I cannot be more help.  Perhaps you should cancel this request (I would not object), and post a new request asking for how to call managed .net code from Delphi.
0
 
Ioannis AnifantakisSoftware EngineerAuthor Commented:
I fell to this site about 30mins ago and I am looking at it...
Seems promising, but I don't know it defenintelly deserves a go!

http://www.remobjects.com/hydra.aspx
0
 
JohnGabyCommented:
Yes, that looks like what you need.  Good luck!
0
 
Ioannis AnifantakisSoftware EngineerAuthor Commented:
OMG, guys watch this amazing video tutorial video of Hydra

http://devcenter.remobjects.com/videos/play.asp?id={77E4293D-8141-4353-9919-8BE68B4DEB80}
0
 
Ioannis AnifantakisSoftware EngineerAuthor Commented:
I value your input John,

I will award half points to your initial suggestion for ATL, since I wasn't clear enough on my post and that could be the answer and the 2nd half of the points to my site for future people wondering what to do in similar situations
0
 
Ioannis AnifantakisSoftware EngineerAuthor Commented:
I could not accept my own answer so 2nd half of points went to your "yes, thats what you need" reply.

Thanx for your input again brother, and good luck!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now