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

Managed C++/CLI

 
GeneralRe: Hiding unmanaged functions in assembly Pin
leppie22-Apr-03 7:06
leppie22-Apr-03 7:06 
GeneralRe: Hiding unmanaged functions in assembly Pin
leppie26-Apr-03 10:52
leppie26-Apr-03 10:52 
GeneralC and C++ compilers Pin
Mario_Young20-Apr-03 17:55
Mario_Young20-Apr-03 17:55 
GeneralRe: C and C++ compilers Pin
John R. Shaw29-Apr-03 18:57
John R. Shaw29-Apr-03 18:57 
GeneralRe: C and C++ compilers Pin
jhaga8-May-03 23:02
professionaljhaga8-May-03 23:02 
GeneralBug in VC++.net 2002: nested structs Pin
VizOne19-Apr-03 6:38
VizOne19-Apr-03 6:38 
GeneralRe: Bug in VC++.net 2002: nested structs Pin
Paul Selormey21-Apr-03 19:36
Paul Selormey21-Apr-03 19:36 
GeneralJagged arrays in MC++ Pin
Alexandru Savescu15-Apr-03 4:12
Alexandru Savescu15-Apr-03 4:12 
GeneralRe: Jagged arrays in MC++ Pin
Natty Gur15-Apr-03 4:29
Natty Gur15-Apr-03 4:29 
GeneralRe: Jagged arrays in MC++ Pin
Paul Selormey21-Apr-03 19:59
Paul Selormey21-Apr-03 19:59 
QuestionWhat's the difference between VC++ and Managed C++? Pin
BoudewijnEctor14-Apr-03 8:45
BoudewijnEctor14-Apr-03 8:45 
AnswerRe: What's the difference between VC++ and Managed C++? Pin
Maximilien14-Apr-03 8:53
Maximilien14-Apr-03 8:53 
AnswerRe: What's the difference between VC++ and Managed C++? Pin
Natty Gur14-Apr-03 18:46
Natty Gur14-Apr-03 18:46 
QuestionHow to cast a pointer to a member function into a void*? Pin
Charles Liu14-Apr-03 2:45
Charles Liu14-Apr-03 2:45 
AnswerRe: How to cast a pointer to a member function into a void*? Pin
Natty Gur14-Apr-03 4:43
Natty Gur14-Apr-03 4:43 
AnswerRe: How to cast a pointer to a member function into a void*? Pin
John R. Shaw29-Apr-03 18:41
John R. Shaw29-Apr-03 18:41 
Generalcast to c++ interface from C# Pin
bwells14-Apr-03 0:42
bwells14-Apr-03 0:42 
GeneralRe: cast to c++ interface from C# Pin
Natty Gur14-Apr-03 4:48
Natty Gur14-Apr-03 4:48 
GeneralRe: cast to c++ interface from C# Pin
bwells14-Apr-03 13:58
bwells14-Apr-03 13:58 
GeneralRe: cast to c++ interface from C# Pin
Natty Gur14-Apr-03 17:34
Natty Gur14-Apr-03 17:34 
GeneralRe: cast to c++ interface from C# Pin
bwells16-Apr-03 12:57
bwells16-Apr-03 12:57 
GeneralRe: cast to c++ interface from C# Pin
Natty Gur16-Apr-03 20:11
Natty Gur16-Apr-03 20:11 
GeneralUnmanaged code to call managed code Pin
onyxbird10-Apr-03 9:43
onyxbird10-Apr-03 9:43 
GeneralRe: Unmanaged code to call managed code Pin
Paul Selormey10-Apr-03 18:03
Paul Selormey10-Apr-03 18:03 
GeneralC2682: cannot use __try_cast to convert from 'gcroot<T>' Pin
Paul Selormey31-Mar-03 20:40
Paul Selormey31-Mar-03 20:40 
Hello All,
I have a standard C++ class with MC++ member defined as
gcroot < System::Drawing::Brush __gc* > m_pDotNetBrush;

Somewhere in the codes, I wish to use the brush and trying to
cast it to the appropriate type:
System::Drawing::SolidBrush __gc* pBrush =
 __try_cast < System::Drawing::SolidBrush __gc* >(m_pDotNetBrush);

This, however, generates error in the form:
<br />
error C2682: cannot use __try_cast to convert from 'gcroot < T >' to 'System::Drawing::SolidBrush __gc *'<br />

I tried the other standard C++ casts and all failed with same error.
What is supposed to be done in this case?

Best regards,
Paul.


Jesus Christ is LOVE! Please tell somebody.

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.