Click here to Skip to main content
15,901,035 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Convert string array from C# to C++ ? Pin
taibc17-Jun-13 4:34
taibc17-Jun-13 4:34 
GeneralRe: Convert string array from C# to C++ ? Pin
Karthik Kalyanasundaram17-Jun-13 20:13
Karthik Kalyanasundaram17-Jun-13 20:13 
GeneralRe: Convert string array from C# to C++ ? Pin
taibc18-Jun-13 17:21
taibc18-Jun-13 17:21 
QuestionGetting assembly details (descripton, version, etc) set for a C++/CLI assembly Pin
John Schroedl12-Jun-13 5:29
professionalJohn Schroedl12-Jun-13 5:29 
AnswerRe: Getting assembly details (descripton, version, etc) set for a C++/CLI assembly Pin
John Schroedl12-Jun-13 10:15
professionalJohn Schroedl12-Jun-13 10:15 
Questionwindows sdk Pin
Member 259538310-Jun-13 6:02
Member 259538310-Jun-13 6:02 
AnswerRe: windows sdk Pin
Richard MacCutchan10-Jun-13 7:05
mveRichard MacCutchan10-Jun-13 7:05 
QuestionVC++ import dll command causes error C2872 'ambiguous symbol' in comdefsp.h Pin
devguy242-Jun-13 23:34
devguy242-Jun-13 23:34 
Hello everyone,

so I'm using VC++ 2008 and I've got a large solution made up of several different interconnected projects, some of which are DLL's (no CLR). In one of these DLL's I'm trying to import an EXTERNAL Visual Basic dll using the command #import "C:\path\to\my\DLL\file.dll" . If I use this command in one of my .cpp files, it works. If on the other hand, I use it in one of my .h files, I then get the following compile errors in the files ocidl.h and comdefsp.h. I noticed that the .tlh and .tli files generated by the #import command include the file comdef.h. There are other files in my project that include the file comdef.h. Could this be the reason for the conflict?

VB
Error   1236    "solution_name" error C2872: 'IDropTarget' : ambiguous symbol   C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ocidl.h   3949
Error   1237    "solution_name" error C2872: 'IServiceProvider' : ambiguous symbol  C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ocidl.h   6238
Error   1238    "solution_name" error C2872: 'IDataObject' : ambiguous symbol   c:\program files (x86)\microsoft visual studio 9.0\vc\include\comdefsp.h    216
Error   1239    "solution_name" error C2872: 'IDataObject' : ambiguous symbol   c:\program files (x86)\microsoft visual studio 9.0\vc\include\comdefsp.h    216
Error   1240    "solution_name" error C2872: 'IDropTarget' : ambiguous symbol   c:\program files (x86)\microsoft visual studio 9.0\vc\include\comdefsp.h    246
Error   1242    "solution_name" error C2872: 'IMessageFilter' : ambiguous symbol    c:\program files (x86)\microsoft visual studio 9.0\vc\include\comdefsp.h    771
Error   1243    "solution_name" error C2872: 'IMessageFilter' : ambiguous symbol    c:\program files (x86)\microsoft visual studio 9.0\vc\include\comdefsp.h    771
Error   1244    "solution_name" error C2872: 'IServiceProvider' : ambiguous symbol  c:\program files (x86)\microsoft visual studio 9.0\vc\include\comdefsp.h    1041
Error   1245    "solution_name" error C2872: 'IServiceProvider' : ambiguous

AnswerRe: VC++ import dll command causes error C2872 'ambiguous symbol' in comdefsp.h Pin
Member 259538311-Jun-13 12:10
Member 259538311-Jun-13 12:10 
QuestionType casting in C++\CLI project Pin
for study23-May-13 20:41
for study23-May-13 20:41 
AnswerRe: Type casting in C++\CLI project Pin
David Knechtges24-May-13 3:29
David Knechtges24-May-13 3:29 
GeneralRe: Type casting in C++\CLI project Pin
Member 259538311-Jun-13 12:41
Member 259538311-Jun-13 12:41 
Questionetting Access Violation Exception -Attempted to read or write protected memory - when trying to convert unmanaged array of structures into managed class in Vb.Net (VS2010,4.0 framework) in Windows 7 -64 bit mode. Pin
VijaySandur25-Apr-13 3:44
VijaySandur25-Apr-13 3:44 
AnswerRe: etting Access Violation Exception -Attempted to read or write protected memory - when trying to convert unmanaged array of structures into managed class in Vb.Net (VS2010,4.0 framework) in Windows 7 -64 bit mode. Pin
John Schroedl25-Apr-13 7:52
professionalJohn Schroedl25-Apr-13 7:52 
AnswerRe: etting Access Violation Exception -Attempted to read or write protected memory - when trying to convert unmanaged array of structures into managed class in Vb.Net (VS2010,4.0 framework) in Windows 7 -64 bit mode. Pin
Richard MacCutchan25-Apr-13 22:29
mveRichard MacCutchan25-Apr-13 22:29 
GeneralRe: etting Access Violation Exception -Attempted to read or write protected memory - when trying to convert unmanaged array of structures into managed class in Vb.Net (VS2010,4.0 framework) in Windows 7 -64 bit mode. Pin
Tripurari Chaudhary13-May-13 23:43
Tripurari Chaudhary13-May-13 23:43 
QuestionRe: etting Access Violation Exception -Attempted to read or write protected memory - when trying to convert unmanaged array of structures into managed class in Vb.Net (VS2010,4.0 framework) in Windows 7 -64 bit mode. Pin
Richard MacCutchan13-May-13 23:50
mveRichard MacCutchan13-May-13 23:50 
AnswerRe: etting Access Violation Exception -Attempted to read or write protected memory - when trying to convert unmanaged array of structures into managed class in Vb.Net (VS2010,4.0 framework) in Windows 7 -64 bit mode. Pin
Tripurari Chaudhary13-May-13 23:44
Tripurari Chaudhary13-May-13 23:44 
QuestionAd Hoc routing protocol Pin
3bood.ghzawi18-Apr-13 2:43
3bood.ghzawi18-Apr-13 2:43 
AnswerRe: Ad Hoc routing protocol Pin
Richard MacCutchan18-Apr-13 4:27
mveRichard MacCutchan18-Apr-13 4:27 
GeneralRe: Ad Hoc routing protocol Pin
3bood.ghzawi18-Apr-13 5:09
3bood.ghzawi18-Apr-13 5:09 
GeneralRe: Ad Hoc routing protocol Pin
Richard MacCutchan18-Apr-13 5:42
mveRichard MacCutchan18-Apr-13 5:42 
GeneralRe: Ad Hoc routing protocol Pin
3bood.ghzawi19-Apr-13 0:05
3bood.ghzawi19-Apr-13 0:05 
GeneralRe: Ad Hoc routing protocol Pin
Richard MacCutchan19-Apr-13 0:38
mveRichard MacCutchan19-Apr-13 0:38 
GeneralRe: Ad Hoc routing protocol Pin
Joe Woodbury24-Apr-13 8:22
professionalJoe Woodbury24-Apr-13 8:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.