C++ Forums Page 2
-
Problem in String replace program's output
Hi all, I was trying to make a program which accepts a string and replaces it with another string accepted using pointers.The code following is error…
-
Program with calculate Meteorologic measurements
Hello I'm a beginner and I want to make a program with calculate Meteorologic measurements: base classe - time( hour, minutes). Derivative class…
-
trouble printing an array....
I'm having some trouble printing out an array forwards. I'm figuring out the high and low of an array and did soo, but can't print out. My result is…
-
How to add an image/C++ OpenGL?
Hi, I have been trying to look online for this and, so far, I haven't found anything useful. I would like to add a .bmp image to an OpenGL window…
-
Dynamic memory problem
Hey, At the beginning of my code, I have this line: Shape* gShape = 0; As this is dynamic memory, I delete it at the end: delete gShape; gShape = 0…
-
Calculating n! using vector
#include <cstdio> #include<iostream> #include <vector> using namespace std; int main() { //declaration int i,n,num,val,temp,j,l; vector< vector<int>…
- Advertisement
-
Doubles are giving me problems
Ok so, first of all i made a double = 0.05, but when running the debugger it shows up as 0.04999. I know this has something to do with how doubles…
-
How to copy a part of a vector in a raw memory
Hi, How can I copy a part of a vector into a memory: 1 2 3 4 5 6 7 8 9 long ReadAt(T* pData, long items, long& pos) { ... check vector bound…
-
Deleting pointers froms vector?
Hi. I have a vector filled with pointers and I want to delete the pointers. I could do a loop and do delete on all indexes, but my question is that…
-
cstdatomic (c++0x std::atomic) / g++ 4.4
Hello, I'm trying to use cstdatomic (std::atomic in the upcoming c++0x standard) in g++ 4.4, but it doesn't seems to work as expected and I would…
-
Bluetooth RSSI & VIsta
Okie I got 4 Bluetooth adapters, a DBT-120 by Dlink, A Zonet Microsoft Bluetooth which is what I used with 32Feet and another TOS Bluetooth Adapter…
-
UDP Multicast question
Hey, Im not really in the know when it comes to network related programming and activities, i know the diference between TCP/UDP and have the jist of…
-
InternetOpenUrl() Invalid cert
Hi all, Does anyone know how to prevent calls to InternetOpenUrl() from failing with error 12045 (ERROR_INTERNET_INVALID_CA)? I have the following…
-
Sending UDP Raw socket
I truly need help on this. I am trying to write a test program that simulate a network environment that have 5 clients and 1 server. To do so, I need…
- Advertisement
-
Binding 2 UDP sockets on same port, connected to different destinations, 1 receives
Hello, My application wants to send/recv data to 2 different UDP ports on a remote computer, using the same source port. So I bind to the same local…
-
send() and recv() parameters confusion
On server Side: int recv (Socket,Buffer, Length, Flags) On Client Side: int send (Socket,Message, Length, Flags) can anyone plz tell me weather the…
-
i want run some web server under the ip sharer
hello i want run some web server under the ip sharer my ip is floating ip but it doesnt matter since i can use DDNS first what i do is Install and…
-
bind error during socket programming
i am kinda new to socket programming. wrote the below code for a server. but getting the bind error everytime. i even tried changing the port…
-
Why does first ever HttpSendRequest take longer?
I promise this isn't as simple as it sounds. I'm wondering why the the first ever call to HttpSendRequest takes much longer than subsequent calls…
-
Async WSAConnect failed on XP with error code = 2 ("File not found")
Hi all, I have very strange bug, please help me if you can. It is reproduced only on these conditions : WinXP, VS2005, VS2008, build in debug…