Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Instance of COM in c++ 2005

Posted on 2006-07-17
1
Medium Priority
?
318 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
1 Comment
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 2000 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

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…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

926 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