Search:

Type: Posts; User: JeremyCAFE

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,777

    I ended up getting what I needed by setting...

    I ended up getting what I needed by setting KeyPreview to true on my main form and then catching KeyDown on that form.

    Thank you.
  2. Replies
    4
    Views
    1,777

    There is the RegisterHotKey command im user32.dll...

    There is the RegisterHotKey command im user32.dll to register hotkeys as global, which will fire events regardless of who has focus. I put a check in which if my window did not have focus, I set the...
  3. Replies
    4
    Views
    1,777

    Application Global hotkeys

    How do I create a C# hotkey that can be triggered in my app but won't lock other running applications from using that hot key?

    Is the only way to achieve this is by doing a key press check event...
  4. I am getting the same error I was getting before...

    I am getting the same error I was getting before on the top most parent now.


    Control 1 (with loaded image) is put onto control 2.

    Control 2 is put onto Form. Form cannot load and is giving...
  5. hmm, so the solution is not working if the...

    hmm, so the solution is not working if the control with the check is double embedded. (used on a parent control, in which that parent control is used on another control)



    if(!DesignMode)
    {
    ...
  6. Thank you. this is perfect for solving the issue.

    Thank you. this is perfect for solving the issue.
  7. Control with image loaded from file, cant view in designer

    I have a control that loads an image in the OnLoad and displays this image in OnPaint. However, when I try to use the control on a form, I can't view the form because of the following error:
    ...
  8. Replies
    12
    Views
    3,666

    Yup, you got it. Example: void...

    Yup, you got it.

    Example:



    void OnKeyDown(eventargs e..)
    {
    keylog[e.keychar] = 1;
  9. Replies
    12
    Views
    3,666

    Not everything needs to be 'copy and paste'-able...

    Not everything needs to be 'copy and paste'-able to get a point across. But I guess instead of picking a random number, [max keys] would have been a bit more clear.
  10. Replies
    12
    Views
    3,666

    What you can do is create an array the keeps...

    What you can do is create an array the keeps track of which keys are pressed and which are not.

    So on key up and key down, toggle that bit.

    c++ example:



    char keysPressed[256] = { 0 };
  11. Replies
    5
    Views
    2,021

    Are you trying to initialize the adj array? Are...

    Are you trying to initialize the adj array? Are you doing the same for loop you did with the other array in which you new each object in the adj array? (unless you are assigning them to existing...
  12. Replies
    1
    Views
    5,302

    Good stuff. I personally use C++/CLI for wrapping...

    Good stuff. I personally use C++/CLI for wrapping an unmanaged C++ program in a dll to be used in C#.
  13. Replies
    13
    Views
    2,250

    char* pc = &c; // ptr to `char' char* pc =...

    char* pc = &c; // ptr to `char'
    char* pc = (char*)c; c is a single character, you are trying to set it equal to an array of characters. a type cast should fix this one.

    int& ir = &ia; //...
  14. Thank you, I will give this a shot.

    Thank you, I will give this a shot.
  15. Like i said, if there is a way of doing that I...

    Like i said, if there is a way of doing that I would love to know how :)

    My understanding of events are simply passing a pointer to a function that will act as a callback function when a specific...
  16. Communication between C++ DLL and a C# GUI

    So here is the scenario:

    Another member on the team is responsible for a GUI that is being programmed in C#. This GUI runs a DLL that has been coded in C++/CLI and retrieves information from the...
  17. I am trying to use your target method to make the...

    I am trying to use your target method to make the tiefighters make suicide runs at the player. I simply add the vector found by that with the current vector of the tie fighter which is randomly...
  18. Got it! My problem was the fact I was setting the...

    Got it! My problem was the fact I was setting the focus points with respect to the top left of the sprites rather than the center.

    Thanks for all the help
  19. I see what your saying, but trying to change...

    I see what your saying, but trying to change those messed up the starting pos of the bullets when I wasnt rotated. I tried all the combinations. The bullets start off in the correct position with...
  20. hehe, I was wondering what the point of that was....

    hehe, I was wondering what the point of that was. Fustration after a long night of coding has my head shot :o
  21. Thats what im trying to get done. The...

    Thats what im trying to get done. The m_nFocusPointOne is the location at the end of the barrel. However after rotating im having trouble keeping that position in the correct spot with the rotation
  22. // Rotates a vector in 2D Space. tVector2D...

    // Rotates a vector in 2D Space.
    tVector2D Vector2DRotate(tVector2D vector, double dRadians)
    {
    // Flip 1 due to windows coord system
    vector.dY *= -1;

    tVector2D vctRotated;...
  23. Thanks bubba, im much closer now. It is just...

    Thanks bubba, im much closer now. It is just slightly off. as I rotate 180* the bullets end up a ship's width to the left and starting at the rear of the ship. Looks like it has to do with...
  24. Bullet start locations on a sprite after rotation

    I am having trouble keeping my two start locations for bullets out of my sprite after it turns in any given direction.

    I just cant seem to get a grasp on the calculations I need to make in order...
  25. Replies
    0
    Views
    1,397

    Static memory being overwritten?

    --EDIT-- realized it had to do with my char[] size. thanks.


    I am trying to create a PAKer and having issues with my variables suddenly changing out of no where. As soon as i call strcpy in the...
Results 1 to 25 of 56
Page 1 of 3 1 2 3