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

Managed C++/CLI

 
GeneralC++ data strucures..help needed Pin
Member 205623318-Jun-05 14:53
Member 205623318-Jun-05 14:53 
GeneralRe: C++ data strucures..help needed Pin
toxcct20-Jun-05 5:59
toxcct20-Jun-05 5:59 
GeneralHelp: change the 'Resource File Name' property Pin
Qwick Miller18-Jun-05 13:22
Qwick Miller18-Jun-05 13:22 
GeneralRe: Help: change the 'Resource File Name' property Pin
Saksida Bojan27-Jun-05 10:06
Saksida Bojan27-Jun-05 10:06 
GeneralImage Processing Pin
usbah18-Jun-05 0:06
usbah18-Jun-05 0:06 
GeneralCreating Multi-Dimensional Controls Pin
Hmmkk17-Jun-05 1:21
Hmmkk17-Jun-05 1:21 
GeneralRe: Creating Multi-Dimensional Controls Pin
Hmmkk17-Jun-05 7:15
Hmmkk17-Jun-05 7:15 
GeneralManaged C++ DLL that uses DirectShow Pin
CVertex16-Jun-05 17:34
CVertex16-Jun-05 17:34 
Hi,

I'm building an that schedule/records up to 4 streams simultaneously using DirectShow and .NET.

To get the best control of DirectShow, I've programmed a basic prototype in pure C++ (command-line only) to demonstrate the application will meet performance requirements.

Now I have to extend/reprogram the prototype to include a GUI. Since the other programmers here only know C# so the GUI will be programmed in C# - which is a good idea anyway.

The recorder (the part that builds/runs DirectShow graphs) for our previous product was written as an C++ ActiveX component, which turned out to be difficult to debug, extend and maintain. So, my recording engine will be written in Managed C++ as a .NET DLL to interface with the GUI.

My first basic prototype used Smart Pointers for DirectShow objects, but I think I cannot use ATL CComPtr within Managed C++ classes because I get compiler errors like:

error C3633: cannot define 'pGraphBuilder' as a member of managed 'RecorderMCpp::Pvr150Graph'
because of the presence of default constructor 'ATL::CComPtr<t>::__ctor' on class 'ATL::CComPtr<t>'

The docs recommend I delete my CComPtr<igraphbuilder> pGraph line to resolve this error. Is there a safe way to resolve this error?

Is there a safe way I can use smart pointers inside a Managed C++ class?

Since DirectShow COM objects are unmanaged, is there another way I can reference DirectShow objects from within a Managed C++ class?

As a last resort, I can write generic C++ class and create Managed wrappers, but I want to avoid that because it's more work.

Any help would be greatly appreciated with gold or subway tokens.



-CV
GeneralRe: Managed C++ DLL that uses DirectShow Pin
ursus zeta18-Jun-05 8:31
ursus zeta18-Jun-05 8:31 
GeneralRe: Managed C++ DLL that uses DirectShow Pin
CVertex21-Jun-05 17:34
CVertex21-Jun-05 17:34 
GeneralThis is WAY beyond me. Pin
ursus zeta25-Jun-05 8:54
ursus zeta25-Jun-05 8:54 
GeneralRe: This is WAY beyond me. Pin
CVertex25-Jun-05 21:48
CVertex25-Jun-05 21:48 
GeneralHelp with type &quot;ref&quot;...... Pin
Qwick Miller16-Jun-05 11:17
Qwick Miller16-Jun-05 11:17 
GeneralRe: Help with type &quot;ref&quot;...... Pin
Christian Graus16-Jun-05 17:44
protectorChristian Graus16-Jun-05 17:44 
GeneralRe: Help with type &quot;ref&quot;...... Pin
Qwick Miller17-Jun-05 13:06
Qwick Miller17-Jun-05 13:06 
GeneralQuestions Pin
Saksida Bojan15-Jun-05 20:23
Saksida Bojan15-Jun-05 20:23 
GeneralRe: Questions Pin
Christian Graus16-Jun-05 17:45
protectorChristian Graus16-Jun-05 17:45 
GeneralRe: Questions Pin
Saksida Bojan16-Jun-05 19:15
Saksida Bojan16-Jun-05 19:15 
GeneralRe: Questions Pin
Christian Graus17-Jun-05 21:19
protectorChristian Graus17-Jun-05 21:19 
GeneralAssembly language using Visual C++ .Net IDE Pin
alexwkobe15-Jun-05 0:33
alexwkobe15-Jun-05 0:33 
GeneralRe: Assembly language using Visual C++ .Net IDE Pin
tom_dx17-Jun-05 2:24
tom_dx17-Jun-05 2:24 
GeneralRe: Assembly language using Visual C++ .Net IDE Pin
alexwkobe19-Jun-05 13:47
alexwkobe19-Jun-05 13:47 
QuestionPanel as percentage of main window?? Pin
richiemac14-Jun-05 22:20
richiemac14-Jun-05 22:20 
AnswerRe: Panel as percentage of main window?? Pin
Saksida Bojan15-Jun-05 20:26
Saksida Bojan15-Jun-05 20:26 
Generalscreensaver source code samples Pin
howdyeveryone14-Jun-05 22:12
howdyeveryone14-Jun-05 22:12 

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.