Hi William,
Many thanks for the prompt feedback and links. I will be reading them in
greater detail shortly. I have a couple more questions:
1). I quickly perused through the links you kindly provided - and I came
accross the dreaded word of "marshalling" - why are we marshalling data
if it we are running in the same process - (is data representation
between C++ and Managed C++ so different as to require in-process
marcshalling?). Is there any documentation you aware of that talks about
the performance hit due to marshalling?
2). My backend is pure java (J2EE app running on Linux). I have made the
decision to use.NET as the client app (front end) because SWING sucks
big time. I was wondering if you have any suggestions on how to
communicate between the backend and the frontend. I can't use XML
because it is too heavyweight and I will incur performance hits (parsing
related) on both sides. I was thinking of using a servlet layer on the
server side and then use HTTPS requests from the client to send base 64
encoded data from the server - This will allow me to receive files
stored at the backend server in Linux (MSB format). Do you have any
suggetsions/comments on how I can do this base 64 encoded HTTP comms
from the client side (or maybe another suggestion of how to communivcate
between the backend and frontend)
I look forward to your feedback.
Tkx
B.
William DePalo [MVP VC++] wrote:
"Beatrice Rutger" <br*****@no.spam.com> wrote in message
news:d8**********@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com...
I want to use Net Forms (I think thats what theyre called) to build a
really sexy, cool front end - but then use Visual C++ (not VC++ .NET -
because I want native code, not IL) to create a "blisteringly" fast
application with a cool front end.
OK.
Can I do this?. If yes, please tell me how it can be done.
Yes, sure. You'll need to decide if the native parts of the application run
in process with the managed parts or not.
If the native parts run in process then you can create one or more DLLs
whose exports you call from your forms by means of the Platform Infovke
(P/Invoke) capability:
http://msdn.microsoft.com/library/de...rp09192002.asp
http://msdn.microsoft.com/msdnmag/issues/03/07/NET/
http://msdn.microsoft.com/msdnmag/issues/04/10/NET/
The links I chose all show how C# card can invoke native code because often
that's what people want to do. You can use P/Invoke from any .Net language.
If the native parts run out of process then you can use some IPC technique
to hop the fence - e.g. sockets.
Regards,
Will