|
|
 |
| 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.
|
 |

June 2nd, 2004, 10:36 PM
|
|
Registered User
|
|
Join Date: May 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

June 2nd, 2004, 11:33 PM
|
|
Registered User
|
|
Join Date: May 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

June 3rd, 2004, 09:55 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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
|

June 7th, 2004, 09:30 PM
|
|
Registered User
|
|
Join Date: May 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
ok ic..
thks for ur help...
|

June 7th, 2004, 09:45 PM
|
|
Registered User
|
|
Join Date: May 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

June 8th, 2004, 09:27 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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
|

June 8th, 2004, 09:09 PM
|
|
Registered User
|
|
Join Date: May 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
ic.... thks...i will go try....
:)
|

June 8th, 2004, 09:33 PM
|
|
Registered User
|
|
Join Date: May 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

June 9th, 2004, 10:10 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Sorry- your beyond me with this.. I don't use c++
Hal Levy
Web Developer, PDI Inc.
NOT a Wiley/Wrox Employee
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |