Click here to Skip to main content
15,890,609 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: How to configure VS2005 to use 64 bit csc.exe Pin
Mike Dimmick12-Feb-08 0:06
Mike Dimmick12-Feb-08 0:06 
QuestionRaise VB6 event from C# Com (dll) [modified] Pin
MayyMagdy6-Feb-08 11:29
MayyMagdy6-Feb-08 11:29 
GeneralRe: Raise VB6 event from C# Com (dll) Pin
led mike7-Feb-08 5:04
led mike7-Feb-08 5:04 
GeneralRe: Raise VB6 event from C# Com (dll) Pin
MayyMagdy7-Feb-08 11:52
MayyMagdy7-Feb-08 11:52 
General.NET Reference Code Downloader For Debugging With Visual Studio 2005 Pin
Izzet Kerem Kusmezer6-Feb-08 8:57
Izzet Kerem Kusmezer6-Feb-08 8:57 
GeneralRe: .NET Reference Code Downloader For Debugging With Visual Studio 2005 Pin
Pete O'Hanlon7-Feb-08 22:17
mvePete O'Hanlon7-Feb-08 22:17 
GeneralRe: .NET Reference Code Downloader For Debugging With Visual Studio 2005 Pin
Vasudevan Deepak Kumar11-Feb-08 23:36
Vasudevan Deepak Kumar11-Feb-08 23:36 
GeneralThread's processory affinity Pin
vijboy6-Feb-08 7:18
vijboy6-Feb-08 7:18 
Hi,

I've the following code that runs in a timer function every second. OnTimedEvent() is a timer delegate that is invoked by Windows timer every second. It uses MFC/Windows SDK. It sets the processor priority for the thread that is running this code.

void CPci1553::OnTimedEvent( Object^ source, ElapsedEventArgs^ e )
{
//set the timer thread affinity to second process and set it to higher priority
SYSTEM_INFO info;

//get the configuration information of computer
GetSystemInfo(&info);

//if the system has more than one processor, use the last processor for TOD thread
//set the thread affinity to second processor
if(info.dwNumberOfProcessors > 1)
SetThreadIdealProcessor(GetCurrentThread(),info.dwNumberOfProcessors-1);
}


I need to upgrage this code for .NET using C++/CLI. I tried to use .NET functions like "System::Environment::ProcessorCount" to processor count in on the system, "System.Diagnostics.ProcessThread.IdealProcessor" to set the processory priority for the thread, "System.Threading.Thread.CurrentThread" to get the current running thread for this code. But the problem is "System.Diagnostics.ProcessThread" is unmanaged thread and "System.Threading.Thread" is managed thread. I don't know how to mix these two. Pls. help me with this code.

Thanks
Ram
GeneralNetwork connection staus Pin
vijboy6-Feb-08 6:57
vijboy6-Feb-08 6:57 
GeneralRe: Network connection staus Pin
Joachim Kerschbaumer6-Feb-08 22:36
Joachim Kerschbaumer6-Feb-08 22:36 
GeneralRe: Network connection staus Pin
vijboy7-Feb-08 7:57
vijboy7-Feb-08 7:57 
GeneralEditorBrowsable / Browsable Pin
AndrewVos6-Feb-08 6:42
AndrewVos6-Feb-08 6:42 
GeneralDataGridView (WinForms) Pagination Section Pin
Tristan Rhodes5-Feb-08 23:23
Tristan Rhodes5-Feb-08 23:23 
GeneralRe: DataGridView (WinForms) Pagination Section Pin
led mike6-Feb-08 5:21
led mike6-Feb-08 5:21 
GeneralRe: DataGridView (WinForms) Pagination Section Pin
Tristan Rhodes6-Feb-08 23:47
Tristan Rhodes6-Feb-08 23:47 
GeneralRe: DataGridView (WinForms) Pagination Section Pin
led mike7-Feb-08 4:57
led mike7-Feb-08 4:57 
GeneralRe: DataGridView (WinForms) Pagination Section Pin
Tristan Rhodes11-Feb-08 23:14
Tristan Rhodes11-Feb-08 23:14 
Questionhow to write a program in JAVA to mesure ping delay...? Pin
sacr835-Feb-08 22:13
sacr835-Feb-08 22:13 
AnswerRe: how to write a program in JAVA to mesure ping delay...? Pin
Colin Angus Mackay6-Feb-08 2:21
Colin Angus Mackay6-Feb-08 2:21 
Questioninterface and abstract class Pin
Member 47080775-Feb-08 18:43
Member 47080775-Feb-08 18:43 
GeneralRe: interface and abstract class Pin
Giorgi Dalakishvili5-Feb-08 20:38
mentorGiorgi Dalakishvili5-Feb-08 20:38 
GeneralRe: interface and abstract class Pin
bwilhite8-Feb-08 3:41
bwilhite8-Feb-08 3:41 
GeneralRe: interface and abstract class Pin
Mark Churchill8-Feb-08 17:06
Mark Churchill8-Feb-08 17:06 
GeneralRe: interface and abstract class Pin
bwilhite9-Feb-08 3:32
bwilhite9-Feb-08 3:32 
Questionerror handling in sql server 2000 Pin
Member 47080775-Feb-08 18:42
Member 47080775-Feb-08 18:42 

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.