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

Managed C++/CLI

 
GeneralRe: Program too big to fit in memory Pin
Cyrilix4-Oct-08 8:45
Cyrilix4-Oct-08 8:45 
AnswerRe: Program too big to fit in memory Pin
Mark Salsbery4-Oct-08 7:24
Mark Salsbery4-Oct-08 7:24 
GeneralRe: Program too big to fit in memory Pin
Cyrilix4-Oct-08 8:46
Cyrilix4-Oct-08 8:46 
QuestionString conversion in c++/CLI Pin
Robin Imrie1-Oct-08 4:05
professionalRobin Imrie1-Oct-08 4:05 
AnswerRe: String conversion in c++/CLI Pin
led mike1-Oct-08 4:36
led mike1-Oct-08 4:36 
GeneralRe: String conversion in c++/CLI Pin
Robin Imrie1-Oct-08 4:45
professionalRobin Imrie1-Oct-08 4:45 
Questiongtk installation Pin
SeshaSridhar1-Oct-08 1:00
SeshaSridhar1-Oct-08 1:00 
QuestionError while calling VC# function in VC++ Pin
Andy Rama29-Sep-08 0:36
Andy Rama29-Sep-08 0:36 
Hi to all,

I have an 'Windows Form Control Library' "VideoWindow.dll" in VC#.Net 2008, having code as following,
<block><br />
    using DirectShowLib;//C# DirectShow Library<br />
<br />
<br />
    public partial class VideoWindow : UserControl<br />
    {<br />
        public VideoWindow()<br />
        {<br />
            InitializeComponent();<br />
        }<br />
<br />
        Label m_picVideoWindow = new Label();<br />
<br />
        public int SetPreview(IVideoWindow vwRenderer)<br />
        {<br />
            int hr = 0;<br />
            if (m_picVideoWindow.Bounds.IsEmpty)<br />
                return hr;<br />
            try<br />
            {<br />
                hr = vwRenderer.put_WindowStyle(WindowStyle.Child | WindowStyle.ClipChildren | WindowStyle.ClipSiblings);<br />
                DsError.ThrowExceptionForHR(hr);<br />
                hr = vwRenderer.put_Owner(m_picVideoWindow.Handle);<br />
                DsError.ThrowExceptionForHR(hr);<br />
                hr = vwRenderer.SetWindowPosition(0, 0, m_picVideoWindow.Width, m_picVideoWindow.Height);<br />
                DsError.ThrowExceptionForHR(hr);<br />
                hr = vwRenderer.put_Visible(OABool.True);<br />
                DsError.ThrowExceptionForHR(hr);<br />
            }<br />
            catch (Exception ex)<br />
            {<br />
            }<br />
            return hr;<br />
        }<br />
    }<br />
</block>


When I am calling SetPreview() from my VC++.Net 2008 MFC Application as follows,
<block><br />
IVideoWindow	*pWidnow;//C++ DirectShow Library<br />
CWinFormsControl<VideoWindow::VideoWindow> *a1 = new CWinFormsControl<VideoWindow::VideoWindow>();<br />
<br />
(*a1)->SetPreview(pWidnow);<br />
</block>

It gives compile error as,
error C2664: 'VideoWindow::VideoWindow::SetPreview' : cannot convert parameter 1 from 'IVideoWindow *' to 'DirectShowLib::IVideoWindow ^'

Please help me to solve this error.

Regards,
Aniket A. Salunkhe
AnswerRe: Error while calling VC# function in VC++ Pin
led mike29-Sep-08 4:31
led mike29-Sep-08 4:31 
AnswerRe: Error while calling VC# function in VC++ Pin
Mark Salsbery29-Sep-08 7:27
Mark Salsbery29-Sep-08 7:27 
GeneralRe: Error while calling VC# function in VC++ Pin
George L. Jackson1-Oct-08 3:21
George L. Jackson1-Oct-08 3:21 
GeneralRe: Error while calling VC# function in VC++ Pin
Mark Salsbery1-Oct-08 4:51
Mark Salsbery1-Oct-08 4:51 
GeneralRe: Error while calling VC# function in VC++ Pin
Andy Rama3-Oct-08 19:16
Andy Rama3-Oct-08 19:16 
GeneralRe: Error while calling VC# function in VC++ Pin
Mark Salsbery4-Oct-08 6:42
Mark Salsbery4-Oct-08 6:42 
AnswerRe: Error while calling VC# function in VC++ [modified] Pin
George L. Jackson1-Oct-08 7:14
George L. Jackson1-Oct-08 7:14 
GeneralRe: Error while calling VC# function in VC++ Pin
Andy Rama3-Oct-08 19:28
Andy Rama3-Oct-08 19:28 
QuestionCOM object in .net whose threading model is STA, not both Pin
Shao Voon Wong28-Sep-08 23:39
mvaShao Voon Wong28-Sep-08 23:39 
QuestionWhy does Debug::Print prints in the release build version? [modified] Pin
Shao Voon Wong28-Sep-08 15:29
mvaShao Voon Wong28-Sep-08 15:29 
AnswerRe: Why does Debug::Print prints in the release build version? Pin
George L. Jackson29-Sep-08 5:50
George L. Jackson29-Sep-08 5:50 
QuestionHow to avoid loading an already loaded shared library Pin
Yashusid25-Sep-08 18:53
Yashusid25-Sep-08 18:53 
AnswerRe: How to avoid loading an already loaded shared library Pin
led mike26-Sep-08 4:37
led mike26-Sep-08 4:37 
QuestionMarshal::Copy fails when trying to copy from a char* to a System::Char[] Pin
Cyrilix25-Sep-08 10:50
Cyrilix25-Sep-08 10:50 
GeneralRe: Marshal::Copy fails when trying to copy from a char* to a System::Char[] Pin
George L. Jackson25-Sep-08 11:54
George L. Jackson25-Sep-08 11:54 
GeneralRe: Marshal::Copy fails when trying to copy from a char* to a System::Char[] Pin
Cyrilix25-Sep-08 12:27
Cyrilix25-Sep-08 12:27 
GeneralRe: Marshal::Copy fails when trying to copy from a char* to a System::Char[] Pin
Mark Salsbery25-Sep-08 13:00
Mark Salsbery25-Sep-08 13:00 

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.