General C++ Programming - June 2010 (Page 8)

by vulee
multiple definition of `__start__Z
 
mytest/lib/libtest.a(utils.r): In function `__stop__ZN9__gnu_cxx13new_allocatorISt4pairIKSsSsEE9constructEPS3_RKS3_': /local/jsn/utils/Buffer.cpp:159: multiple...
[2 replies] Last: Buffer.h already has "prama once", but still having the same error (by vulee)
by Nirf
Problems with member function reference
 
Hello, I am doing numerical work and am using the GSL (GNU scientific library) to help me with my endeavors. I recently had some code working procedurally, a...
[5 replies] Last: For callback functions, I find the boost::function and boost::bind lib... (by jsmith)
How can i make sure something is constantly updating?
 
I'm trying to make a text based game with both a top and bottom status bar. how can i make sure that (1) it is always visible and (2) the info is always updatin...
[2 replies] Last: Just FYI, the Observer pattern is one approach to coordinating changes... (by moorecm)
use of "delete"
 
consider this code: class sample{ int i; public: void fun() { delete this; } }; void main() { sample *s=new sample; s->fun(); // Statement 1 sa...
[4 replies] Last: The program will never work as mentioned. Since s1 object is in stack ... (by athachil)
Excel and C++
 
Hello everyone, I'm hoping someone can help me with this. I've been tasked to write a program to read a string of data, parse it out, and format it to a spreads...
[1 reply] : Hi, Using MFC you can read from excel using CDataBase class. Using ... (by athachil)
by Jaymie
2 Simple DLL Questions...
 
Hi, second post of the day... :) 1) How do I change a DLL from having to be in the same directory to work (after release)? E.G. current directory: "DirWit...
[2 replies] Last: 1. Windows looks for DLLs and programs in each directory listed in the... (by helios)
Writing to a text file without deleting what is already there
 
Hello Whenever I try to write to a file, it automatically deletes what I have already written there. I have tried using ios::app to do so but then seekp(); d...
[6 replies] Last: Hi all To solve this problem I created a new delimiter of a '?' bet... (by mousenz)
Access Violation Error
 
I am trying to use a map again to manage objects. Each object gets a unique "name" (actually called ID) and then a pointer to the object is stored in a map o...
[8 replies] Last: #include<iostream> #include<map> #include<string> using namespac... (by vivmen)
Ignored const qualifier
 
This is about the cases, where const qualifier is ignored. I made somewhat vague conclusions, but maybe someone has something to add? void int_(int I) {} ...
[16 replies] Last: You got it exactly backwards. const char *c11= new char ; char * ... (by helios)
by W Neto
"Hello World" PS1... in C++...
 
Good Afternoon.Know Somebody how to code a "Hello World" to Sony PlayStation1 ? Links, tutorials,articles, tips, anything... thanks... wn_br
[2 replies] Last: thanks man! (by W Neto)
Convert class type int to double
 
Hello guys, I am a bit stuck here : My class vector has x,y,z and these values can be double or int . I have other functions that add two vectors together w...
[11 replies] Last: I'm saying that unless you are using a compiler that supports C++0x's ... (by jsmith)
Performing an action after regular time intervals.
 
Hi, I want to do a thing I never did before. I want to read number from a file after regular time intervals (20 milliseconds for example. ) I am running a ru...
[2 replies] Last: you can use a timer http://opengroup.org/onlinepubs/007908799/xsh/t... (by bigearsbilly)
Basic char allocation
 
Hi all, I just thought about this basic thing and I could not find an answer for this myself. So please put in your thoughts here about. Why is the ...
[7 replies] Last: works for me. on gcc. remember some compilers aren't fully compliant... (by bigearsbilly)
Compiling SQLite with Dev-C++
 
Hello everyone, This is my first post. I am trying to manually compile SQLite 3.6.23 with Dev-C++ as a static library (I can always just download de DevPa...
[7 replies] Last: SQLite Amalgamation and g++ "This is not a link issue, but a compil... (by Taffy)
by Jaymie
HUGE NUMBERS!
 
Hi, I know it's a bit extreme and has probably been asked many times before, but I'm interested in managing large numbers. I wish to artificially create lar...
[2 replies] Last: I would strongly advise using a 3rd party bignum library -- their algo... (by jsmith)
by benhe
How to play this game
 
http://www.cplusplus.com/src/ Tank 3.0 Beta I just wanna know how can i play this game, do i need to set each file into my C++ compile software and then comp...
[1 reply] : It looks like the code has a bug in it. It is not well-written or docu... (by Duthomhas)
Parsing pcap files
 
I am new to handling pcap with c++. I was looking for a way to read and write *.pcap files for a small project. Can anyone guide me in the right direction to st...
[no replies]
calling a member function pointer with an structure´s assistance
 
I am passing a structure to an thread. The structure contains a pointer to Object A and an function pointer to one of A´s functions... No I am wondering ho...
[1 reply] : //The windows version #include "stdafx.h" //I'm using visual stud... (by guestgulkan)
by mugga
Reading a particular line from an output file (1,2)
 
Hi, I have an output file which has more than 1,000,000,000 lines. I am accessing this file in another C++ program. Now while accessing the output file using...
[26 replies] Last: First of all I have spotted another problem. Your if() at lines 7 & 8 ... (by Galik)
how to incorporate voice commands (1,2)
 
i am very new to c++ and i am looking for a way to use a microphone and a computer speaker. i am doing this so that i can speak to my computer and have it talk ...
[26 replies] Last: I just read over the SAPI´s Overview and found out, that it is not im... (by Incubbus)
June 2010 Pages: 1... 678910... 18
  Archived months: [may2010] [jul2010]

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