Christoph Nemmaier
|
Re: Transfer File from Windows to QNX 6.5 32-bit
|
Christoph Nemmaier
11/23/2011 4:23 AM
post90255
|
Re: Transfer File from Windows to QNX 6.5 32-bit
Hi,
sorry, I'm not much into programming C#. But I assume you create some button and associate some OnButtonPressed() method
. In this method, you may want to create a file somewhere, write some data to it, and close it. You may do this by using
an FTP client API. I remember I've seen some sample code for C++ in Visual Studio help before, so there must be a C#
interface, too.
If you use FTP, you'll have to set up an FTP server on QNX. This is no big deal, please refer to the QNX documentation
for ftpd.
As an alternative, you may want to use Windows' generic file open, write, and close mechanisms. In this case, you may
want to have your QNX file system acessible via UNC paths, or via a Windows pseudo drive letter. You can accomplish this
by setting up smbd on your QNX platform. Which is probably a little more work to do than installing ftpd.
I don't think Visual Studio provides a SSH API.
And after all, you also may write an own TCP or what-else server to run on QNX, capable of creating files, and use TCP
or what-else client functions to control it remotely from your C# code.
Christoph
|
|
|