473,385 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

C++ Interop (/CLR) - Error LNK2028 ???

27
I want to integrate C# user control in an “classical” MFC application. The whole project contains one .EXE and many .DLLs with objects used by the .EXE.

When DLLs are compiled, object are declared with “_declspec(dllexport)”.
When objects are used in .EXE, the are declared with “_declspec(dllimport)”.

I have added the /CLR option only in the .EXE (DLLs have only “business objects”). And when I compile the solution, I have the following error:

Error LNK2028: unresolved token (0A0001A5) “public int __thiscall CXXX:Xxxx() …..”
When I compiled the solution without the /CLR option, all is good.

The help on this error explains that in native, the calling convention is “__cdecl” and in /clr:pure it is “__clrcall”. But I’m not in /clr!pure, I use only the /CLR option.

Any idea on how to solve this problem ? Unfortunately, I cannot add the /CLR option in all DLLs because I have a lot of errors (it will be a hard work).

Thanks for your help!
Mar 27 '07 #1
0 3622

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Coast Ranger | last post by:
A new application I'm running gives the user a "CLR error: 80070002" unless I make the user an administrator. The user has full rights to the directory that the application is installed in. ...
3
by: Lance Geeck | last post by:
I sent this yesterday, but it hasn't made it into the news group, so I am re-sending it. The first one will probably showup 2 seconds after I hit the send button. Anyway, I am new to .net and...
1
by: MeanDean | last post by:
>-----Original Message----- >do you guys maybe know why when i open my app on a win2k >box i get this error clr error:8007000b. and thats it >it works on other 2k boxes but it wont fire on this...
1
by: David Schwartz | last post by:
Anyone ever get this error? I've had a couple of users report it in my VB.NET Windows forms app, but no one can reproduce it. Any idea what it could be?
0
by: Liviu Uba | last post by:
My machine: Windows XP sp2 Hi, I have Vs.net 2003 with .net 1.1 sp 1 I installed also vs.net 2005 Each tool from 2003 sdk shipped with vsnet: TlbImp, ResGen etc gave first an error:"Unable to...
1
by: Kisa | last post by:
I am using Visual Studio 2005 on Windows Server 2003 (Virtual Server). All service packs are installed. I first had this problem when trying to distribute an application for testing so I then...
3
by: ajtaylor | last post by:
Hello, I wonder if anyone can help lift the cloud of confusion hanging over me at the moment ;-) I have a load of unmanaged code in a project that I am compiling NOT USING /CLR I have some...
0
by: xievvv | last post by:
I want to integrate C# code in an C++/MFC application. When I add the /CLR option in my project, I have the following warning (the project use a CTreeCtrl) : warning LNK4248: unresolved typeref...
0
by: R2d2Rabeau | last post by:
Hi all, I have an application that manipulates excel files without any problem. The problem is for a certain folder where files are giving me an error: When I check those files Excel ask me to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.