[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 616
  • Last Modified:

C++ Object in WPF

Hello,
is it possible to use a C++ in an WPF app and create an object from it? As ample, this is used in C++ app:
MediaWnd * m_pPlayer;
m_pPlayer = NULL;	
m_pPlayer = new MediaWnd();
m_pPlayer->SetUsageMode(USAGE_PLAYER); 

m_pPlayer->CreateWnd(this->m_hWnd);
m_pPlayer->MoveWindow(rcConverter);

Open in new window


How to make this in a WPF C# app?

Ingo
0
Ocrana
Asked:
Ocrana
1 Solution
 
jkrCommented:
MSDN outlines a few ways at http://msdn.microsoft.com/en-us/library/ms742522.aspx ("WPF and Win32 Interoperation"). You might also find http://social.msdn.microsoft.com/Forums/en/wpf/thread/c2e6bcc0-bfdd-4686-9e70-7b77d772839f ("C++ and WPF") interesting.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now