Search:

Type: Posts; User: Wick

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Compiler Reviews!

    by Wick
    Replies
    20
    Views
    3,046

    Didn't I say .net? Yes, I was talking about...

    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...
  2. Thread: Some help

    by Wick
    Replies
    2
    Views
    821

    Maybe the system is trying to spite you for...

    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...
  3. Thread: Compiler Reviews!

    by Wick
    Replies
    20
    Views
    3,046

    VS .net is great, and we students get it at a...

    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...
  4. Replies
    11
    Views
    1,311

    comment header (file i/o)

    I feel pretty stupid for not being able to figure this out, but:


    #include <iostream>
    #include <fstream>

    using namespace std;

    int main()
    {
  5. Thread: Direct3D question

    by Wick
    Replies
    4
    Views
    1,780

    Right. I do the same. My main.h file...

    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
  6. Thread: Direct3D question

    by Wick
    Replies
    4
    Views
    1,780

    Direct3D question

    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 =...
  7. Replies
    7
    Views
    1,208

    Wow, wonder why? Thank you. That's good to know.

    Wow, wonder why? Thank you. That's good to know.
  8. Replies
    7
    Views
    1,208

    Thanks ripper, learning about templates helped...

    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.
    ...
  9. Replies
    7
    Views
    1,208

    Yes, I know you can't overload functions like...

    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...
  10. Replies
    7
    Views
    1,208

    returning different datatypes

    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...
  11. Replies
    7
    Views
    10,571

    haven't used strftime, but it's official. When I...

    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...
  12. Replies
    27
    Views
    3,317

    I meant to say "then when it's called it loads...

    I meant to say "then when it's called it loads the process and executes at the same time."

    tired typos
  13. Replies
    7
    Views
    10,571

    Ok, the way you show time in c++ is...

    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. ...
  14. Thread: linker errors

    by Wick
    Replies
    4
    Views
    1,543

    Ok, this is what I have found out so far: ...

    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...
  15. Thread: linker errors

    by Wick
    Replies
    4
    Views
    1,543

    linker errors

    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...
  16. Replies
    9
    Views
    1,135

    I thought you had to use addresses, like: ...

    I thought you had to use addresses, like:


    char* stringPtr;
    stringPtr = &"Hello There";

    or


    char hThere[12] = "Hello There";
  17. Replies
    1
    Views
    941

    indefinite number of datapoints question

    struct intArray(int size)
    {
    switch (size)
    {
    case 1: { int a0; break; }
    case 2: { int a0, a1; break;}
    case 3: { int a0, a1, a2; break; }
    }
    };
  18. Replies
    27
    Views
    3,317

    Seems the logical order. But, who knows? I was...

    Seems the logical order. But, who knows? I was just reiterating someone much more keen on the subject than I am.
  19. Replies
    27
    Views
    3,317

    When you have a function header plus body before...

    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...
  20. Thread: array length

    by Wick
    Replies
    3
    Views
    1,863

    array length

    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...
  21. Replies
    4
    Views
    1,369

    Adding headers and libs to your C++ compiler

    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...
  22. Thread: Input Record

    by Wick
    Replies
    6
    Views
    1,571

    Oh yeah, Hammer, I think you missed the point. ...

    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.
  23. Thread: Input Record

    by Wick
    Replies
    6
    Views
    1,571

    I actually am checking for events in queue, it...

    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...
  24. Thread: Input Record

    by Wick
    Replies
    6
    Views
    1,571

    I should have implemented that before I posted...

    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...
  25. Thread: Input Record

    by Wick
    Replies
    6
    Views
    1,571

    Found it. FlushConsoleInputBuffer(HANDLE...

    Found it. FlushConsoleInputBuffer(HANDLE hConsoleInput);
Results 1 to 25 of 44
Page 1 of 2 1 2