Didn't I say .net?
Yes, I was talking about managed code, among many other things.
For example the String datatype (i believe it's actually an object).
In fact the entire string library in...
Type: Posts; User: Wick
Didn't I say .net?
Yes, I was talking about managed code, among many other things.
For example the String datatype (i believe it's actually an object).
In fact the entire string library in...
Maybe the system is trying to spite you for writing such horribly formatted code. (just kidding)
I did notice one problem in your method. It shouldn't cause this weird termination, but you'll run...
VS .net is great, and we students get it at a much more decent price through the university. ($20 as opposed to about $1200)
For anybody that's coded in java, you'll find a lot of the .net...
I feel pretty stupid for not being able to figure this out, but:
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
Right. I do the same.
My main.h file (included in every file in my project):
#ifndef main_h
#define main_h
#include <d3d9.h>
#other includes
For some reason, whenever I call Direct3DCreate9(D3D_SDK_VERSION) inside a class' member function such as:
HRESULT D3DControlObj::InitD3D(HWND hWnd)
{
if ((g_pD3D =...
Wow, wonder why? Thank you. That's good to know.
Thanks ripper, learning about templates helped out a lot. However, now I'm getting linker errors calling my member functions in main(). They all show the same error with different functions.
...
Yes, I know you can't overload functions like that. That's why I posted. I couldn't make different functions. What if I decided to support six different datatypes? Then the person using my class...
I have a class that makes use of one of two different vectors I declared in the class declaration depending on a datatype that has to be specified to the constructor.
Here are the two...
haven't used strftime, but it's official. When I spend a lot of time on something, there is always an easier way.
time_t is just a datatype like he said, and time() is a function that sets the...
I meant to say "then when it's called it loads the process and executes at the same time."
tired typos
Ok, the way you show time in c++ is number-of-seconds.
Say you wrote a program to output that number. The output would look like: 1062833516, a string of digits.
This is the number of seconds. ...
Ok, this is what I have found out so far:
Doug, this will explain your confusion over the word "void". I had prototyped void CheckDeviceCaps(); (I'm sure you know () is just like (void)) in my...
I've never had any experience with linker problems before. Looks like it might be the way I call some D3D and WINAPI methods, but I checked their usage, and it looks ok. After a long debugging...
I thought you had to use addresses, like:
char* stringPtr;
stringPtr = &"Hello There";
or
char hThere[12] = "Hello There";
struct intArray(int size)
{
switch (size)
{
case 1: { int a0; break; }
case 2: { int a0, a1; break;}
case 3: { int a0, a1, a2; break; }
}
};
Seems the logical order. But, who knows? I was just reiterating someone much more keen on the subject than I am.
When you have a function header plus body before main(), it gets it a memory address, just as a prototype would, then it "preprocesses" the body (saves the process in memory without actually...
I realized that strlen() only works on arrays of characters. I need to find a way to get the length of an array such as:
int array[10];
array[0] = 1;
array[1] = 1;
array[2] = 1;
The...
I just got the DirectX9 SDK for C++, and I installed it, but I don't have the slightest idea what to do with it so that my compiler can use it. I tried adding all the files in it's include and lib...
Oh yeah, Hammer, I think you missed the point. The code I posted was just an example of my problem with int instead of INPUT_RECORD.
I actually am checking for events in queue, it just does it in every iteration, so the user can enter any key value I check for at any point in any iteration, and have the same outcome. I just don't...
I should have implemented that before I posted it. That cleans out the buffer, but the record still exists.
So I cheated:
InRec.Event.KeyEvent.uChar.AsciiChar = 'i';
'i' is just a...
Found it. FlushConsoleInputBuffer(HANDLE hConsoleInput);