General C++ Programming - December 2008 (Page 4)

by mrcpp
deleting aggregates data on destructor
 
In my code I have a class that contains a list and an array of pointers to something. When I try, in the destructor, to delete the data that is pointed to by t...
[1 reply] : Well the obvious answer is don't free the memory, but in general the q... (by jsmith)
packed byte array in struct doubt
 
Hi. Here comes another esoteric, oddball question. ;-] I need to parse byte-packed data from a stream in C89. I would like to use one-byte byte arrays in the...
[6 replies] Last: I'm thinking that since everything in the struct is, essentially, just... (by Duthomhas)
Corba Server, cygwin + mico compilers
 
This is my server implementation for my C++ corba server. I have an idl file called blackjack.idl that generates blackjack.h and blackjack.cc when i compile it...
[2 replies] Last: I tried the Ext version and got the same result... after almost 3 days... (by Feanor306)
program crashes (QtTestRunner)
 
i have a QtTestRunner from where i run some code, a object, which reads from an xml file [ the object.read(.... ) ] using the libxml2 library when i run the...
[1 reply] : http://mail.gnome.org/archives/xml/2007-February/msg00140.html in c... (by mariusd)
Some questions about threads
 
I am trying to write a program using threads. This is the first time I am using threads, and there are a few thinks I don't know. When two threads are editin...
[7 replies] Last: Personally I use the wrappers from ATL for that, they are quite user f... (by anders43)
by amir
linear solver, and some questions on Fortran_C++
 
Dear Friends, I am trying to convert my code from FORTRAN (CVF6.6) into C++ visual studio 2005, because i need to link my code to other languages (e.g, Matla...
[2 replies] Last: I think one thing you should do before converting is to create a numbe... (by anders43)
Using an image as an object
 
Ok so say I'm making a 2D game, I have one picture as the background and another one as the (foreground) land. Etc for those of you who know the game worms - Li...
[12 replies] Last: Cheers mate, but I've used SDL and XNA to build tile engines and paral... (by Mythios)
[SOLVED] Thread vs. non-threads in a DLL
 
A big hi to these forums from a new member here. :) I hope anyone can answer my questions. I'm currently writing a DLL for networking purposes. The idea behi...
[15 replies] Last: Ah, I see now - I thought a critical section meant that no other threa... (by Fire Button)
Get file section
 
I am creating a program that sends a file quickly by sending sections of it in datagrams.... everything is working fine so far, except when i use file.read(buf...
[7 replies] Last: If only every poster was like you... (by helios)
What C++ compiler will generate ASM that can be assembled in FASM?
 
I'm looking for a compiler that can generate assembly code that could be opened and compiled with FASM with no (or at least as little as possible) alteration to...
[1 reply] : That seems like an odd question. Why do you need to assemble specifica... (by helios)
by g0dwyn
[SOLVED]Questions re: memory management
 
Hey all, I have a simple pair class (never got around to implementing SGI STL), where the contained objects are assigned by value. It goes something like th...
[2 replies] Last: groovy. Thank you! (by g0dwyn)
image
 
i have my image stored in the computer in the my pictures folder. how can i display it in c++ ??
[5 replies] Last: Um, the SDL is intended for real-time graphics applications. You shoul... (by exception)
how to make function on this program?
 
i have a big problem i think.. can anyone please teach me about how to input a function on this program? #include<iostream.h> float input(int i,int j) { ...
[7 replies] Last: okay... thanks about the function and the binary, o, isee... so D... (by devaeron)
thread safe and reentrant
 
Hi, Will a singleton class be thread safe and rentrant if it is used in a multithreading program? In genera, if a class has a static member, can that cla...
[1 reply] : You seem to be a bit confused about what it means to be thread-safe an... (by helios)
reading bitmap pixel by pixel??
 
I want to ask how i can read a bitmap file with pixel by pixel. And using these data how can i create histogram. all code must be with console application ...
[1 reply] : If you want to learn how to read bitmaps, this link would be useful: ... (by Bazzy)
creating a simple bar chart using numbers entered from the command line
 
Hi I need help creating a program which prints a line of n copies of the character c followed by a new line.and then use this code to print out a simple barc...
[12 replies] Last: int main( int argc, char * argv ) { for(int i=0;i<argc;i++) ... (by AHUazhu)
by Dante
Spellchecker
 
Hi everyone/anyone. I just found this website via friend. I'm having trouble with an assignment that needs to read in a file that contains a large list of words...
[5 replies] Last: Just edit your topic name and replace the start of it with (by Mythios)
graphics
 
if we make a circle taking (0,0) as the center and 100 as the radius. then we are able to view only the 4th quadrant of the circle. how can we view the whole ...
[10 replies] Last: thanx to all the repliers especially helios (by chandangang)
by jpeg
Converting long doubles with endianness
 
Hello, So I'm attempting to convert the endianness of long doubles, but I'm running into a problem with portability to other machines. I've got a solaris/spa...
[1 reply] : I was bored, so I decided to solve it: template <typename T> T in... (by helios)
by cwklug
Editing summary info properties
 
I was given the project to add information to the summary property page of non-office files. I have almost no experience with C++, but I managed to find a progr...
[6 replies] Last: You're right, it doesn't work. This does work, though: #include <i... (by helios)
December 2008 Pages: 123456... 10
  Archived months: [nov2008] [jan2009]

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