Hello
I found two parallel routines
#include "StdAfx.h"
#include "ManagedProxy.h"
//Here is C++ inside ManagedProxy.cpp
using namespace System;
using namespace System::Runtime::InteropServices;
using namespace System::Reflection;
using System;
using System.Text;
using System.Diagnostics;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.IO;
Here is C#
[CommandMethod("samp32")]
public static void samp32()
{
_AcEd.Editor ed = _AcAp.Application.DocumentManager.MdiActiveDocument.Editor;
try
{
Bricscad.Windows.OpenFileDialog dlg =
new Bricscad.Windows.OpenFileDialog("Test", "Drawing", "dwg", "Bricscad File Nav",
_AcWnd.OpenFileDialog.OpenFileDialogFlags.AllowAnyExtension |
_AcWnd.OpenFileDialog.OpenFileDialogFlags.AllowMultiple);
if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
foreach (String file in dlg.GetFilenames())
ed.WriteMessage(file);
}
}
catch (System.Exception ex)
{
ed.WriteMessage(ex.Message);
}
}
Solution01 ,

step00=you start any app.cpp.exe with NativeToManagedBridge.dll
step01=you extract all DLL.names. files from NativeToManagedBridge.dll
step02=you search all 'dll.names outoff C# from step01
you extract all 'DLL.names inside C++ from step01
step03=You write sample MINICALL.LPI OR MINICALL.DPR (e.g consoleapp)
step04=You load all 'DLL from step02 but inside C++
Cele mai frumoase rugăciuni ale Pr. Arsenie Boca. Multumesc.
Anyone can remaster source ..
Thank you.