I want to set focus to search form on site http://www.filehippo.com/, and after that send some text (for example some application name what want to download).
But before that need to be shore if computer is connected to site. So now my question is how to implement some kind of listener who will wait for specific ip address of site, and after computer is connected get back information?
Only problem is that I develop in visual studio c++ and searching answer for those language, know that c++ is not best solution for task's like that but this is just one part of application and at now don't have time to study other language.
Os: WIN 7, 64, Visual studio 2010 c++
I am using WinINet API in order to access web services (HTTP POST) and download files hosted on web server (HTTP GET). It contains functions to connect to specific web site (e.g. InternetConnect), send and receive requests etc. so you might find it useful.
Related
So basically i'm developing a piece of software that will allow user to call any number he wants right from the website. So i need some help in choosing the correct platform or semi cheap service to use. I guess i need a solution with open API because i want to make a db entry (want to record duration and date) for every call made from website.
I've started research and stumbled upon couple of open source solutions: Asterisk and FreeSWITCH. Trying them out right now, but i still have poor understanding of how SIP works. If it will be a softphone will the user have need to install it on their pc or there are server solutions
One possible solution that works with any SIP server is to use PJSUA Python bindings and to implement in Python a basic softphone. Thus your web application will be seen by the SIP server just as a regular soft phone and the server configuration is much easier.
Is it possible to communicate from a web browser(Loaded an HTM page from server) to an application running in the same server using AJAX. Need to send the request from browser using a button click and update the page with responses received from one another application running in the same server machine?
I am using HTML pages to create website and not using any PHP or ASP like server side scripting. In server machine data are manipulated using a C++ application.
I think you can use any sort of Javascript functions to do that. But you might need to use jQuery or similar frameworks to make your live easier. You might need to search for "Comet Programming" to know exactly how to do 2-way communication between client and server
Updated:
Well, this kind of stuff requires you to read a lot (if you have not already known). Basically, what you need is a server that can do long-polling (or eventsource, websockets). There are many open-source ones that might help you to get started. I can list a several good ones here. There are a lot more
http://www.ape-project.org/
http://cometd.org/
http://socket.io/
http://code.google.com/p/erlycomet/
http://faye.jcoglan.com/
So after you have the comet server up and running you will need to setup the client side (probably Javascript). For those listed projects, most of them come with the client side code to interact with the server (Except for erlycomet). Therefore, you can just use the examples provided and run a quick prototype. If you want to use your raspberry pi, you can use nodejs which provide a lot of ease for dealing with real-time communication (socket.io, faye). And lately, http://www.meteor.com/
I would think of the problem this way: you want to provide a web front end to an existing c++ application. To achieve this you need to think about how your web server communicates with your c++ application. Communication between the browser and web server can be thought of as a separate problem - as you say AJAX calls can be used, or maybe have a look at websockets.
Once you have your request in the web server you need to communicate it to the C++ application (and/or visa versa). This can be done a number of ways, e.g. sockets or RPC. I found this question here which has some good advice.
Hi my question is this: I want to add a push notification to my WP7 application, and have read the A Really Long Post About the Windows Phone 7 Push Notification System explination. Now this is pretty to-the-point stuff, except for this little part, where the line
var svc = new NotificationService.NotificationServiceClient();
is added. I think that this is just a reference to the web application of the developer. Is that correct, is this indeed a reference to the web application? And if so, how to implement that in the VS express for WP7, if indeed possible
I have already created a web application, but this is in the VS Web Development Express IDE, and working in the VS Express for WP7 IDE, want to add a reference to this web application.
Thanks in advance!
It looks like in the blog post the code you listed is intended to be called from an application other than the one on the phone. There are other ways of sending a tile update from within the phone.
Clarification after comments...
In the majority of cases, sending notifications to the device is handled by server-side or desktop application code and not from the device itself. If you have a service which is sending out notifications to the devices with the app installed, then you should ideally follow the patterns laid out by MS themselves. In short, the steps are as follows.
1) The phone app registers itself with the MPNS (Microsft Push Notification Service) servers.
2) The phone app receives a unique URL to which notifications are sent.
3) The phone app sends this url to your service by whatever means are best for the app (usually a call to a WCF service) *
4) Your service calls the MPNS service to send the notification to the phone
5) The phone app receives the message and acts upon it as appropriate.
The bit you are probably thinking about is the highlighted step (3). This is usually the only call out to an external source that you need to code manually in the notification scenario (registering with MPNS is handled by internal classes).
Given that this is the bit that you need to put most thought into, and that your question is about adding a reference to a web application there may be a bit of confusion here. The two ways I have seen this data get passed around are
1) Call a WCF service (which may b hosted in a web application, and can be added with "Add Service Reference in VS), or
2) Posting data directly to a web page that deals with the posted data and stores it for later us.
In either case, you won't need to "add a reference" to a web app. 1) means adding a service reference in VS, which I believe you can do in the free dev environment, and 2) involves hand crafting an HttpWebRequest to post the data.
I am having a desktop application which having a UI interface made in Qt linked with a library which is doing all the calculation stuff. Values from UI is taken and pass to the API's in the DLL to get the output which is shown on Screen.
Now i want to do the same thing by transferring my application UI to a web page so that people can access the tool from anywhere without any installation process.
I want to retain my c++ DLL code so i don't have to do a lot of work. I am thinking of just converting this DLL to a C++ server by any communication Process(Sockets). I want to host this application on my company's website. (We have to make the website also so we are open to any set of tools).
I want to know what will be the best set of tools to do this stuff. Also there will be lot of data exchange between the webpage and server so the wholething should be optimized also. I goggled a bit and find stuff like silverlight and ASP.NET, But i am still not very clear which option will be more suitable.
I am a c++ programmer with no web application development experience. I am open to learn any new technology.
Thanks
Why not use Qt on the web directly? There are several projects like this one: http://qtwui.sourceforge.net/
There is a netscape plugin that will host a QT application and an ActiveX control wrapper on the QT website. You could use one of those to wrap your application. Note that this approach would require the user (or their administrator) to download and install the plugin.
An alternative approach might be to run your application through a remote desktop such as XVNC, NX or an RDP based layer. IIRC browser based remote desktop clients are available for most such protocols.
A few options:
pick a messaging/queue implementation (like http://www.zeromq.org/) and provide a service
implement a Windows Web Service if you want to be more enterprise friendly: http://msdn.microsoft.com/en-us/magazine/ee335693.aspx
I would not expose the implementation on the internet. Enough to have a simple buffer overflow and the machine can be taken over quickly. Adding a layer between the app and the web provides an easy way to validate input, access, stats ...
You should be able to use your DLL from an wt or cppcms application. Then you do not have to learn something new and can just use C++.
The way I'm currently doing this is with Boost.Python + django
To set the context of this problem, I will say that I am person trying to learn web services working ( mostly )independently at home on XP workgroup. The situation is that I am working through example in book that set up Java web service that should be accessable to clients from many platforms ( perl, ruby, etc. ). The problem is that although I can create and access service from any one given unit in workgroup, I cannot create on any unit and access from any other unit in workgroup. When trying to access wsdl, IE returns error saying cannot display web page .
So i tried to configure Windows firewall to allow access via port indicated in web service. Did not make any difference. Also tried various settings in IIS regarding behavior of XP Default website. These settings included allowing wider range of MIME types including application/soap. Still no difference.
If Anyone out there could just give me an idea of what else could be the problem, then please do so and i will investigate it further. Thanks in advance. PL
P.S. After doing some research, I am thinking that my problem of not being to see WSDL from remote machine is related to limitations of IIS 5.1. Does anyone have any thoughts about this ? I even tried publishing WSDL to port 8080 ( earlier I was using port 9876 as suggested in book example. When even this failed and being able to view 8080 for ASP.Net and Java webapps, I ran across a statement in a book saying that IIS 5.1 does not allow service on local machine to use HTTP port 80 to communicate. So If this sounds familiar to anyone or anyone has solution, please reply, Thanks for reading this rambling message this far. PL
Hello to any one who might have this similar problem in XP workgroup and need a solution. I managed to connect across workgroup from peer to use service as client by setting up client in Visual Web Developer 2010 Express . Key is to add web reference that will import wsdl from service host .
Also worth noting is that I changed address of service published to provide server name of host as known by workgroup rather than using localhost designation.
Still need to find way to connect using other clients such as java, perl and ruby. Maybe can develop client in Eclipse that will have feature comparable to web reference in Visual Web Developer.
Paul Lusk