I want to connect to other computers remotely and for example grabbing some data from them. Do we have any c++ library for this purpose? And if yes, any good documentation about it.
I'm getting error ID 10061 - WSAECONNREFUSED - No connection could be made because the target computer actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host—that is, one with no server application running.
However, when I use 127.0.0.1 or localhost dns, everything works fine, Im connecting to the ip from [URL] .... with port 1337 ...
I want some people to see my C++ program, enter inputs (they can enter number 1, 2, 3, etc) as CIN, and then the program runs as it would if they were sitting in my place.
I have seen a few places which try to do this e.g.
[URL]
The problem is the CIN is not fully featured. For example in the first website you have to enter the input before you run the program. So that would not work for a program where CIN was being done all the time.
So I can get a domain, ask them to telnet into the Linux shell and compile and run my c++ Demo program. Is that the best way? Thats the worst case. I send them the .cpp file and they'll have to run and compile it on their own machine.
The best case is that they click on a link, get an online console and interact with it like they would with a real input/output c++ interface.how this can be done?
I have a device that have some communication protocols and it will respond and send some specific data when somebody communicates with the device. I tried to build a C code that will send those protocols to the device and then store those sending data. Now I don't understand that how to send those commands. Other things than that I can manage with the file handling programming.Is there any predefined function using which it will send some specific data or something like that??
I know I can use ping internally to test a device's connectivity. What can I use to test devices on another network (assuming ports are forwarded, and their IP addresses are at my disposal)? I was looking into the TCP Client class.. would that also work with devices using DynDNS?
Is it possible to see what usb devices are connected to a hub?
An example would be:
Onboard usb hub: usb mass storage device webcam imaging device
superspeed hub: Mass storage device Printer MTD device
I am currently able to get a list of all connected devices with ManagementobjectCollection in C# but that doesn't give me any hierarchy (as far as I am aware).
I am not dead set on C#, I assumed that would be fastest way to get this up and running.
I'm trying to achieve the results of the following command that lists all programmable wake devices, or those that can be set/reset to wake the system:
Code: powercfg -devicequery wake_programmable
I need to do the same from a C++ service. I'm using the code similar to this, but it gives me a smaller list. Here's how I call DevicePowerEnumDevices:
I own a code written in c++ that is used to connect the router using the WPS protocol, but has to be modified to operate in "registrar" mode and I do not know much about c++.
I have so far tried MySQL++, ODBC, SimpleDB, and the MySQL C++ Connector. All of them give me a FLOOD of errors in the output. Is there an easy way to connect?
library management system in which c is used as front end and oracle is used as back end in order to retrieve the data. if possible can u send the source code for it.
I am creating a connect 4 game using dynamic memory allocation the question is;
Write a two-player game of Connect Four where the user can set the width and height of the board and each player gets a turn to drop a token into the slot. Display the board using + for one side, x for the other, and _ to indicate blank spaces.
I have created the board. However I am unsure as how to make a start on getting the players to make moves.
Code: #include <iostream> using namespace std; char **create_table(int width, int height, char blank) { char **p_p_connect4 = new char*[height]; for(int i = 0; i < height; i++) { p_p_connect4[i] = new char [width];
I'm creating a kind of connect 4 game that will be due on November 30. I'm starting now so that I don't have to worry about it as much later. Anyways, I just started, and I already have some questions/problems. I want to be able to change that numPlayers outside of the function, so I used pointers like my instructor said to, but it is giving me an error that numPlayers(the argument) is not an int*. How do I fix this?
Code:
int numPlayers=0; void promptNumPlayers(int *numPlayers) { printf("Enter the number of players: "); *numPlayers=readInt(stdin); if (*numPlayers != 1 && *numPlayers != 2) }
I have a Blackjack game that allows users to create a login account and it keeps track of their bet amount, and total bank,etc. How can I connect the program on 2 or more computers so that people can play together?
(A) How would I code it? (B) Can I just connect a USB or HDMI and use the appropriate code? (C) Do they need to be executables instead of just running out of Visual Studio? (D) Can this maybe done over Wi-fi? (E) Or is this something more complicated like over a VPN?
this is connect 4 program with Minimax algorithm using NegaMax algorithm and I don't know actually if I implemented it correctly ..how to evaluate neutral moves check it out and tell me how to implement it better
I am studying Software Engineer and i have a project on C. The project is a simple Pharmacy Management. I know how to develop it also i have already created the DataBase but i don't know how to connect it.
I'm in the middle of creating a ePOS for my uncle and so far I've created a database for it where it will create, update and delete records successfully.
My next step I would like to do is to create a printer till thing, but how do I connect my database to that ?
I can create a till but how do I do link my database with it? I followed this example here [URL] ....
I have an client application and server application, I want to make an update program, In my program I want client send a message to server if there is an new version or not, and server reply with a text message ,send will be done via web service .
Is there a way to make this program work without entering the full path to a file?
Code: ifstream ex("podatki.txt", ios_base::in); // if I type full path than program works if(ex.is_open()) cout << "The file is open and con. with the object." << ' '; else cout << "you messed up" << ' '; int counter = 0;
I have created 2 form which is login form, which username textbox already connected to the database and it is successfully. When user login, it direct to the second form, and in the second form, there are multiple textbox that i have created using Array List, and it has shown.
Here is my problem: I want to connect the textboxes in second form to the database, but it shown nothing when i run the program, i already trace the code which is the error, and the error is on when OleDBDataReader is reading, i dunno what's wrong with my code, in login form it run perfectly, but in the second form, there is an error.
Here is the image for Login Form: Here is the image for Second Form: Here is the code for Second Form: [CODE]
write a program that will connect my laptop to my desktop unlike gotomypc.com. I want to have my desktop hooked up to a router and sends video and audio info to my laptop. At the same time my laptop will be sending it's keyboard and mouse. If there is an audio input from a microphone it will send that to the desktop. If the webcam needs to be used for something like Skype, it will send that to the desktop too. I think it would be faster for the laptop to process any flash drives, but it should be able to send that to the desktop too. Has a program like this already been created? Is C++ an optimal language to write the program in?
I am developing a win form application with sq l server2005, in client system after install the application I created the folder for storing the database of running application, like that I have every year database separately, My doubt is how to connect the particular year database while loading the app?