Click here to Skip to main content
16,006,768 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Reference Casting question. Pin
Mark Salsbery11-Sep-08 4:56
Mark Salsbery11-Sep-08 4:56 
GeneralRe: Reference Casting question. Pin
led mike11-Sep-08 5:02
led mike11-Sep-08 5:02 
GeneralRe: Reference Casting question. Pin
Mark Salsbery11-Sep-08 5:10
Mark Salsbery11-Sep-08 5:10 
GeneralRe: Reference Casting question. Pin
led mike11-Sep-08 5:37
led mike11-Sep-08 5:37 
GeneralRe: Reference Casting question. Pin
Mark Salsbery11-Sep-08 5:42
Mark Salsbery11-Sep-08 5:42 
QuestionRe: Reference Casting question. Pin
led mike11-Sep-08 5:45
led mike11-Sep-08 5:45 
AnswerRe: Reference Casting question. Pin
Mark Salsbery11-Sep-08 5:57
Mark Salsbery11-Sep-08 5:57 
GeneralRe: Reference Casting question. [modified] Pin
peterdrozd11-Sep-08 5:26
peterdrozd11-Sep-08 5:26 
I tried it and it does not work.

It may be that I separated the class to a header file from the implemenation.

 System::Boolean DataEvent16::IsActive::get()
    {
        System::Boolean data = (System::Boolean)(((* _Event) & 0x02) != 0);  <--fails here.
        return data;
    }

header file
 property System::Boolean IsActive
        {
            System::Boolean get();
        }

this still fails.

I am trying to get bits from an unsigned short and pass back to C# the value of the bits. I tried a union with a structure to define the bits and tried to set a variable that had all the bits as a System::UInt16 but it would not let me assign the * (System::Uint16 ^ ) to the unmanaged data type so I had to switch gears and try this method. doing a return when the class is implemented inline works fine however I can not use the class in another CPP file as a class variable because I could not make one class aware of the other with out a header. so I separated them. this led to problems with visual studio 2005 C++ CLI

This should be a simple item but it's starting to take up so much time. Sigh | :sigh:

thanks -- Pete Smile | :)

modified on Thursday, September 11, 2008 11:34 AM

GeneralRe: Reference Casting question. Pin
Mark Salsbery11-Sep-08 5:40
Mark Salsbery11-Sep-08 5:40 
GeneralRe: Reference Casting question. Pin
peterdrozd11-Sep-08 5:44
peterdrozd11-Sep-08 5:44 
GeneralRe: Reference Casting question. Pin
Mark Salsbery11-Sep-08 5:56
Mark Salsbery11-Sep-08 5:56 
GeneralRe: Reference Casting question. Pin
Mark Salsbery11-Sep-08 5:59
Mark Salsbery11-Sep-08 5:59 
GeneralRe: Reference Casting question. Pin
peterdrozd11-Sep-08 7:50
peterdrozd11-Sep-08 7:50 
GeneralRe: Reference Casting question. Pin
Mark Salsbery11-Sep-08 8:00
Mark Salsbery11-Sep-08 8:00 
QuestionRe: Reference Casting question. Pin
Mark Salsbery11-Sep-08 5:45
Mark Salsbery11-Sep-08 5:45 
QuestionMinGW and namespaces [modified] Pin
piwi13311-Sep-08 1:18
piwi13311-Sep-08 1:18 
QuestionRe: MinGW and namespaces Pin
sashoalm11-Sep-08 1:31
sashoalm11-Sep-08 1:31 
AnswerRe: MinGW and namespaces Pin
piwi13311-Sep-08 1:36
piwi13311-Sep-08 1:36 
GeneralRe: MinGW and namespaces Pin
sashoalm11-Sep-08 1:43
sashoalm11-Sep-08 1:43 
GeneralRe: MinGW and namespaces Pin
piwi13311-Sep-08 1:56
piwi13311-Sep-08 1:56 
GeneralRe: MinGW and namespaces Pin
sashoalm11-Sep-08 2:03
sashoalm11-Sep-08 2:03 
QuestionTo Create CVS File Pin
mikobi11-Sep-08 1:15
mikobi11-Sep-08 1:15 
AnswerRe: To Create CVS File Pin
_AnsHUMAN_ 11-Sep-08 2:10
_AnsHUMAN_ 11-Sep-08 2:10 
GeneralRe: To Create CVS File Pin
mikobi18-Sep-08 21:13
mikobi18-Sep-08 21:13 
Questioncompiler in VC++6.0 Pin
aa_zz11-Sep-08 0:58
aa_zz11-Sep-08 0:58 

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.