I want examples about using COM Object in VB.

I created a COM object from Delphi. I can use it in my Delhpi program.
Now i want to try to use it in other languages.
Can someone sent me for example about using COM ?
                  Thank you
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.

Do you mean ActiveX control?
If so, add it into your project by right click on the component bar and select 'components...'. Your control should appear in the list if it's registered properly.
lekhaewAuthor Commented:
No. I don't mean ActiveX control.
Because it's not visual component.
In delphi i register it ,
then call it in my delphi program,
finally, can use it same as one non visual component.
But in VB i don't know how to call it.
                                              Thank you

Are u sure u generated object is COM. Because i don't much about delphi.  If ur answer(created object using delphi is COM(dll)or (exe)), then follow the
steps .

Using the references in VB , load the dll or COM objects.

Then u can use it

method 1:

dim i as .. u can see the project name fo the delphi(if u see this) and u can start using i as object.

method 2:

dim i as object

set i = createobject("rojectname")

use this method to access the objects

It is possible to access the objects created using c++, java, VC++ or another other which is supported by MIcrosoft.


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
lekhaewAuthor Commented:
Thank you for your answer.
But i'm not good in VB.
Can u send me a short program which calling COM object in program.
                                        Thank you
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
Visual Basic Classic

From novice to tech pro — start learning today.