I have encountered a problem in my first serious forrays into windows apps and directx. When compiling code copied from a book or the web into VC++ 2010 Express I got a string of objbase.h errors. ...
Type: Posts; User: musicman
I have encountered a problem in my first serious forrays into windows apps and directx. When compiling code copied from a book or the web into VC++ 2010 Express I got a string of objbase.h errors. ...
I am going through Accelerated C++ using Visual C++ express 2010. In chapter 4 it makes a struct for student info and supposedly reads names and marks in from a file, and this is where I am stumped....
Your immediate problem seems to be the lines marked in red.
Also consider how you will account for negative numbers (eg maybe set greater/greater2 to num on the first time round the while loop) ...
I'm prepared to be told this is bleedingly obvious, but I'm just testing the waters of DirectX. Code so far:
App.h
#ifndef APP_H
#define APP_H
#include <Windows.h>
#include <d3d9.h>
I am trying to figure out using static variables to auto increment each new instance of a class. Here is what I have so far:
People.h
#ifndef PEOPLE_H
#define PEOPLE_H
#include <string>
Having become fairly adept with 2d programming in xna, I am testing the waters of 3d which seems a fair leap. I am working from Riemers tutorials and copied this code
using System;
using...
Does anyone know exactly what the famous indie game Braid was coded in? From what I can tell it was some C++ compatible libraries. I'm curious as it looked good though I doubt one person would have...
I know there are lists of books elsewhere on this forum but not much about programming in DirectX. I already know console C++ and the standard object oriented concepts (though you need that anyway)...
Thanks. textEdit is the name of the textfield being used (multiline instead of just one line). It was the default and I didn't bother changing it as its only a practise program for things like...
I have just started Qt widget programming. Part of my first program looks like this
void MainWindow::numberChanged(){
int numOne=ui->numberOne->text().toInt();
int...
Excellent that worked. I'm not au fait with the difference between win32 and console programs, shows my inexperience in anything beyone plain console programming.
I've heard of Qt as well and am...
1 errorLNK2019: unresolved external symbol_main referenced in function__tmainCRTStartup File MSVCRTD.lib
RTD2 fatal error LNK1120: 1 unresolved externals File Test.exe
I am going through a tutorial on DirectX and one continual problem is the windows.h file not being picked up so I get 'unresolved externals' etc.. Presumably this header file should be in the C...
My reply was a little tongue in cheek but actually I find it quite rude to be told it has been discussed before. I was even looking for the report button. I can't possibly sift through the whole...
Excellent reply quzah. You obviously know your stuff. A newbie knows the previous discussions inside out and doesn't need to ask anything.;)
Any serious and more helpful replies most welcomed.
An interesting question I ask myself is how exactly do we define the difference between basic C programming and C++? A common distinction seems to be C uses printf and scanf while C++ uses iostream...
Can anyone recommend a useful book that clearly shows methods of creating GUI programs using C++ (things like Notepad++ for example). One that assumes sound knowledge of basic console C++ including...
I have written the following code (names file is fine and that is not the issue. It is the old chesnut of converting char, char*, string arrays.
#include <iostream>
using namespace std;
...
I am writing a simple C program using a while loop to enter numbers to a file. I'm very new to this so please don't say it's obvious.
#include <conio.h>
#include <stdio.h>
int main()
{...
Yes I did 'bother to search' but didn't find exactly what I needed. It will be obvious to an expert like you. Thanks for the link anyway.
I am currently doing all my C or C++ in Visual Studio or Dev C++, both installed in free version form on my computer. What I would like to do is simply write a C program (not C++) in Notepad++ and...