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

Managed C++/CLI

 
GeneralRe: Read Excel sheet Pin
T21021-Dec-09 15:17
T21021-Dec-09 15:17 
GeneralRe: Read Excel sheet Pin
mikobi2-Dec-09 4:19
mikobi2-Dec-09 4:19 
AnswerRe: Read Excel sheet Pin
mikobi4-Dec-09 20:53
mikobi4-Dec-09 20:53 
QuestionHow to make a delay and latch in C++ Pin
chan1127-Nov-09 3:46
chan1127-Nov-09 3:46 
AnswerRe: How to make a delay and latch in C++ Pin
Luc Pattyn27-Nov-09 4:17
sitebuilderLuc Pattyn27-Nov-09 4:17 
QuestionVisual C++ CLR,How to design the UI like Adobe After Effects's TimeLine Panel Pin
akira3223-Nov-09 16:35
akira3223-Nov-09 16:35 
AnswerRe: Visual C++ CLR,How to design the UI like Adobe After Effects's TimeLine Panel Pin
N a v a n e e t h26-Nov-09 0:32
N a v a n e e t h26-Nov-09 0:32 
QuestionCLR,How do I calculate FPS Pin
akira3223-Nov-09 0:03
akira3223-Nov-09 0:03 
I use Application::Idle to calculate FPS, but it seems to be unsuitable. Becuase the Application::Idle does not like the CWinApp::Idle in MFC.
Application::Idle event is not called in every frame. Could somebody know how to calculate FPS in Visual C++ CLR project?

[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
 Application::EnableVisualStyles();
 Application::SetCompatibleTextRenderingDefault(false);

 Form1^ form1=gcnew Form1();
 Application::Idle += gcnew System::EventHandler(form1,&Form1::Form1_Idle);
 Application::Run(form1);
 return 0;
}

 public: System::Void Form1_Idle(System::Object^  sender, System::EventArgs^  e) 
   {
    DWORD currentTime=GetTickCount();
    DWORD deltaTime=currentTime-m_PlayCurrentTime;

    m_PlayCurrentTime=currentTime;

    m_FPS->FrameCnt++;
    m_FPS->TimeElapsed+=deltaTime;

    if (m_FPS->TimeElapsed >= 1000)
    {
     m_FPS->CalculateFPS();
     m_FPS->TimeElapsed -= 1000;
     m_FPS->FrameCnt    = 0;
     FPStoolStripStatusLabel->Text=L"FPS=" + m_FPS->dFPS.ToString(); 
    }       
   }

QuestionRe: CLR,How do I calculate FPS Pin
Mark Salsbery23-Nov-09 6:39
Mark Salsbery23-Nov-09 6:39 
Answer[Message Deleted] [modified] Pin
akira3223-Nov-09 16:38
akira3223-Nov-09 16:38 
GeneralRe: CLR,How do I calculate FPS Pin
Mark Salsbery23-Nov-09 16:50
Mark Salsbery23-Nov-09 16:50 
GeneralRe: CLR,How do I calculate FPS Pin
akira3223-Nov-09 18:17
akira3223-Nov-09 18:17 
GeneralRe: CLR,How do I calculate FPS Pin
Mark Salsbery23-Nov-09 18:59
Mark Salsbery23-Nov-09 18:59 
QuestionHow can i access which .exe or file are open after computer starting Pin
m_mun18-Nov-09 22:18
m_mun18-Nov-09 22:18 
AnswerRe: How can i access which .exe or file are open after computer starting Pin
T210226-Nov-09 0:21
T210226-Nov-09 0:21 
QuestionCLR,What is the event for the scrolling of middle mouse scroll? Pin
akira3217-Nov-09 22:08
akira3217-Nov-09 22:08 
AnswerRe: CLR,What is the event for the scrolling of middle mouse scroll? Pin
Richard MacCutchan17-Nov-09 22:49
mveRichard MacCutchan17-Nov-09 22:49 
QuestionImport C# dll in C++ application Pin
Game-point17-Nov-09 18:54
Game-point17-Nov-09 18:54 
AnswerRe: Import C# dll in C++ application Pin
Game-point18-Nov-09 17:52
Game-point18-Nov-09 17:52 
QuestionHow to use PropertyGrid to browse and modify the attributes of customized object Pin
akira3217-Nov-09 16:37
akira3217-Nov-09 16:37 
AnswerRe: How to use PropertyGrid to browse and modify the attributes of customized object [modified] Pin
akira3218-Nov-09 19:52
akira3218-Nov-09 19:52 
QuestionC++\CLI Assembly.Load failed [modified] Pin
Huisheng Chen17-Nov-09 16:10
Huisheng Chen17-Nov-09 16:10 
QuestionCLR,How to modify the AutoScrollMinSize of Form1 by coding? [modified] Pin
akira3216-Nov-09 21:02
akira3216-Nov-09 21:02 
AnswerRe: CLR,How to modify the AutoScrollMinSize of Form1 by coding? Pin
Luc Pattyn17-Nov-09 1:37
sitebuilderLuc Pattyn17-Nov-09 1:37 
AnswerRe: CLR,How to modify the AutoScrollMinSize of Form1 by coding? Pin
Shameel23-Nov-09 7:48
professionalShameel23-Nov-09 7:48 

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.