General C++ Programming - January 2010 (Page 14)

Strange Expected Primary Expression Error
 
Hello everyone, I am new to the forums. I am having some issue with this function I have written. There are a few errors I am having trouble understanding. The ...
[2 replies] Last: I will admit count is useless. And pi is defined as you have it there... (by mkitchen)
by NGen
Quick UDP Question
 
If there are 2 programs that are listening on the same port, which program will messages being sent to that port be given to? Both programs? Whichever program r...
[1 reply] : Neither, because I know of no OS that will allow two threads/processes... (by jsmith)
A loop-hole with constant references
 
I am trying to design my own programming language/compiler similar to C/C++, but I need to know a good way to handle constant references -- this has been real...
[6 replies] Last: The above observed behavior, BTW, is mandated by the standard. This... (by jsmith)
by Bv202
Splitting strings (1,2,3)
 
Hi, I have a string stored in a character array, like: char test = "This is a test"; I now want to split this, so I have an array with 4 words: this ...
[41 replies] Last: Hey, Thank you very much - it works fine now :) (by Bv202)
comp
 
can someone please tell me what im doing wrong here please???im really bad at this. thanx #include <iostream> using std::cout; using std::cin; using...
[2 replies] Last: you never define array_size your loop loops only 5 times (by hamsterman)
C++ vs C++/CLI
 
hey guys, i am wondering where to focus, C++ or C++/CLI. my goal in learning how to program is to make games (2d first then maybe 3d later). i am currently read...
[10 replies] Last: X doesn't have to be EXACTLY like Y to be considered a ripoff. For exa... (by helios)
by NGen
Loading Functions from a DLL With Extern
 
I'm clueless as to how this works. I would think that I would load the DLL using LoadLibrary and setting the address of the externed functions, but apparently n...
[5 replies] Last: I've used that before, and the VC++ intellisense system wasn't able t... (by helios)
passing parameters from the commandline
 
I have written the following code and need to modify it so that I can type in the file name instead of it being hardcoded. I also need to check to make sure tha...
[3 replies] Last: Answer is simple. #include <string> and then create a string for your... (by tummychow)
by giro82
[Builder] Exception handling
 
I wrote small application showing the problem: #include <vcl.h> #pragma hdrstop #include "Unit1.h" #include "Unit2.h" #include "math.h" //------...
[5 replies] Last: I have read about matherr in http://poli.cs.vsb.cz/c/help/math0.htm... (by giro82)
by Hakate
function template
 
Hello How do i return true or false from a function template? template <class T> T f(T a,T b) { if(a == b) { //true }else {...
[6 replies] Last: Nice! (by moorecm)
by wori
How to develop an ODBC Driver?
 
Hi! I'm trying to develop an ODBC driver for my own database. So that, any ODBC compliant application (e.g. MS-Excel) can access the information from my own...
[1 reply] : There are a number of open source ODBC drivers for MySQL, Postgres, an... (by PanGalactic)
GTK For Windows XP
 
Hi, I'm a beginner... Since now, I knew C and C++ but the windows application programming using WinApi is very boring for me.. Yesterday, I read a tutorial abou...
[2 replies] Last: Gtk+ is a C API, you'll find everything you need at www.gtk+.org Gt... (by closed account 1yR4jE8b)
Extending std::streambuf
 
Ok my goal is to be able to write into the std::cin buffer. Specifically the location in its member pointer _IGfirst it is protected so i know i need to ext...
[8 replies] Last: hence leaving the possibility that the password will literally be lef... (by helios)
diving comp
 
im
[1 reply] : Please do not double post: http://www.cplusplus.com/forum/beginner/180... (by PanGalactic)
skip some for loop iterations
 
consider this code I made. char input ; char allCloseBrace = {']','}','>',')'}; char allOpenBrace = {'[','{','<','('}; int i=0,j,locClose = -...
[3 replies] Last: sorry for double posting. (by olredixsis)
by acerzw
Problem with initialising dynamically allocated memory via pointer
 
Hi, I am using a dynamically allocated array to store the addresses of screen lines for a graphics application that uses the Graphics SDL Library. I am using...
[12 replies] Last: This is for pixel-level access, isn't it? The way I do this is uch... (by helios)
by jhapk
Function calling issues
 
Hi, I have a code to solve for a physical process. U is declared as Physical **U; and is properly allocated. In the main code I do something like th...
[4 replies] Last: Or use something like valgrind or efence, but firedraco's suggestion i... (by jsmith)
by Jarvix
Problems reading text files [True!]
 
Hi all, My program has to read out a configuration file. This file contains some list with servers. This works fine. The second part is finding the oldest l...
[5 replies] Last: Anyone? May it me a networking problem? (by Jarvix)
Using SendInput
 
hello... I want to create a program which could emulate the keyboard. Its like making the program press the key. I found out that the function sendinput() co...
[1 reply] : Just copy one of the numerous MSDN samples. (by george135)
by dardar
Working with OPENCV
 
i need to detect the edges of a binary pic (black and white) and than color each edge with a different (or random) color. detecting the edges is pretty simpl...
[no replies]
January 2010 Pages: 1... 121314151617
  Archived months: [dec2009] [feb2010]

This is an archived page. To post a new message, go to the current page.