Search:

Type: Posts; User: h3ro

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    977

    Color not working when using an mouse event.

    First of all, im not really sure how to explain this very well as I am finding it very very strange.

    I am trying to draw a grid into a form and have the colours of the grid change if they are...
  2. Replies
    1
    Views
    1,586

    Dereferencing pointer stored in boost::variant

    How do you deference a pointer stored in a boost::variant variable?


    typedef boost::variant< bool*, int*, unsigned int*, float*> parameterList;

    Thanks,
  3. Replies
    10
    Views
    1,389

    That fixed it. I thought rand() might be bassed...

    That fixed it. I thought rand() might be bassed on the time/tick of the computer and that was why multiple threads executing at the same time would generate the same number. Thanks for pointing out...
  4. Replies
    10
    Views
    1,389

    What do you mean? float Math::RandFloat()...

    What do you mean?



    float Math::RandFloat()
    {
    return (float)rand() / (float)RAND_MAX;
    }
  5. Replies
    10
    Views
    1,389

    Yeah, as far as I know. I commented out as much...

    Yeah, as far as I know. I commented out as much as possible ending up with the following code, which still produces the error/bug.



    bool RenderSingleBucket(unsigned int threadId)
    {
    float r =...
  6. Replies
    10
    Views
    1,389

    I did not, but adding it did not make a...

    I did not, but adding it did not make a difference unfortunately.
  7. Replies
    10
    Views
    1,389

    boost::thread and local random variables

    Hallo,

    I am trying to make my program take advantage of all the threads on my pc but im running into a strange problem. In the function used by the threads I do (float)rand() / (float)RAND_MAX and...
  8. Replies
    12
    Views
    2,160

    The reason im using arrays is because thats the...

    The reason im using arrays is because thats the data structure the gpu allows me to copy into it. A linked list would be perfect for my needs, but there is no way of copy it to the gpu as far as I...
  9. Replies
    12
    Views
    2,160

    That would work, but it means that I would have...

    That would work, but it means that I would have to copy the array very frequently, and the array could potentially be huge (100k instances) so its not an optimal solution. Thanks for the suggestion,...
  10. Replies
    12
    Views
    2,160

    That would mean that my structure would have to...

    That would mean that my structure would have to be a class and have more data in it, or am I missing something?
    The problem here is that I cant make the structure a class and I cant add any more...
  11. Replies
    12
    Views
    2,160

    Laserlight: C# does not pass structures as...

    Laserlight: C# does not pass structures as references and I cant use unsafe code.
    Sipher: Im not sure if I understand, could you give a quick example or elaborate a bit further?
  12. Replies
    12
    Views
    2,160

    Yes, the program is written in C# Edit: Im so...

    Yes, the program is written in C#
    Edit:
    Im so sorry, I though I was in the c# part of the forum when I posted this but that must have been in a different tab. Could you please move it?
  13. Replies
    12
    Views
    2,160

    Problem keeping track of instances

    Hallo,

    I am having an array of structures that I want to be able to abstract behind a helper class. I want to be able to create a way of referencing the instance of the structure inside of the...
  14. Thread: Get without Set

    by h3ro
    Replies
    2
    Views
    2,680

    Get without Set

    Hallo,

    Im looking for the correct syntax for creating an attribute in c# with just a get accessor.
    Something along the line of this:

    public int ID { get;}

    Is that possible or do I have to...
  15. Replies
    6
    Views
    1,215

    Casting from object

    Hallo,

    Is it possible to cast from an object to an other type where the type is unknown at compile time?

    Something like this
    int orgValue = 10;
    object obj = orgValue;
    int final =...
  16. Replies
    2
    Views
    1,103

    How to make an installer

    Hallo,

    I am in the process of wrapping up a project for Mac and PC and I need to make an installer for it. I made the PC version of the installer using NSIS, but after burning it to a CD the...
  17. Replies
    4
    Views
    1,452

    Thanks to both of you for your reply. Im starting...

    Thanks to both of you for your reply. Im starting to see that this is probably not something c# is encouraging you to do.

    I got a solution working, but its very nasty and I was wondering if...
  18. Replies
    4
    Views
    1,452

    Some help with "templates"

    Hallo,

    I am trying to build a generic debug class for printing information about different objects to the screen, and also change them if wanted, but I am having some problems with adding the...
  19. Replies
    11
    Views
    14,827

    It is a pre-existing program that uses memcpy()...

    It is a pre-existing program that uses memcpy() on some of its struct and I need to modify the struct, and adding a std::vector would be the easiest for me, but I could not get it to work :)
  20. Replies
    11
    Views
    14,827

    Well, as you probably know you cant always make...

    Well, as you probably know you cant always make all the decisions yourself.
    The program was already using memcpy to copy the data around and I didnt really want to rewrite it (its a biiiig program)
  21. Replies
    11
    Views
    14,827

    Is it possible to memcpy a std::vector?

    I was playing around with using memcpy to copy a structure that contains a vector, but I could not get it to work. Im guessing its not possible as the memcpy probably just copies the pointer inside...
  22. Replies
    12
    Views
    3,139

    Speed of different languages

    Hey,

    Is there anywhere I can go to get an objective overview over how fast different languages are compared to each other? Im not looking for what langues are the fastest for certien operations,...
  23. Replies
    6
    Views
    1,243

    Always wanted to use python, guess this is the...

    Always wanted to use python, guess this is the time. Thanks :)

    Which version on python is the one with best support, Or should I just get the latest one?
    And, what is a good IDE for it? If you...
  24. Replies
    6
    Views
    1,243

    Extracting data from a webpage

    Hey.

    I am looking to extract some data from a few websites for the purpose of some statistics work. I know I could do that by looking that the websites in question and then copy past the...
  25. Replies
    0
    Views
    1,876

    Stop PictureBox from redrawing?

    Hey,

    I have a picturebox that I draw a few lines on top of. But right now it does not look very nice as sometimes the the lines are not rendered(the background picture is) and the lines flicker a...
Results 1 to 25 of 485
Page 1 of 20 1 2 3 4