Solved

Instance of COM in c++ 2005

Posted on 2006-07-17
1
295 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 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

861 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