There are a lot of articles in this website explain the technical of P/Invoke and inter operation between VC and .NET.
BinName
Posts
-
Calling a VS2008 DLL from VS 6.0 dll -
How to wrap MFC control in C++/CLIHello everyone, I have a lot of MFC control classes in C++,and I want to wrap them with C++/CLI and resue them in C# Application. but I do not know how to wrap them. Can anyone give an hand? Thanks a lot.
-
Show a PDF file in a MDI application of C#Hello everybody, I encounter a problem and need your help. In a MDI application of C#, I want to show a PDF file in a child form. I have added a PDF browser to the child form and change it to pulic, just like below: public AxAcroPDFLib.AxAcroPDF pdfBrowser; When the MDI load, my code likes below: Code:
private void MDIFrm_Load(object sender, EventArgs e) { ChildFrm myChildFrm = new ChildFrm(); myChildFrm.pdfBrowser.LoadFile("C:\\dev\\linux-i18n-intro.pdf"); myChildFrm.MdiParent = this; myChildFrm.Show(); }
However,I can not see the PDF content in the Child form,but if I set the ChildFrm as the strartup object,it will show PDF correctly. Could anyone give some suggestions? Thanks very much! Birch