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

by jinhao
Nana C++ Library -- my opensource projoect
 
Hello, Nana C++ Library is an Open Source library, it provides some useful toolkits, such as GUI/Threads/TextTokens, the GUI framework gives you a simple way ...
[no replies]
by MacG
how to setup cstring arrays?
 
What would be the better way to set up an cstring array; Method 1 or Method 2? Method 1: char **stringarray; stringarray = new char* ; for (int i=0...
[1 reply] : Method 1 will always work if stringcount is a variable regardless of c... (by helios)
by ares
Function Pointers to DLL functions.
 
Hi, I have 2 DLL's. 1: DirectX.dll 2: OpenGL.dll Both DLL's have the same functions but one handles them using OpenGL and the other uses DirectX. Now...
[3 replies] Last: Thanks for the tip, i will check it out. *Edit It works, perfect... (by ares)
by scythe
If you were to give me an assignment
 
...involving templates, what would that be? I have never worked with templates, but I feel it's something I can't avoid anymore. But I need some practice. So ...
[5 replies] Last: To exercise both function and class templates, try to implement a bina... (by Corpus)
double with a 300-digit number
 
Hi! I have written a program which prints out a certain number. the thing is, when a number is greater then 8 digits, it returns x.xxxxe+00x where the x ar...
[2 replies] Last: Okay, thanks! I'll try that and se if it gives any result :) (by Shreddz)
Passing filename to a function within a class
 
Hi, I was hoping someone could help me out with this problem, C++ is a bit new to me. Basically, I want to have a program which takes in a filename in the mai...
[5 replies] Last: Thanks, got it working (by mscashmore)
Need aother tutorial
 
So, I know the basics. I've read the CPlusPlus.com tutorial. What now? Where do I go?
[3 replies] Last: What you might want to do is decide on a project that interests you an... (by jeffbmartinez)
Problem creating an instance of a class inside another's header
 
I've created a dynamic '2d' array as a class, which I want to create an instance of in another class (the main game class for a 'connect 4' - where the grid siz...
[2 replies] Last: Thanks, thats great. (by Blandr3ws)
by danz
Scope issue
 
Hi! I wrote two DLLs. One is called only by an EXE and the other is called by the EXE and another DLL that I wrote. The DLL that is called only by the EXE ...
[no replies]
Custom List Class
 
Hey everyone, I'm trying to write a custom List class that stores and manages references to other objects. What I would like to know is, whats the best pract...
[1 reply] : You can still make links use the data in links in a different list by ... (by helios)
by g0dwyn
[SOLVED] link error w/ generic class
 
Hey everyone, Are there any known precautions I should take when building code with a generic class? I've made sure to fully define my classes in the source...
[11 replies] Last: ahh, for real? Yeah, they're defined in a header/source pair. Jeez, ... (by g0dwyn)
by mrcpp
Special home made list problem
 
I'm making a special list and I came into a problem. The linked list is special because it has sub levels. A cell in a list can include other cells. The cla...
[9 replies] Last: Thanks a lot to all for the help I adopted for one of the solutions t... (by mrcpp)
by MacG
A quick question on new/delete and alloc/free
 
Hello, I have a question regarding the new/delete operator compared to alloc/free. When dynamicly allocating memory for a char*, I normaly use calloc so a...
[8 replies] Last: Thanks for this info. It was very helpfull. (by MacG)
by Bissle
Creating and writing to a bitmap.
 
Hi there; I've been messing with fstream for the past week as a learning experience. I created a Bitmap structure with a header, infoheader, and rgbquad substru...
[7 replies] Last: Thanks, helios ; now I finally got this to work properly. void ... (by Bissle)
by MacG
program behaves strange
 
I have this structure: struct elementtype{ int elementcount; char *str ; int size; }; Then I have this function: elementtype test(c...
[11 replies] Last: It's working by nothing more than pure luck. Sooner or later, that cod... (by helios)
Process::Kill() (1,2)
 
I'm having some problems learning how to use this function.. I've managed Process Start (Process::Start(textbox1->Text);) but Process Kill will not work. ...
[31 replies] Last: you're welcome (by MacG)
by cired
What are the differences
 
guys i have two items below and i just want to know the differences between them. 1. myfunction(std::string("first word") + " " + "second word"); 2. myfunct...
[3 replies] Last: unless the compiler converts it implicitly Which will never happen.... (by helios)
arrows
 
i want to make a program such that if i press the down arrow key , my name is displayed . so how do i get input from the user as the down arrow key?? pl...
[9 replies] Last: I think my code would work on any c++ compiler for windows (by Bazzy)
MySQL connection (1,2)
 
I'm writing a program to connect to a MySQL v5.0 database. I did a #include <mysql.h> and I get an error saying there's no such file or directory. Any ideas...
[21 replies] Last: No by the looks of it, all of the files are of type LIB. Is there som... (by aeronet)
by MacG
Problem with pointer arithmetics
 
Hi there, I have have some trouble concerning pointers. Problem: I have a struct struct elementtype{ int elementcount; char *str1; char *st...
[4 replies] Last: Well, why didn't I get this idea by myself?? Does what I want and pre... (by MacG)
December 2008 Pages: 1234... 10
  Archived months: [nov2008] [jan2009]

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