General C++ Programming - March 2010 (Page 6)

by rwan
fwrite/fread in C++
 
Hi all, Coming from a C background, I've been using fwrite and fread to write/read binary values (either a single value, or an array of values). Is there ...
[4 replies] Last: evil c++-- jealousy... (by Incubbus)
GUI buttons
 
hello every one. I have been learning c++ for a while now and i want to start learning GUI programming. i have been looking for a while how to make buttons a...
[3 replies] Last: +1 for QT, it is such an amazing library...so many awesome features an... (by closed account 1yR4jE8b)
by warka
array problem
 
how do i pass a loaded array from a function back to my code?
[4 replies] Last: This kind of question is one of the reasons that I wrote this. It is ... (by kempofighter)
Array in struct question
 
I have a struct in the header with a char customer and double cardBalance and it accepts data just fine. My questions is, when I am trying to print out the d...
[2 replies] Last: Why is cardBalance an array of 20? You are only entering 1 value when... (by kempofighter)
by warka
Problem with reading file
 
i am trying to load an array with information from a file but i keep getting my message that if cannot open the file. here is the code string load_array1(...
[7 replies] Last: Ah. That's the hide known extensions option. (by tummychow)
by PTrain
C++ program to acknowledge serial numbers
 
I am trying to write a program that will acknowledge serial number inputs from a RFID scanner attached via usb. All I want the program to do is beep every time...
[3 replies] Last: That's keyboard input then. Try just writing a normal program with som... (by tummychow)
by warka
Need info on headers!!
 
i have written a .h file but i cant figure out how to include it in my other projects i am working on. do i have to save the file in a certain area or what? wh...
[1 reply] : Your IDE/compiler probably doesn't know the directory of your header. ... (by tummychow)
guide about game programming (1,2)
 
hello friends, I'm beginner in game programming and confused about platform which one is best .... 1. DirectX 2. OpenGL and tell me best books wh...
[29 replies] Last: OK, can we stop this discussion now? (by chrisname)
C++ Webservice
 
Hello, I have a requirement to build Java to Fortran interface. Java (J2E) runs on a machine with Websphere and on another machine I have Fortran programs. ...
[1 reply] : JNI? http://java.sun.com/javase/6/docs/technotes/guides/jni/index.htm... (by imi)
Joystick Input
 
Do anyone know how to use functions for joystick ? ex: for keyboard - mKeyboard->isKeyDown(OIS::KC_M) i want to know functions for joystick as keyboard ...
[2 replies] Last: Yeah i'm going to use joystick with ogre. But don't know how to call f... (by chethaka)
by rekcha
noobie thread question
 
I have classes class FirstClass { public: FirstClass(); SecondClass *second; void LaunchSecond(){ this->second = new SecondClass(this); ...
[3 replies] Last: It's a typo, they're the same I'm getting Main thread: 92 Main ... (by rekcha)
linker errors
 
what is casuing these following linker errors: 1>------ Build started: Project: Dark GDK - 3D Game1, Configuration: Debug Win32 ------ 1>Linking... 1>MSVCR...
[2 replies] Last: I think this is a library conflict. You need to change your build set... (by Disch)
Problem!! can anyone solve it?
 
Am making a program that calculates the fourth root of a number, it should ask wether user wants to continue. if yes then asks for another number.An error at ci...
[2 replies] Last: Is it because you declared 'choice' as an int? also a little further d... (by Computergeek01)
Troubles on Navigation on my program and storing data T_T
 
#include<stdio.h> #include<conio.h> #include<string.h> #include<ctype.h> #include<stdlib.h> #include<dos.h> int pass(); void function(); void password()...
[1 reply] : What is your question ? (by lloydchristmas759)
by erezz
Releasing the placement new buffer
 
Sometimes, I need to use placement new instead of new (i.e. just run the constructor without allocating memory). Here's a simple example: /* Allocation */...
[6 replies] Last: See: http://www.parashift.com/c++-faq-lite/dtors.html#faq-11.14 for ... (by lloydchristmas759)
Compiling a program in Visual Studio using minGW/cygwin?
 
I'm trying to use the VMime library for a project but it requires that I compile it myself, the source code includes a visual studio project file but the librar...
[no replies]
Generating bitmasks
 
Hey all. I want to guarantee that an input ( size_t value ) has all bits greater than the first count bits cleared. My first thought was to simply mask ...
[3 replies] Last: 0U - 1 == 0xFFFFF... Hmm... unsigned value... yes, it should... I su... (by Duthomhas)
can anyone solve this error
 
1>------ Build started: Project: face_detection, Configuration: Debug Win32 ------ 1>Compiling... 1>face_detection.cpp 1>c:\documents and settings\student\de...
[1 reply] : You're working in Unicode. If you don't need it switch it off. If yo... (by kbw)
Resize images at runtime with SDL
 
I have a 1600x1200 image that I want to make fit the screen in SDL (so that it will work regardless of the screen size) but I can't find an SDL function to do t...
[15 replies] Last: Hey, thanks, Disch. I'll download that library later on and have a loo... (by chrisname)
Custom error messages
 
I can print error messages in case something turns up that I don't expect using assert(!error) But that doesn't allow me to cout elaborate error message. Can...
[no replies]
March 2010 Pages: 1... 45678... 23
  Archived months: [feb2010] [apr2010]

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