General C++ Programming - August 2011 (Page 19)

by frog1
How to use excel Dialogs(xlDialogPrint)
 
Hi, I use wxautomationObject to create Excel. But can not show printer dialog like Application.Dialogs(xlDialogPrint).show Please, Help me finished ...
[no replies]
Variable Number in File Name
 
I'm trying to make multiple files with results from some tests I'm running. The problem is, I can't make my variable a part of the string for the text file name...
[6 replies] Last: I just put "newname.str().c_str()" as the input for ifstream and renam... (by JakeIsBoss)
by fsshl
can we access address of private member(data)
 
Dear c/g++ programers: I am using g++ 4.5.2 to test a program, claimed can be compiled/run well in msvc++7.1 But my compiler reponse many mistake, especi...
[1 reply] : The answer to your original question (thread title) is : nope! If vc7... (by andywestken)
The number of digits in a number entered by the user
 
Hi guys, I'm new to c++ and I've got a question. I want to make a c++ program that displays the number of digits in a number entered by the user and I wan...
[3 replies] Last: Thank you both for your posts! @Duoas My program works. And why sh... (by PlusPower)
by iCurzU
When to use global variables...
 
Hello everyone. I recently got some code from a guy that uses an external API. The code has a class with a reference counter which is used for initialization p...
[9 replies] Last: Yep! Just clarifying things in (what's left of) my mind! (by andywestken)
(*this)-> question
 
Hello I came over a strange function at my new job today. From what it looks like to me it is a function calling itself until it trows an exception. I have a...
[14 replies] Last: My guess CSomeClass contains a pointer/handle to some object, this is... (by kev82)
by chulio
About Makefile
 
Hello, i would like your opinion or a good tutorial on how to create a Makefile. Thanks :)
[2 replies] Last: http://www.gnu.org/software/make/manual/make.html (by closed account 1vRz3TCk)
related to function pointer
 
Hi I have just written a small code to understand function pointer. bellow is the code in ms visual studio #include "stdafx.h" #include <iostream> #includ...
[3 replies] Last: #include <iostream> using namespace std; #define CALL_MEMBER_FN(obj... (by closed account 1vRz3TCk)
by HenriK
Could this be optimized even better?
 
Hello, guys, long time no see. Here I happen to have a header & source file (both written in C , because of it´s portability, low-level nature & very small...
[12 replies] Last: Oops, I made a mistake. Forgot that there were two different Fix -func... (by HenriK)
GPU-Programming - a few questions to get started
 
I've written a primitive tile rendering engine and noticed, that it renders slow on the CPU. That's why I want to get into GPU programming now. What I'm plan...
[5 replies] Last: Well, thank you, but none of you have directly answered my questions y... (by NameThatIsNotTaken)
Problem Building Boost
 
Hey all. I'm trying to follow the instructions from http://www.boost.org/doc/libs/1_47_0/more/getting_started/windows.html and I'm having some trouble. First...
[no replies]
by jay75
scope + pointer problem
 
i get an "error : swordpick was not declared in this scope" for the line: enemy->TakeDamage(SwordPick->GetDamage()* SwordPick->GetQuality()/10); it's towa...
[6 replies] Last: make sure you destruct the constructors (by graham sullivan)
copying from a boost pointer
 
Hi All, I have a function which calls a boost shared pointer. 1. How do I copy the content from that pointer to a variable 2. How do I create another poi...
[no replies]
making monster spawn off screen
 
I want the monster to spawn randomly between -200 and 0, or 640 and 840. I know i would have to make 2 random numbers, one to pick which set to choose between,...
[4 replies] Last: srand(time(0)); int first = rand() - 200; int second = rand() %... (by graham sullivan)
if/else vs "?"(conditional operator)
 
Hey guys, for normal coding i use both "if/else" and "?". "?" made code size small to have easier view and "if/else" made code easier for others to read. But...
[5 replies] Last: Chathu: That's the kind of situation where you'd be better off with i... (by Disch)
Where's the Text document?
 
I just started reading and writing to text documents to save data from some of my programs. I'm just using an example as a test program as shown below. The thin...
[4 replies] Last: Just tried it. Works like it should. Now I'm gonna start on reading th... (by JakeIsBoss)
header for space and not_space
 
hi, I get the following error, does that mean I am missing a header? if so, can you please tell me which one. thx! error: ‘space’ was not declared in ...
[4 replies] Last: thanks CodeMonkey (by itcplpl)
type redefinition
 
I am creating a class that contains no public variables to be used in a linked list but when i try to use the class in the functions to "get" and "set" the data...
[2 replies] Last: Ah i see thanks, that link explained why, i was including it in anothe... (by hastingsdirect)
undefined reference to
 
All set till compilation step. All files are compiled. I am getting this error while linking this project :( "LinkedList_main.cpp:(.text+0x13a): undefined ...
[3 replies] Last: sth wrong with pointers??? Yes. This template <class Object> void L... (by coder777)
by acwas
need some comment - god or bad is ok
 
I am writing a piece of code, more specifically: a class for helping initializing variables inside a namespace for everytime you are including an external cpp f...
[2 replies] Last: This is a bad idea. 1) It doesn't make any performance difference wh... (by Disch)
August 2011 Pages: 1... 1718192021... 29
  Archived months: [jul2011] [sep2011]

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