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

Managed C++/CLI

 
QuestionCamera-Control (firewire) Pin
LoKi.aK2-Dec-09 1:25
LoKi.aK2-Dec-09 1:25 
AnswerRe: Camera-Control (firewire) Pin
Jonathan Davies11-Dec-09 5:54
Jonathan Davies11-Dec-09 5:54 
QuestionManaged forms application with 'autosave' wanted Pin
iMikki1-Dec-09 7:28
iMikki1-Dec-09 7:28 
AnswerRe: Managed forms application with 'autosave' wanted Pin
zhushaolin20051-Dec-09 20:18
zhushaolin20051-Dec-09 20:18 
GeneralRe: Managed forms application with 'autosave' wanted Pin
iMikki2-Dec-09 1:23
iMikki2-Dec-09 1:23 
GeneralRe: Managed forms application with 'autosave' wanted Pin
Mark Salsbery2-Dec-09 7:59
Mark Salsbery2-Dec-09 7:59 
GeneralRe: Managed forms application with 'autosave' wanted Pin
iMikki2-Dec-09 9:05
iMikki2-Dec-09 9:05 
GeneralRe: Managed forms application with 'autosave' wanted Pin
Mark Salsbery2-Dec-09 10:29
Mark Salsbery2-Dec-09 10:29 
GeneralRe: Managed forms application with 'autosave' wanted Pin
iMikki2-Dec-09 10:36
iMikki2-Dec-09 10:36 
GeneralRe: Managed forms application with 'autosave' wanted [modified] Pin
iMikki3-Dec-09 1:38
iMikki3-Dec-09 1:38 
QuestionRead Excel sheet Pin
mikobi29-Nov-09 22:01
mikobi29-Nov-09 22:01 
AnswerRe: Read Excel sheet Pin
T210230-Nov-09 1:16
T210230-Nov-09 1:16 
GeneralRe: Read Excel sheet Pin
mikobi1-Dec-09 6:51
mikobi1-Dec-09 6:51 
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 

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.