I have a webserver, implemented in C#, which has a method that create a pdf file from the parameters i send to it. I want to know if it is possible to call this method and send de parameters from Delphi 7. If it is possible, what is the best way to do it?
thank you!
Related
We have a MFC application setup where a client receives data from server whenever new data is available. Client is being rewritten in C# but communication with server part is in MFC. We have written a C++/CLI wrapper to classes associated with MFC and are able to receive data on application initialization. Communication engine is still in MFC and we have created wrapper classes only for data items. When we initialize the CLI wrapper we copy the data from MFC arrays to CLI arrays. But am not sure how to get the data which is received lets say after 5 seconds. How can it notify C++/CLI wrapper that new data has been received by MFC code running in the background. Please let me know if you need clarifications. Thanks.
or
Is there a way to invoke a C++/CLI method from C++ code ?
NOTE:
its a mixed mode compilation which has vc++ and C++/CLI code.
Edit ::
As mentioned by Hans below added request for callback solutions.
Resolved this issue by converting, CPP events to CLI delegates, which are recognized by .NET as .NET delegates.
this way we can control actions at C# end from CPP. If anybody has a better solution please share.
I have to check a Profinet Network in order to get all the components. I could ask them via NSMP, or DCP, but I need the UUID to after that executing functions via RPC.
The problem is that, there was a function named LookUpBegin(next and stop) that did the work for Windows NT, but is unsupported after Vista OS. Now I have seen that there has to be something here but I have not been able to find what it is, where it is located...
Have you had any experience with DCE-RPC in C++?
Best way? Any sample? whatever.
Another question is: I have to execute functions in a device server that I do not know. Is there any function of RPC that allows to execute a function giving an id or similar and a string? A kind of socket that you send to the server and if it was well coded the server would execute something. Because I have been able to sniff the traces via Wireshark. So I could know some part of them.
Solution: make your own packets and send them via sockets. Wireshark can help.
This is a followon to a prior question I posted (see here). I'm trying to call my native/C++ code from Javascript running in an HTML page. The answer in the referenced question was to create a COM object. The Javascript can then create an instance of the COM object and invoke methods on it getting to the native/C++ code.
So now I'm left with trying to create a simple COM object to accept the call from the Javascript. It looks like the way to go is to create a DLL and put the COM object in that DLL. Years ago I did tons of reading on COM and have tried to forget it since then :) Now I'm getting a headache wondering how to go about this easily without becoming an expert in COM.
Is there a simple/easy way to setup a DLL with a COM object that you would recommend?
EDIT: My application is written using native C++/Win32/MFC. I have an MFC dialog which uses the IE ActiveX browser control to render locally generated HTML. Currently the button handler code is all in Javascript, but as you can see from the referenced question, my goal is to handle it on the C++ side.
As I know the easy and fast way to create COM objects is to create an ATL project.
here's a nice tutorial that explains the steps to follow.
I use an applet to bundle some files into a zip and during that I create a description-object.
I already utilize JavaEE Webservices to send the description-object to the server but how do I transport my zip?
I'm fairly new to Java EE and want to know if there is a common way to do that already (since java ee offers a lot) or would I use something ordinary like ftp?
I imagine something like a takeFileWebService that I can use from my applet, which then calls some Method onFileReceived on the serverside to handle the file, dunno :/
Thank in advance,
philipp
I'm using kind of an uncommon, maybe even insecure way now. Since I need to send a describing Object anyway I just appended my file as an array of bytes.
I lookup my TakeStuffEJB via JNDI, and then I'll invoke a remote-method that wants a byte[] as parameter. I do CRC32 integrity checks on client and server side and it works. There is a limit to filesize though. Files above 20 MB whill throw a MarshalException("Not Completed") after a while.
Maybe this is insane because I don't think RMI was designed for filetransfers. But I'll give it a try since the files I'm sending a rarely larger than 1 MB.
I need to create a C++ add-in to Matlab where add-in will listen to packet coming from network and notify Matlab to draw an packet analysis graph. I understood that using a MEX file I can easily call c functions inside Matlab, but I could not find a way to notify Matlab when data is available at C++ end. Is there any way we can pass a user-defined Matlab function pointer into my C++ add-in?
BTW, I found this thread: real-time-data-in-matlab
Unfortunately suggestion is to use ActiveX control, but in my case, I need to create add-in in pure C++.
Have a look at Gurobi. It 'just' prints status information to the command window. Using a mex command like mexCallMATLAB you may access 'any' matlab function.
Would it make your life easier if you could listen for the network data directly from Matlab? I've never tried it, but there are a few submissions on MathWorks' File Exchange site that allow you to create sockets within Matlab. Here's a TCP/IP example that creates both a client and a server, and here's a similar UDP example.