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

Managed C++/CLI

 
GeneralRe: Some help needed with class and this pointer Pin
Richard MacCutchan12-Mar-10 22:21
mveRichard MacCutchan12-Mar-10 22:21 
QuestionManaged c++ std::string not accessible in unmanaged c++ Pin
Radh-e-sham11-Mar-10 20:42
Radh-e-sham11-Mar-10 20:42 
AnswerRe: Managed c++ std::string not accessible in unmanaged c++ Pin
KarstenK11-Mar-10 21:46
mveKarstenK11-Mar-10 21:46 
AnswerRe: Managed c++ std::string not accessible in unmanaged c++ Pin
T210228-Mar-10 22:10
T210228-Mar-10 22:10 
Questionsse 2-D Inner product and transpose Pin
SMART LUBOBYA4-Mar-10 4:24
SMART LUBOBYA4-Mar-10 4:24 
QuestionIs it possible to implement a DataSource in a mixed-mode DLL? Pin
Ron Aldrich3-Mar-10 22:38
Ron Aldrich3-Mar-10 22:38 
AnswerRe: Is it possible to implement a DataSource in a mixed-mode DLL? Pin
N a v a n e e t h4-Mar-10 4:24
N a v a n e e t h4-Mar-10 4:24 
GeneralRe: Is it possible to implement a DataSource in a mixed-mode DLL? Pin
Ron Aldrich4-Mar-10 9:53
Ron Aldrich4-Mar-10 9:53 
Navaneeth wrote:
Is it coming when you add again?


It appears that as long as there is any native code in the assembly, the entire assembly disappears from "Add New Data Source...", even though the native code is generated by C++ interop. If I then remove the native code, the assembly reappears in "Add New Data Source...".

Navaneeth wrote:
I think it is not a good idea to use the mixed-mode assembly in data binding. Can't you wrap it inside another type and use that for binding? So that changes on the mixed-mode assembly won't affect the binding.


I'm beginning to think that it's not only not a good idea, it's actually impossible. I think that it can be made to work using p/invoke, but C++ interop makes it fairly easy to convert between the std::string* and std::vector* objects emitted by the native library, and the System::String^ and System::Collections::ArrayList^ objects used within managed code.

At this point, I'm looking at either

1) Redesign the native library's API to emit structures that are more easily marshaled using p/invoke, or

2) Add yet another layer of wrappings, just to allow the use of bindings.

From the standpoint of coding time, the second approach is probably simplest.

Thanks for your time,

Ron Aldrich
QuestionInterface operator bug or feature with implicit/explicit cast ? Pin
Edward Diener3-Mar-10 2:43
Edward Diener3-Mar-10 2:43 
AnswerRe: Interface operator bug or feature with implicit/explicit cast ? Pin
Nish Nishant10-Mar-10 2:58
sitebuilderNish Nishant10-Mar-10 2:58 
GeneralRe: Interface operator bug or feature with implicit/explicit cast ? Pin
Edward Diener10-Mar-10 4:13
Edward Diener10-Mar-10 4:13 
QuestionBACKGROUNDWORKER in vc++ clr net 2.0 need example Pin
ajaxswan1-Mar-10 23:15
ajaxswan1-Mar-10 23:15 
AnswerRe: BACKGROUNDWORKER in vc++ clr net 2.0 need example Pin
N a v a n e e t h1-Mar-10 23:27
N a v a n e e t h1-Mar-10 23:27 
QuestionDll Pin
MsmVc25-Feb-10 20:04
MsmVc25-Feb-10 20:04 
AnswerRe: Dll Pin
Richard MacCutchan25-Feb-10 22:14
mveRichard MacCutchan25-Feb-10 22:14 
GeneralRe: Dll Pin
MsmVc25-Feb-10 22:20
MsmVc25-Feb-10 22:20 
GeneralRe: Dll Pin
Richard MacCutchan25-Feb-10 22:59
mveRichard MacCutchan25-Feb-10 22:59 
GeneralRe: Dll Pin
MsmVc25-Feb-10 23:09
MsmVc25-Feb-10 23:09 
GeneralRe: Dll Pin
Richard MacCutchan26-Feb-10 0:08
mveRichard MacCutchan26-Feb-10 0:08 
QuestionCannot inspect... Assuming significant changes. Please help! Pin
Xpnctoc25-Feb-10 13:48
Xpnctoc25-Feb-10 13:48 
AnswerRe: Cannot inspect... Assuming significant changes. Please help! Pin
Xpnctoc26-Feb-10 3:10
Xpnctoc26-Feb-10 3:10 
GeneralRe: Cannot inspect... Assuming significant changes. Please help! Pin
Xpnctoc26-Feb-10 3:47
Xpnctoc26-Feb-10 3:47 
QuestionC++/CLI operators in ref classes and interface classes Pin
Edward Diener24-Feb-10 14:33
Edward Diener24-Feb-10 14:33 
AnswerRe: C++/CLI operators in ref classes and interface classes Pin
Richard Andrew x6425-Feb-10 14:43
professionalRichard Andrew x6425-Feb-10 14:43 
GeneralRe: C++/CLI operators in ref classes and interface classes Pin
Edward Diener26-Feb-10 2:03
Edward Diener26-Feb-10 2:03 

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.