CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Brownhead

Page 1 of 2 1 2

Search: Search took 0.05 seconds.

  1. Re: NullReferenceException where there shouldn't be one

    I feel rather silly, immediately after I posted this I realized what I was doing wrong. I was creating a new array but the array was not being filled with constructed instances of X. The following...
  2. [RESOLVED] NullReferenceException where there shouldn't be one

    I've created a static function inside of a class, and then tried to create an array of instances of said class inside the static function and during run time a NullReferenceException is thrown. I am...
  3. Replies
    7
    Views
    8,715

    Re: Need a way to edit program's own file

    Hmm, alright. I see that requring activation online will be the best and possibly only semi-secure option, thankyou everybody who has helped me and offered their suggestions.
  4. Replies
    7
    Views
    8,715

    Re: Need a way to edit program's own file

    Thanks, but the problem with storing the MAC address in some hidden file is exactly that, the person would simply copy the EXE, which would be the first thing most users would try.. This protection...
  5. Replies
    7
    Views
    8,715

    Need a way to edit program's own file

    I need a way to make a program work on only the first computer it is run on, it doesn't need to be very secure but it needs to work. The idea that I came up with is to have the program save the MAC...
  6. Replies
    0
    Views
    1,792

    How can I create allocate memory in a named data section

    I have a pointer to a dynamically allocated array that is in a shared data section. Defined as
    DWORD* ThreadIDs __attribute__((section ("shared"), shared)) = NULL;(Using GCC Compiler) I want to know...
  7. Re: What does a & after an argument/variable type signify?

    Thank you :), I never learned about references.
  8. [RESOLVED] What does a & after an argument/variable type signify?

    I've run across this code and have seen similar code before, but I'm not sure what it means

    //--- file Person.h
    . . .
    class Person {
    private:
    char* _name;
    int _id;
    ...
  9. Replies
    3
    Views
    587

    Re: Overloading [][]

    Thank you, sorry for asking an already covered question. I also may have come up with an alternate solution. I haven't been able to test it yet though.

    Column operator [] (int X)
    ...
  10. Replies
    3
    Views
    587

    [RESOLVED] Overloading [][]

    As the title implies, I have a wrapper for a two dimensional array that I want to access by simple saying ColorCluster[X][Y]. But I can't figure out how to overload it. I came up with this idea
    ...
  11. Re: EnumWindows and EnumChildWindows loop bringing up some strange results

    Thanks! That was the problem. And I'm looking for a window that doesn't have any child windows, not necessarily top level. Thanks again!
  12. Thread: Trace a Path

    by Brownhead
    Replies
    6
    Views
    1,031

    Re: Trace a Path

    Thanks :), I'm sure I'll get it eventually! You've been a great help!
    You seem to know a lot about graphic manipulation though, any chance you could glance through a function I've been having a lot...
  13. Thread: Trace a Path

    by Brownhead
    Replies
    6
    Views
    1,031

    Re: Trace a Path

    I think I understand, I never would have though of that :), thanks!
  14. Thread: Trace a Path

    by Brownhead
    Replies
    6
    Views
    1,031

    Re: Trace a Path

    Thanks but I don't think that'd work too well.. My way was very difficult to understand so I made a writeup, its on another computer though, so I'll post it when I can.
  15. Thread: Trace a Path

    by Brownhead
    Replies
    6
    Views
    1,031

    Trace a Path

    I'm trying to create a routine that will trace a road stored in a monochrome bitmap. The road can have any amount of forks and splits in it but it stays a pretty consistent width the whole way...
  16. Re: EnumWindows and EnumChildWindows loop bringing up some strange results

    I do know it works, the callback function is being passed the same window multiple times though, and I'm just trying to figure out why that is.

    ANd I have the lParam set as the handle because I'm...
  17. EnumWindows and EnumChildWindows loop bringing up some strange results

    I have an enumeration set up kind of like this (Its missing the code that actually does something, but you should get the point)

    BOOL CALLBACK EW_Main (HWND hWnd, LPARAM lParam)
    ...
  18. Re: Creating and Drawing Monochrome Bitmap from CHAR array

    Someone on another website has helped me out. The problem was in how I was formatting the CHAR array I was passing to CreateBitmap. Sorry for the empty thread, if a mod could just delete this I'd...
  19. [RESOLVED] Creating and Drawing Monochrome Bitmap from CHAR array

    Hello, I have a function that will find pixels (of a certain color) in a DC that are grouped together. Like an ellipse, or really any shape. The dimensions of the data is stored inside a RECT...
  20. Replies
    44
    Views
    4,495

    Re: Why does this code leak memory?

    Thanks everyone! I'll just use vectors, it looks to be alot simpler because I have many dynamic arrays in my code and handling them has been a bit of a chore. Thanks again everyone!
  21. Replies
    44
    Views
    4,495

    [RESOLVED] Why does this code leak memory?

    // Check to see if the Found array needs to be expanded
    if (Entry > Max)
    {
    // Give the array 30 more spaces to fill
    Max += 30;

    /* Create a temp array with the amount of space...
  22. Replies
    10
    Views
    5,360

    Re: Problem with GetDIBits function

    Thankyou for the responses everyone :-)! I know nothing about how GetDIBits works or how to use it and was just trying to go off the examples I've looked at. I'll look into what everyone has said and...
  23. Replies
    10
    Views
    5,360

    Re: Problem with GetDIBits function

    I'm sure that was going to be a large problem but GetDIBits still fails which is the current problem at hand.. I think the problem may be the array size but increasing it doesn't work so I'm not...
  24. Replies
    10
    Views
    5,360

    Re: Problem with GetDIBits function

    *Slaps Head*
    ****, can't believe I missed that, thankyou :-), I'll see if that works.
  25. Replies
    10
    Views
    5,360

    Re: Problem with GetDIBits function

    Your right, I was assuming too much, there were a couple of problems but I'm still stuck on the second one. The call to GetDIBits is failing. It is returning 0 as a result, here is the altered code
    ...
Results 1 to 25 of 26
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured