ProcessorAffinity

  • Thread starter Thread starter sdunn72
  • Start date Start date
S

sdunn72

I am tring to set the ProcessorAffinity property of my applicaton. My
problem is this property wants the value to be set as intptr and I
don't know how to convert form integer to intptr. Does anyone know
how to do this? TIA
 
My
problem is this property wants the value to be set as intptr and I
don't know how to convert form integer to intptr. Does anyone know
how to do this?

In C#

IntPtr ip = (IntPtr)i;

In VB.NET

Dim ip As New IntPtr(i)



Mattias
 
Mattias said:
In C#

IntPtr ip = (IntPtr)i;

In VB.NET

Dim ip As New IntPtr(i)

and in VC++.NET something like

int a = 0x0007;
IntPtr b = IntPtr(__int64(a));
 
Back
Top