Solved

Instance of COM in c++ 2005

Posted on 2006-07-17
1
312 Views
Last Modified: 2013-11-25
I have vb.net COM file which is located on different machine. On my machine it is registered with codebase switch.
I was creating that COM in MFC project on my machine using CoCreateInstance. It was working fine.

Now I would like to switch to c++ 2005 and when I use CoCreateInstance I have linking errors.
When I add that vb.net COM object as reference it must be either in gac or the same folder as running calling process.
I will not be able to add that com to gac and file will not be in the same folder.

How Can I do it the same way in c++.net.
0
Comment
Question by:PLABB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 500 total points
ID: 17123053
Please post the linker errors that you are getting.

I don't fully understand the second part of your question. You can have a look at this chapter
http://www.samspublishing.com/articles/article.asp?p=27219&rl=1
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question