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...
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...
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.
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...
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...
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...
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.
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
...
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...
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.
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...
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...
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...
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!
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...
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...
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
...