p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > .NET > Other .NET > General .NET
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 2nd, 2004, 10:36 PM
Registered User
Points: 26, Level: 1
Points: 26, Level: 1 Points: 26, Level: 1 Points: 26, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: , , .
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old June 2nd, 2004, 11:33 PM
Registered User
Points: 26, Level: 1
Points: 26, Level: 1 Points: 26, Level: 1 Points: 26, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: , , .
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old June 3rd, 2004, 09:55 AM
Friend of Wrox
Points: 2,352, Level: 20
Points: 2,352, Level: 20 Points: 2,352, Level: 20 Points: 2,352, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old June 7th, 2004, 09:30 PM
Registered User
Points: 26, Level: 1
Points: 26, Level: 1 Points: 26, Level: 1 Points: 26, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok ic..

thks for ur help...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old June 7th, 2004, 09:45 PM
Registered User
Points: 26, Level: 1
Points: 26, Level: 1 Points: 26, Level: 1 Points: 26, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: , , .
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #6 (permalink)  
Old June 8th, 2004, 09:27 AM
Friend of Wrox
Points: 2,352, Level: 20
Points: 2,352, Level: 20 Points: 2,352, Level: 20 Points: 2,352, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #7 (permalink)  
Old June 8th, 2004, 09:09 PM
Registered User
Points: 26, Level: 1
Points: 26, Level: 1 Points: 26, Level: 1 Points: 26, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

:)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #8 (permalink)  
Old June 8th, 2004, 09:33 PM
Registered User
Points: 26, Level: 1
Points: 26, Level: 1 Points: 26, Level: 1 Points: 26, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: , , .
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #9 (permalink)  
Old June 9th, 2004, 10:10 AM
Friend of Wrox
Points: 2,352, Level: 20
Points: 2,352, Level: 20 Points: 2,352, Level: 20 Points: 2,352, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 05:26 PM
Good VB interview questions are needed. BigDude Access VBA 1 August 30th, 2005 08:40 AM
Files needed to run a VB.Net Windows Apps daniel VB.NET 2002/2003 Basics 2 October 15th, 2004 10:29 AM
vb.net 2002 - vb.net 2003 book metalaaron Wrox Book Feedback 0 August 2nd, 2003 11:46 PM



All times are GMT -4. The time now is 04:47 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc