C++ Forums Page 3
-
connect() succeeds but accept() does not?
Please help me with this problem. I'm working on a time-sensitive project where I'm using TCP sockets. I've got this problem where most of the time a…
-
C++ Http request?
Code: string Response = "LOGIN_UNSUCCESSFUL"; System.Net.WebRequest request = System.Net.WebRequest.Create("http://mywebsite.com/user.php"); string…
-
Firewall / visited websites logger
Hi. I have a firewall implementation and I want to log all the websites visited on the machine. So when the user enters an address in the browser…
-
Having problemswith multithreading and prime numbers
I have an assignment when I'm suppose to do the following: Write a multithreaded Java, Pthreads, or Win32 program that outputs prime numbers. This…
-
TCP Sending Unsigned Char...
Hi... I want to send over tcp/ip some data, i have the data in hexadecimal, and when i try to send it, i have a few problems. I give the data as a…
-
Using Windows message as a Handle
Hi, I am writing one of my first multithreaded programs. In one of the thread, I am using WaitForSingleObject method to detect the USER LOG-OFF on a…
- Advertisement
-
how to load a Sys file with system load and call images?
normally you need register the module as a service with CreateService, and start the service __________________ No emotions. Your English can't…
-
moving mouse to display image coordinates
I have an existing MFC application that shows an image in the main window. I'd like to be able to move the mouse within that image & display the…
-
writing my own sobel filter convolution - something is wrong
I am trying to keep it very simple, I cant see anything wrong with my logic, could anybody help point me to the right direction?!! Code: { int…
-
division gives infinity anser
int main() { int z=0; int i=1/z; cout<<i; } It doesn't throw any error in Visual Studio 2008. .......What setting one has to change so that it will…
-
Which practice of iteration through containers is preferred
In the "real world" what kind of loop do most people use to iterate through a container like a vector. A loop like this... Code: for (int i = 0; i <…
-
void* and sizeof()
Hi, Using void* and sizeof is it possible to get the value of the object ? I understand that dereferencing a void pointer is not directly possible…
-
Is STL important?
I'm just starting programming and I've made it until the Standart Template Library. But the chapter seems incredibly boring, daunting and…
-
Question about ShowWindow()
Hello.... I'm struggling with sumpin, and I hope y'all can help. I've got a CFormView with a small web browser control (CWebBrowser2), that only…
- Advertisement
-
how to query data from website using VC?
I want to query some datum from a website,so I need a program to read data from a .csv file, and assign the value to a text control which including…
-
Need help with cin setw
I made a program here is my code: #include <iostream> #include <cstdlib> #include <iomanip> #include <ctime> using namespace std; int main() {…
-
Redistributing dependent dlls
Hai all , I have created an application in VC++ using VS2008 in a development machine which runs on Vista, now i need to run that application in a…
-
Packet Design
Hi All, Im new about network programming and I want to design a protocol but I have some questions about packet desing. For example I wanna do a…
-
Scene graph using Direct3D?
There are several C++ scene graph based packages available for OpenGl, like say OSG, http://www.openscenegraph.org/projects/osg But do you by any…
-
Multithreading design
Hi I have come up with a Singleton class that manages a pool of database connections. Basically the pool is a queue in which I have stored some…