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

by sun216
Cimagelist.Draw() returning 0
 
I want to display Cimagelist object in a dialog box Please see what is wrong --- OnInit() m_listDiscoveryAnimation -> CImagelist object { m_bmpDisco...
[1 reply] : Well it's working now -- I used DrawIndirect() -- it's woking s... (by sun216)
by mar11
allocate memory on the heap
 
Hi all, I have problem by allocating a memory for my objects. Assuming this lines 1- object* test; 2- test = new object ; 3- test->Attribute = true ...
[2 replies] Last: Please post some of the code. Its easy to miss inadvertent memory leak... (by Galik)
matrices array
 
Hi i am new to C++ and want to know how to create an n x n matrix where the numbers go in sequential order in the first row and first column and then continue t...
[11 replies] Last: I'm not an expert on this. I am just going on what Wikipedia says. ... (by Galik)
how to store an alphabet from an array[26] to another array
 
I have taken two arrays p ={'A','B'- - - 'Z'} and array s .I want that to select a desirable alphabet from p array and to store it in s ,and keep incrementing ...
[no replies]
binding reference parameter causes error
 
Greetings, I'm studying bind1st/bind2nd in STL and encountered the following question. I have a vector<int> and I want to print all elems in that vector in s...
[no replies]
print in alphabetical order.
 
how can i get the program to print automactically in alphabetical odrer instead of manually setting in the array myself.i appreciate any feedback. #include <i...
[4 replies] Last: thank you for all your help. (by marty09x)
by vRltwE
Fundamental lack of knowledge
 
Hi, I am getting the error: /home/cristiano/NetBeansProjects/Cpp_Teste/GPA.cpp:12: undefined reference to `GPA::MATRIX' /home/cristiano/NetBeansProject...
[3 replies] Last: Basically, the .cpp file is where you usually put all the DEFINITIONS.... (by Galik)
by cpukid
referencing variable names
 
I am running an algorithm and it must output several results into unique files. I could do if-statements and open each file one at a time, however I rather ke...
[2 replies] Last: Works great! Thank you! (by cpukid)
by vihrao
how to delay destructor call
 
I am using operator to add two matrices stored inside matrix objects. I instantiate and initialize two matrices. Then I call operator to add them. But before ad...
[4 replies] Last: 2. Classes with pointers require you to define a copy constructor, as... (by PanGalactic)
by genny
importing files with strtok
 
Hi, I have a problem when I import two files and then do some stuff and outpout the result. Here is my code below. The program works perfectly , there are no...
[2 replies] Last: I thought that's what I did . I import the line ( line 82) and then... (by genny)
assigning one structure to another using pointers
 
Hi, i have two pointer to stuctures named *currMB and *PrevMB and i want to assign PrevMB into currMB. will the C++ code below work. struct Macroblock *cu...
[1 reply] : Macroblock is the structure Macroblock mb would declare a Macroblock ... (by hamsterman)
3D Rotation
 
I've been in other forums for this but no reply yet, it's quiet on here tonight so I figure I might else well ask :) Alright, so I've got a Model of a spaces...
[no replies]
Rotation of rectangles in SDL. (1,2)
 
Okay. I have this program in SDL, where there are a lot of objects (classes) that each contain a couple or rectangles grouped together. When I display these obj...
[20 replies] Last: http://www.mediafire.com/?moyzzmmzozm (by Mythios)
by pccX
Converting an integer to a STL bitset
 
I am looking for a STL function that converts an integer to a STL bitset. Please suggest.
[3 replies] Last: Generic Programming and the STL: Using and Extending the C++ Standard ... (by moorecm)
question about vector, arrays, and pointers
 
Hi all, thanks in advance for taking a look. I've onlye taken 2 classes of c++, now.. so, still working out the details of hierarchy and classes, etc, in my ...
[3 replies] Last: Yes that looks fine. But it also depends on what you want to do wit... (by Galik)
C++ DLL called from VB
 
Hi, i want to write a DLL which is called from MS Access (VBA)or MS Excel (VBA). First i place a class with public and private member. Next i place a second...
[3 replies] Last: It's conventional to open a file when you begin to use it, can close i... (by kbw)
inheritance
 
Hi, I have created 2 separate template classes VEC and MAT. However, I just came across a library where the MAT (matrix) class is implemented and as VEC is j...
[1 reply] : template <typename Type> class MAT { }; template <typename Ty... (by Denis)
vector pointer
 
I need some help with coding. :( It would be great if someone can help me with my problem. I have vector of linked list. eg) Vector --- A | --- B | ...
[1 reply] : Hi. I think you want a vector list to hold vector lists itself (by ... (by cdel)
add space between array strings
 
I'm trying to find a easier way to add space between the Client and the Business type i tried using setw() in the array and in the first cout i had no luck. How...
[5 replies] Last: #include <iostream> #include <sstream> #include <iomanip> using na... (by moorecm)
by mar11
mem lack
 
Hi all, I am a bit confused about the real cause of memory leak in this case: int a(4); int Pointer_1*; int Pointer_2* = &a Pointer_1 = new int; ...
[1 reply] : The only pointer to the piece of memory allocated to Pointer_1 has bee... (by Galik)
May 2010 Pages: 1... 1213141516... 22
  Archived months: [apr2010] [jun2010]

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