Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Remote connection to host PC in Windows 7 (Remote connection to host PC)
Remote connection to host PC in Windows 7 [message #44349] Thu, 26 February 2015 11:41 Go to next message
emerald
Messages: 5
Registered: February 2015
Location: Murchison
Promising Member
I am using U++ in windows 7 64 bit OS.
I would like to access few files and folders in remote windows PC
What would be a feasible method to establish remote connection to host PC from my computer using U++ ??.
Please help with any sample code.

[Updated on: Fri, 27 February 2015 09:56]

Report message to a moderator

Re: Remote connection to host PC in Windows 7 [message #44357 is a reply to message #44349] Sat, 28 February 2015 16:30 Go to previous messageGo to next message
Edward is currently offline  Edward
Messages: 34
Registered: February 2015
Location: United States
Member
Quote:
What would be a feasible method to establish remote connection to host PC from my computer using U++ ??.


Remote as in in another room/office?
You should really create a HomeGroup/Workgroup, a local network between the two PCs. Then you can quickly and easily share directories/folders containing your files, and access them.

Over the Web?
Using a VLAN, or just manually email them if you have very few.

Do not try to launch projects from a remote PC.


My mission is to find a powerful(Non MS) C++ IDE w/GUI to marry and spend the rest of my life with...

[Updated on: Sat, 28 February 2015 16:33]

Report message to a moderator

Re: Remote connection to host PC in Windows 7 [message #44366 is a reply to message #44357] Sun, 01 March 2015 17:08 Go to previous messageGo to next message
emerald
Messages: 5
Registered: February 2015
Location: Murchison
Promising Member
Hello Edward,

We have a well setup LAN in our workplace.
I am in the process of developing a small GUI for our CNC machine using U++.
As a part of it , I need to access data present in few shared folders of remote pc within our LAN.
I would like to use ip address to access data.
Can we have this feature possible using U++ ?
Any alternative methods and suggestions are welcome.
Re: Remote connection to host PC in Windows 7 [message #44369 is a reply to message #44366] Sun, 01 March 2015 23:03 Go to previous messageGo to next message
Edward is currently offline  Edward
Messages: 34
Registered: February 2015
Location: United States
Member
Take a look at this site, it has a few very helpful methods/examples.
http://leonardoce.interfree.it/leowiki.html

Look at 'Simple File Management' and 'File Dialogs'.

Like this?
String buffer=LoadFile("\\Xpws03\C:\test.txt");


I'm confident using the file browser dialogs, you should also be able to locate a file, with a fully qualified path, on your LAN.
So your finished app may have a File (path) selection and storage feature. For each necessary file.

I hope this helps. I'm updating a couple old apps to U++ also and will need a similar feature.
If I find more I will post it.


My mission is to find a powerful(Non MS) C++ IDE w/GUI to marry and spend the rest of my life with...

[Updated on: Sun, 01 March 2015 23:09]

Report message to a moderator

Re: Remote connection to host PC in Windows 7 [message #44374 is a reply to message #44369] Mon, 02 March 2015 05:59 Go to previous messageGo to next message
emerald
Messages: 5
Registered: February 2015
Location: Murchison
Promising Member
Yes .. Thank You.. Its working ..!!!!

I used the full network path of our server.
I am using Functions4U package to copy

 DirectoryCopyX( Full Network path , Destination path ) ;

Well am wondering how I can use progress bar to show the status of data copy of the above function.
Any idea ??

[Updated on: Mon, 02 March 2015 08:06]

Report message to a moderator

Re: Remote connection to host PC in Windows 7 [message #44380 is a reply to message #44374] Mon, 02 March 2015 13:09 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Emerald

A problem with progress bar is that you need to know how many files your are going to process, in advance.

If you are going to copy some thousands of files, it may last some seconds.

If you do not need to copy so many files, you could use Array<String> SearchFile(String dir, String condFile), that retrieves you a list of files under dir that complies condition condFile. After calling it, you can do a for copying all files and moving a progress bar.



Best regards
Iñaki
Re: Remote connection to host PC in Windows 7 [message #44384 is a reply to message #44380] Tue, 03 March 2015 04:50 Go to previous messageGo to next message
emerald
Messages: 5
Registered: February 2015
Location: Murchison
Promising Member
Hi koldo,

The file size is moderate and I would like to use your suggestion.
Can you please provide a test case of your above suggestion ?

Re: Remote connection to host PC in Windows 7 [message #44391 is a reply to message #44384] Thu, 05 March 2015 09:33 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Just a sample
Progress progress;
	
progress.SetText("Searching files");
progress.Step(1);	// To put something in the progress bar
progress.Create();	// To show the window
Array<String> files = SearchFile("C:\\Upp", "*.log");	// Just a sample
	
progress.SetText("Copying files");
for (int i = 0; i < files.GetCount(); ++i) {
	progress.Set(i + 1, files.GetCount());	// To show the progress
	FileCopy(files[i], AppendFileName("c:\\", GetFileName(files[i])));	// Just a sample
}


Best regards
Iñaki
Re: Remote connection to host PC in Windows 7 [message #44397 is a reply to message #44391] Thu, 05 March 2015 16:34 Go to previous message
emerald
Messages: 5
Registered: February 2015
Location: Murchison
Promising Member
Hi Koldo,
Thank you very much. I will use the above piece in my project.
Previous Topic: No forward declaration.
Next Topic: Raspberry PI
Goto Forum:
  


Current Time: Fri Mar 29 08:28:28 CET 2024

Total time taken to generate the page: 0.01591 seconds