Click here to Skip to main content
15,909,498 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: what is the Factory rule in .net ? Pin
Colin Angus Mackay27-Oct-06 3:36
Colin Angus Mackay27-Oct-06 3:36 
GeneralRe: what is the Factory Pattern in .net ? [modified] Pin
PavanPareta30-Oct-06 1:30
PavanPareta30-Oct-06 1:30 
GeneralRe: what is the Factory Pattern in .net ? Pin
Deepa Parikh7-Nov-06 2:52
Deepa Parikh7-Nov-06 2:52 
AnswerRe: what is the Factory rule in .net ? Pin
Kevin McFarlane27-Oct-06 3:56
Kevin McFarlane27-Oct-06 3:56 
QuestionVC++.net & VB.Net Compatibility Pin
ksandy4526-Oct-06 2:20
ksandy4526-Oct-06 2:20 
AnswerRe: VC++.net & VB.Net Compatibility Pin
Kevin McFarlane26-Oct-06 5:09
Kevin McFarlane26-Oct-06 5:09 
GeneralRe: VC++.net & VB.Net Compatibility Pin
ksandy4526-Oct-06 19:44
ksandy4526-Oct-06 19:44 
GeneralRe: VC++.net & VB.Net Compatibility [modified] Pin
AIMrus26-Oct-06 21:10
AIMrus26-Oct-06 21:10 
Hy Sandy,

I faced a similar problem, and find the solution.
In my case, I created a C++ .NET Class Library with Form class and ported to C+++ Builder as an MDI Child.

I absolutly sure, your problem can be solved too.

Some suggestion:

-Create Class library with Form class
-Write a public Interface with CreateForm() method
-Write a public class which expose the Interface; in the CreateForm() method create a Form and call the form Show() method;
-Create a Type Library and register it with regasm.exe
-Add the assembly to the GAC with gacutil.exe

In the Other DEV Environment:
-import type library
-create an instance of the public class
-Call the CreateForm() method and you'll see a form Smile | :)

To resolve the MDI child problem
-pass the parent handle to the childe + Call SetParent() WinAPI fuction
-set the child window style to MDIShilde with the SetWindowLong() WinAPI fuction

This guideline is bullshit, I know...
You probably dont understand, what I mean... but I tryed. Smile | :)

I guess, there is a simpler solution to your problem, because you stay in the .NET Framework...

If I have some free time, I'll write a tutorial to explain everything...
Till then, don't give up...


-- modified at 5:13 Friday 27th October, 2006

Useful resources:
MSDN .Net Interop articles

Exposing .NET Components to COM By Nick Parker.
http://www.codeproject.com/dotnet/nettocom.asp

Understanding Classic COM Interoperability With .NET Applications By Aravind C.
http://www.codeproject.com/dotnet/cominterop.asp

.NET - COM Interoperability By KRISHNA PRASAD.N.
http://www.codeproject.com/dotnet/COM_DOTNET_INTEROP.asp
GeneralRe: VC++.net & VB.Net Compatibility Pin
ksandy4527-Oct-06 18:56
ksandy4527-Oct-06 18:56 
GeneralSolution Pin
AIMrus27-Oct-06 20:55
AIMrus27-Oct-06 20:55 
QuestionSecurity Setting on web.config Pin
BLOEDHOND25-Oct-06 22:59
BLOEDHOND25-Oct-06 22:59 
Questionprogamatically call WindowActivate event Pin
K edar V25-Oct-06 21:58
K edar V25-Oct-06 21:58 
Question.NET Form >> C++ Builder MDI Child Pin
AIMrus25-Oct-06 21:45
AIMrus25-Oct-06 21:45 
AnswerRe: .NET Form >> C++ Builder MDI Child Pin
AIMrus26-Oct-06 5:46
AIMrus26-Oct-06 5:46 
QuestionDoubt? Pin
srilu nagalla25-Oct-06 20:08
srilu nagalla25-Oct-06 20:08 
AnswerRe: Doubt? Pin
PavanPareta25-Oct-06 20:47
PavanPareta25-Oct-06 20:47 
GeneralRe: Doubt? Pin
srilu nagalla25-Oct-06 20:51
srilu nagalla25-Oct-06 20:51 
GeneralRe: Doubt? Pin
ednrgc27-Oct-06 7:21
ednrgc27-Oct-06 7:21 
Questionneed a today plug-in sample in vb.net cf Pin
spunky1a25-Oct-06 8:21
spunky1a25-Oct-06 8:21 
QuestionHow to debug when I'm developing an outlook add-in using COM? [modified] Pin
OctopusThu25-Oct-06 6:41
OctopusThu25-Oct-06 6:41 
Questionwhich dll should i import/reference?? Pin
K edar V25-Oct-06 3:12
K edar V25-Oct-06 3:12 
QuestionParameters Pin
Tauseef A24-Oct-06 10:37
Tauseef A24-Oct-06 10:37 
AnswerRe: Parameters Pin
sujithkumarsl25-Oct-06 6:25
sujithkumarsl25-Oct-06 6:25 
QuestionHow to change Profile provider at runtime Pin
lyhn24-Oct-06 0:47
lyhn24-Oct-06 0:47 
AnswerRe: How to change Profile provider at runtime Pin
lyhn24-Oct-06 0:55
lyhn24-Oct-06 0:55 

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.