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?
LVL 6
Ioannis AnifantakisSoftware EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnGabyCommented:
You can create ActiveX controls using ATL.  Here is a tutorial:

http://msdn.microsoft.com/en-us/library/599w5e7x.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Components

From novice to tech pro — start learning today.