Re: Can I do this?



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" <brutger@xxxxxxxxxxx> wrote in message news:d81i5d$3ua$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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/default.asp?url=/library/en-us/dncscol/html/csharp09192002.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



.



Relevant Pages

  • Re: speedup for examining large Idispatch-derived objects
    ... This is precisely what happens during marshalling. ... binary block, sending them to the server process, unpacking them on the ... state over to the client process (the code must be implemented in a DLL ... it really points to a local proxy to X. ...
    (microsoft.public.vc.atl)
  • Re: Remote object with arguments?
    ... marshalling myself using the RemotingServices.Marshal command, ... Server-activated objects require a default constructor. ... "Server Activation" ... "Client Activation" ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Remoting Error....Clarification, please help
    ... yes, it's a win forms app, I was hoping that I wouldn't have to marshal the ... > 1) Is your server a windows forms app? ... have you tried marshalling the ... I next make a call within the shared interface from the client. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Outlook Web Access premium funktioniert nicht
    ... Das Front-End steht in der DMZ, der Backend ... Selbst auf dem Fron-End läuft der premium Client ... Die Server sind alle Windows Server 2003, und Exchange ...
    (microsoft.public.de.exchange)
  • setting up the app.config for a middle teir (both a server and client)?
    ... middle teir and a backend. ... How do I setup the app config on the middle ... teir to be both a client to the backend and a server for the front end? ... Here is the current app.config setup for just a server: ...
    (microsoft.public.dotnet.framework.remoting)