C/C++ :: How To Take Data From Internet In Real Time

Apr 17, 2015

How i can take data from internet n real time i want make program wich alarm when a specific site(from my university) have a announcement...

View 6 Replies


ADVERTISEMENT

C/C++ :: Interactive And Animated Real-time Offline Map Application

Apr 25, 2015

I want to develop a interactive and animated real-time offline map application. For example if user puts mouse on the map, it should the latitude, longitude and name of the location.

There should be animation for example blinking of a location. And it should work offline without internet. I want to use google maps data but I don't know how.

I know following languages:
C/C++ (Advanced level)
PHP (intermediate level)
Java ( beginner level)

View 1 Replies View Related

Visual C++ :: Real Time Plotting Of Latitude And Longitude

Dec 17, 2012

Any application or open source software (vc++ or vb.net or c#.net) that can display a high resolution map and i can input real time latitude and longitude of points through an external file and those points can be displayed on map in real time..... I am all new to this plotting on map stuff....

View 2 Replies View Related

Visual C++ :: Implementing Real Time Graph To Application?

Nov 15, 2013

I was assigned a project to implement a real time graph to an application which continuously outputs data numerically through the GUI. The application that was created to do this is written in C.

I have to turn those numerical numbers into a graphical display that is periodically updated to appear as real time.

My adviser suggested using NTgraph [URL] ...... I had no clue how to implement this to my code and was finally able to understand that the .OCX needs to be registered as a COM and then imported to the application using visual studios. However, I get an error when I try importing it since it is in C (Visual Studios 8) and not an MFC application.

So my question is if it would be possible to implement the ActiveX control to my application even though it is not an MFC application and how to go about it.

View 6 Replies View Related

C++ :: Publish Data Over The Internet In Peer To Peer Style Communication?

Sep 24, 2012

I need to be able to publish data between multiple machines at remote locations. I have been able to send data between two machines on a network in the same room. However, how to begin with resolving IPs for machines on other networks that are miles away etc. I would assume the application would need to LISTEN & PUBLISH in order to achieve this?

I have also googled this, and can only seem to find C# examples, and they seem to be for data between remote computers on the same network... What I need is to be able to find some guidance on sending data between me and someone who I previously had no knowledge of. I know this must be possible due to the fact that p-2-p chat clients exist, and that p-2-p file sharing exists.

View 1 Replies View Related

C :: Execution Stopped Every Time Try To Add Data From Scanf

Nov 12, 2013

this is a syntax i've been trying to run. apparently it stopped as i entered the first value. this is the value i am trying to key in

Initial House Cost 67,000 62,000 75,000
Annual Fuel Cost 2,300 2,500 1,850
Tax Rate 0.025 0.025 0.020

my syntax are as below

Code:

#include <stdio.h>
#include <conio.h>
int main(void) {
float houseInt1 , houseInt2 , houseInt3 ;
float fuelAnnual1 , fuelAnnual2 , fuelAnnual3;
float taxRate1 , taxRate2 ,taxRate3;
float total1 , total2 , total3;

[code]....

View 9 Replies View Related

C++ :: Connecting 2 Computers Over Internet

Oct 19, 2014

I'm trying to make my 1v1 game playable online and I would like to have the 2 players connected directly rather than trough a server.

The problem I'm having is that I don't have any experience with server client communication or internet libraries in c++

View 4 Replies View Related

C++ :: Block Internet Access To A PC?

Jun 18, 2012

I need to turn off internet access for SPECIFIC website locations. I use C++ Builder 2010 or Delphi 2010.

View 5 Replies View Related

C++ :: Traffic Control Program - Output Data At Specific Time

Oct 24, 2013

I was given an assignment to create a simple program for traffic control. How should i output data at a specific time, for e.g a driver approaches an intersection, the yellow light will flash indicating that he needs to slow down and then the red light to stop before taking a route. is there any function i can use to output red light a few seconds after yellow light.

View 10 Replies View Related

C :: Currency Conversion Update From Internet

Jun 15, 2013

i have given a project for currency conversion program with add,delete,search,display option. but i was thinking if it can update the currency rate from internet at beginning.

View 3 Replies View Related

C# :: Reconnecting To Internet If Connection Drops

Jan 24, 2014

I am currently writing a small windos form app which relies on an internat connection.

The only issue I have is trying to find out how to force the app to reconnect if the internet drops out without the app crashing. From what I have read I could use "try and catch" but I am not sure how to do this.

The code I have so far is: for testing I am using [URL] as the web site target.

Form1.Designer:

namespace Browser2014
{
partial class Form1
{

[Code]....

View 3 Replies View Related

Visual C++ :: How To Get History Of Internet Explorer

Dec 27, 2013

Now i want to get history of IE by c++.But i started learning c++, so i do not know!

View 1 Replies View Related

C# :: How To Share Video File Between Multiple PC Over Internet

Jul 2, 2014

Basically i'm willing to create an application which could share Video,Mp3 Over the internet to my friends.

For suppose I'm hosting file on my PC, and i want to share "D" Drive to my friends but they aren't connected to my network locally. i want to share movies over the internet using a host and client application in c#.net.

the purpose of this application is very clear that that i want to share movies over the internet and they have to be able to watch movies on their PCs Except running my PC remotely.

View 8 Replies View Related

C :: How To Generate Real Number Between 0 And 1

Mar 1, 2015

I am a very very beginner at programming with C. Well, basically i have to generate a real number between 0 and 1 (which as the same as from 0 to 100 k and than dividing everything with 100 k).

Why I am constantly talking about 100 k? Because I would need approx 50 000 random numbers between 0 and 1. My code currently looks something like this:

Code:

int main(int argc, char** argv) { int min,max;
double number;
srand((unsigned)time(NULL));
number = 1 + rand()%100;
printf("The number is: %lf",number);
sleep(2);
return (EXIT_SUCCESS);
}

And If I am not mistaken, should generate numbers between 0 and 100. But I can't figure it out how to change to code in order to get enough numbers.

View 4 Replies View Related

C# :: Getting Real Number From A Textbox?

Oct 28, 2014

All I want is to let the user enter a value such as .55 or say, .34 and use that in a calculation.

I cannot get passed the errors.

double theRate;
double totalMileage;
double amountOwed;
private void btnCalculate_Click(object sender, EventArgs e)

[Code] ....

So how do you get numeric input from a user?

View 3 Replies View Related

C++ :: Windows Socket Makes App Crash If No Internet Connection

Oct 18, 2014

I'm strugling to understand why my app is crashing if there is no internet connection.

Code:
int main() {
WSADATA wsaData;
if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0) {
std::cout << "WSAStartup failed.

[Code] ....

Debug crash code:

Code:
First-chance exception at 0x00161831 in ConsoleApplication1.exe: 0xC0000005: Access violation reading location 0x0000000C.
Unhandled exception at 0x00161831 in ConsoleApplication1.exe: 0xC0000005: Access violation reading location 0x0000000C.

It works well as long as the computer is connected to internet but if i disconect from internet the application crash but don't understand why.

View 4 Replies View Related

C/C++ :: Check If Quartic Has Real Roots?

Feb 7, 2015

I have been writing code to find the roots of a quartic (with coefficients input by the user) by the Newton Rapson method. The method fails if no real roots exist so I have been trying to implement an initial check to see whether the equation has real roots. I've been trying to use the intermediate value theorem but it only works for functions with a positive and negative tail. extend the bounds (fa and fb) to check over many ranges or any other mathematical method of better effect?

Atm I define fa<0<fb where fa=F(-10) and fb=F(10).

#include <stdio.h>
#include <math.h>
#include <conio.h>
#include <stdlib.h>
int a0, a1, a2, a3, a4;
double F(double x) //Sets main function {
return (a0+a1*x+a2*pow(x, 2)+a3*pow(x, 3)+a4*pow(x, 4));

[code].....

View 1 Replies View Related

C Sharp :: SQL Server Connection String To Connect Through Domain Name (internet)

Sep 20, 2012

I have tried to connect my sql server 2005 using a domain name. i have bought a domain name and a dns client. this is my connection string

{ SqlConnection sqlconn = 
 new SqlConnection("user id=user1;" + "password=pass2;"
  + "server=www.mysite.infoServerInstance;" 
+ "trusted_Connection=false;" + "network 
library=DBMSSOCN;" + "Integrated security=false;" 
+ "initial catalog=Mydatabase;" +"connection timeout=5
;"); }

I have added sql browser & sql server in fire wall, and also enabled tcp port 1433 and udp port 1434. the above connection string works perfect when i run it in the server machine, but whenIi try to run it on other machines I am getting an error that server is not available or cannot find the specified server.. I desperately need to access my database through an url. ie., through internet..

View 6 Replies View Related

C++ :: Program To Find Smallest Real Factor Of A Number

Oct 10, 2013

I need codes for a program in C or C++ that will show the real factor (the smallest one, without the number 1) when an integer is given as input.

When the program is started, it will ask to enter a number and press enter. After entering a number, it will first check if it is a prime number or not. If prime, it will notice that it is a prime number, otherwise, it will print the smallest real factor of the given integer.

For example, if 12 is entered, it will print, the smallest real factor for this number is: 2

If 27 is entered, it will print, the smallest real factor for this number is: 3

...and so on

View 12 Replies View Related

C :: Generate Pseudo Random Real Number From Interval (0,1)

Feb 6, 2013

How can I generate a pseudo-random real number from interval [0,1] ?

Can it be generalized to any interval? Like [0,a], where 'a' is a parameter?

I tried searching for it, I only found rand(), srand(), random(1), and randomize. None of it actually seems to work for me..

Later I actually succeeded with something like

srand( (unsigned)time( NULL ) );
printf( " %6d
", rand() );

but it only produces up to five digits integers and I cannot divide by 99999 to get it into [0,1].

View 11 Replies View Related

C++ :: How To Generate Real Random Number From Normal Distribution

Jun 26, 2013

I want to generate random numbers of normal distribution and use scentence like

std::default_random_engine generator;
std::normal_distribution<double> distribution(0,1);
arrayX[i][j]=distribution(generator);

But I find that each time the array I got are the same. So how should I generate random numbers with different seedings with normal distribution?

View 2 Replies View Related

Visual C++ :: Internet Explorer Displays Blank Page When Opening Local File While Screen Is Off?

Apr 28, 2015

I'm making a small MFC module that should generate a report (formatted using HTML) and then display it for a user on schedule at 8:30 AM every day. Pretty straightforward stuff.

I compose my report and then save it as a local HTML file in the CSIDL_APPDATA folder. I then use the following calls to display it using the default web browser (Internet Explorer in this case):

Code:
//Error checks are omitted for brevity
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);
ShellExecute(NULL, NULL, strSaveFileTo, NULL, NULL, SW_SHOWNORMAL);

This module is run on schedule from the Task Scheduler. (The task is set up to run when a user is logged on, which is all the time for that PC. It is never turned off, put to sleep, etc. That computer has only one user that is never logged off either.)

This works perfectly fine when I test it by setting the task a minute or so in the future. But when the actual task is supposed to run at 8:30 AM, when the user wakes the screen all they see is a blank Internet Explorer page. (Note that if someone refreshes that page by hitting F5, only then my report is shown on the screen.)

So I started looking into it:

1) I checked that the file is properly saved (before calling ShellExecute) by reading it back and by comparing it with the original HTML markup that I saved earlier. It's all correct there.

2) I then checked the power saving options. That computer is set up to show screensaver after 5 minutes and to turn off screen after 25 minutes.

3) The web browser that causes this issue is IE version 11, with the latest updates installed. The operating system is Windows 7 Professional.

And why is IE showing a blank page only when computer is running unattended?

View 14 Replies View Related

C++ :: Polynomial Coefficients Are Memorialized In Field Of Real Double Precision Numbers

Mar 19, 2013

I am starting to learn C++.Designing class CPolynom to work with polynomials. The polynomial coefficients are memorialized in the field of real double precision numbers. Implement the following functions:

-Constructor, which defines the order of the polynomial CPolynom(int order)
-method to add the appropriate grade Coef(int exp, duble coef)
-method of addition, subtraction, multiplication and division two polynomials
-method to add a field coefficient
-method for nala

View 1 Replies View Related

C/C++ :: Round Robin Execution With Gantt Chart - Arrival Time And Burst Time

Mar 10, 2015

This is a round robin execution. with gantt chart. arrival time and burst time. I think there is an error in my formula to get the right answer,i cant resolve it but my program is running. What is the code or the right formula??

#include<stdio.h>
int main(){
int i,j=0,n,time,remain,flag=0,ts;
int sum_wait=0,sum_turnaround=0,at[10],bt[10],rt[10];
int ganttP[50],ganttStartTime[50];
printf("Enter no of Processes : ");
scanf("%d",&n);
remain=n;

[Code] ....

View 2 Replies View Related

C :: Function To Round A Number To Give Integer Number That Is Closer To Real Value

Oct 9, 2013

I was told to use a round function to round a number to give an integer number that is closer to the real value. (for example if the number is 114.67 I need to print an int value of 115 instead of 114)

I am not exactly sure how a round function works, but I am told to include math.h library. What I try doesn't seem to work.

View 1 Replies View Related

C++ :: How To Use Time For Time Based Movement

May 1, 2013

So I'm trying to learn how to use time for time based movement and what not. I did this only knowing the command time(&variable)

time_t timer;
int I, X;
void main() {
time(&timer);
X=timer;
while(I==5) {

[Code] ......

There's probably some other better way to do it... Obviously but for now I see it as putting current time in X.

start while
take in time constantly until I is 5
constantly asking is time>X(preset time 5 seconds ahead)
if it is
display message and add one to I

Why doesn't this display my message after 5 seconds?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved