Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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
 
Old June 2nd, 2004, 09:36 PM
Registered User
 
Join Date: May 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default help needed on how to use COM in vb.net

Hi..
this is the first time i am trying to use a COM in vb.net

i have create a COM using VC++ (using the ATL COM AppWizard). i have include the class that i wanted to create an instance from vb.net.

The COM was successfully registered into the registry. I have also add a reference to that COM object in my vb.net project and it show appears in the References section of my solution explorer. However when i try to use the Object browser to view the contents of it, there was NOTHING!!!!.. I could not use the 'Imports ' statement to import that library.

What is the problem??? is there anything i need to declare or add when i am creating COM?

Would appreciate any help ....

Thks in advance..

iceman
 
Old June 2nd, 2004, 10:33 PM
Registered User
 
Join Date: May 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi..

i have manage to find out the problem... i did not create any ATL object in the first place..

well i have manage to see something on that reference which i have add in in my vb.net however i could not see any of the memebers of my class which i have create under the object view..

What is the problem??? is there anything i need to declare or add when i am creating COM?

Would appreciate any help ....

Thks in advance..

iceman
 
Old June 3rd, 2004, 08:55 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I have avoided using COM with .NET so much I couldn't tell you where to start.

What I can tell you is that, if you can re-create it in .NET, you should. COM Interop is slow..

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old June 7th, 2004, 08:30 PM
Registered User
 
Join Date: May 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok ic..

thks for ur help...

 
Old June 7th, 2004, 08:45 PM
Registered User
 
Join Date: May 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

btw..

how to u recreate a class written in Visual C++ in .net???
is there any reference which i can look into???


Thks a lot..

iceman

 
Old June 8th, 2004, 08:27 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

You can do C++.NET - Load the C++ source into the .NET and a wizard will start asking if you want to convert.. do the conversion and then you will have to debug - since the conversion isn't perfect.

Make sure you test, test, test!

Of course- you can use COM INTEROP, as I mentioned. You will just need to search google for COM INTEROP.

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old June 8th, 2004, 08:09 PM
Registered User
 
Join Date: May 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ic.... thks...i will go try....

:)

 
Old June 8th, 2004, 08:33 PM
Registered User
 
Join Date: May 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi.
well i have try using .net to convert my vc++ class

btw mine vc++ class is using fstream and iostream....
seems like .net don't have it....,net no longer use that...the closet i find is filestream...

so this means i need to manually change to use filestream???

thks in advance..

iceman

 
Old June 9th, 2004, 09:10 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Sorry- your beyond me with this.. I don't use c++

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee





Similar Threads
Thread Thread Starter Forum Replies Last Post
Aurgent needed(VB convert to Java) debasisha Java GUI 1 December 5th, 2008 10:01 PM
Tutor needed for VB 2005 application edx VB How-To 9 May 13th, 2007 04:26 PM
Good VB interview questions are needed. BigDude Access VBA 1 August 30th, 2005 07:40 AM
Files needed to run a VB.Net Windows Apps daniel VB.NET 2002/2003 Basics 2 October 15th, 2004 09:29 AM
vb.net 2002 - vb.net 2003 book metalaaron Wrox Book Feedback 0 August 2nd, 2003 10:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.