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

Managed C++/CLI

 
GeneralRe: Using Magic Library Pin
monrobot27-Aug-03 3:51
sussmonrobot27-Aug-03 3:51 
GeneralRe: Using Magic Library Pin
Anthony_Yio27-Aug-03 16:19
Anthony_Yio27-Aug-03 16:19 
Generaltypecasting void* to object Pin
Katamneni29-Jul-03 2:39
Katamneni29-Jul-03 2:39 
Generalredirect console telnet Pin
sneaker28-Jul-03 12:39
sneaker28-Jul-03 12:39 
GeneralDrawString Pin
icdma26-Jul-03 7:46
icdma26-Jul-03 7:46 
GeneralRe: DrawString Pin
icdma26-Jul-03 7:47
icdma26-Jul-03 7:47 
Generalusing voice input in c++ Pin
gondal26-Jul-03 1:00
gondal26-Jul-03 1:00 
Questionsystem object == true or false????? Pin
Phil C25-Jul-03 13:27
Phil C25-Jul-03 13:27 
Ok, here's what must be the stupidest question on the board, but I have to ask.

I'm trying to migrate from C++ (VC6) to the new .NET style of managed C++.

I'm trying to enumerate any/all NIC cards on the sytem and get a list of valid IP addresses using System:ManagementClass object

At one point in my code I'm calling:

<br />
ManagementObject * mo = new ManagementObject();  <br />
//do some stuff to enumerate through possible multiple objcts<br />
//then find out if this "object" has an IP address<br />
mo->get_Item("IPEnabled")<br />


Now the question

This Get_Item() function returns a system object pointer. As I debug and step through my code, I can see this pointer does indeed point to an object which toggle between "true" and "false"

What I'm trying to do is simple:
<br />
if(mo->Equals(true))<br />
{<br />
      GO DO SOME STUFF<br />
}<br />


That if statement does not compile. calling Equals(false) compiles but always returns "true" (I guess because mo is not a NULL pointer) How do I test the value of a generic system object to see if it's "value" == true or false?????

This seems like it should be so simple, yet is turning out to be so hard is embarrassing. Can anyone point me in the right direction??

Phrustrated Phil
AnswerRe: system object == true or false????? Pin
leppie25-Jul-03 13:45
leppie25-Jul-03 13:45 
GeneralRe: system object == true or false????? Pin
Phil C25-Jul-03 14:01
Phil C25-Jul-03 14:01 
QuestionCan I pass a __gc array ptr as a pinned C array? Pin
Jeremy Osner25-Jul-03 4:41
Jeremy Osner25-Jul-03 4:41 
AnswerRe: Can I pass a __gc array ptr as a pinned C array? Pin
Nemanja Trifunovic25-Jul-03 5:38
Nemanja Trifunovic25-Jul-03 5:38 
GeneralRe: Can I pass a __gc array ptr as a pinned C array? Pin
Jeremy Osner25-Jul-03 5:51
Jeremy Osner25-Jul-03 5:51 
GeneralRe: Can I pass a __gc array ptr as a pinned C array? Pin
Jeremy Osner25-Jul-03 6:19
Jeremy Osner25-Jul-03 6:19 
GeneralRe: Can I pass a __gc array ptr as a pinned C array? Pin
leppie25-Jul-03 7:03
leppie25-Jul-03 7:03 
GeneralRe: Can I pass a __gc array ptr as a pinned C array? Pin
Jeremy Osner25-Jul-03 7:54
Jeremy Osner25-Jul-03 7:54 
GeneralRe: Can I pass a __gc array ptr as a pinned C array? Pin
leppie25-Jul-03 8:02
leppie25-Jul-03 8:02 
GeneralRe: Can I pass a __gc array ptr as a pinned C array? Pin
Jeremy Osner25-Jul-03 8:23
Jeremy Osner25-Jul-03 8:23 
GeneralRe: Can I pass a __gc array ptr as a pinned C array? Pin
leppie25-Jul-03 13:50
leppie25-Jul-03 13:50 
GeneralLNK4099 - PDB was not found... Pin
Hans Ruck25-Jul-03 0:42
Hans Ruck25-Jul-03 0:42 
GeneralRe: LNK4099 - PDB was not found... Pin
chassisman27-Aug-03 5:48
chassisman27-Aug-03 5:48 
GeneralRe: LNK4099 - PDB was not found... Pin
Hans Ruck27-Aug-03 21:25
Hans Ruck27-Aug-03 21:25 
Generalerror C2872: 'IDataObject' : ambiguous symbol Pin
Katamneni25-Jul-03 0:11
Katamneni25-Jul-03 0:11 
GeneralRe: error C2872: 'IDataObject' : ambiguous symbol Pin
apferreira25-Jul-03 1:45
apferreira25-Jul-03 1:45 
QuestionWhere to get ATLMFC (in VC7) redistributable? Pin
Anthony_Yio24-Jul-03 22:21
Anthony_Yio24-Jul-03 22:21 

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.