I did a bit of digging around and I believe I may have found the issue.
It seems that bind() and related objects/functions have an issue when it comes to binding member functions of non-local...
Type: Posts; User: leeor_net
I did a bit of digging around and I believe I may have found the issue.
It seems that bind() and related objects/functions have an issue when it comes to binding member functions of non-local...
Hello all again.
I've come across a rather annoying problem and I know it's because I'm misunderstanding something. I just can't find anything relevant anywhere on Google and the documentation for...
This is probably better off on SDL's mailing list but I'll see if I can help.
The problem here is you're not showing how you initialize SDL. What surface parameters are you setting when you set...
Thanks again for your help. I always appreciate everybody's feedback!
Actually you said it best how I was reimagining the current setup. It's ... sort of half right. I have the event handlers in place but the distribution system is crap.
What I'm thinking is...
Well... the way that buttons are set up at this point... they derive from an object I call Broadcaster. Broadcasters, effectively, handle all the stuff surrounding event messages and effectively...
I figured that I was misunderstanding the whole point of functors.
From exploring this here and reading additional materials I think I'm going to go ahead and use function pointers. I'm more...
Thanks for your replies. The thing is, that logging example really doesn't help. In fact, it looks a lot like this article on experts exhange. Unfortunately, I'm still failing to grasp how to apply...
What, exactly, isn't working about it?
When asking about code
I've read a few articles around the web (and some of the posts on this forum) about functors and using them as a better alternative to function pointers. But I'm having a little difficulty...
Meh, like I said, I don't work in the field so I'm just throwing out guesses. I've just found that a compsci student (or I should probably be saying compsci graduate because that's what I meant) that...
... And yet... so far most of the compsci students I've had the... hm... pleasure... of working with have either produced hideously broken code or ran off on some tangent writing tons and tons of...
/facepalm
I don't think I'll ever understand why compsci students insist on posting their homework questions so others can figure it out for them. Why did you bother going to school then?
I'll do it for $35!
In all seriousness, this is very much deserved: How To Ask Questions The Smart Way
There are a number of problems with this code that can very easily be alleviated using std::string and std::vector. I'm curious as to why you chose a vanilla C/C++ approach instead of using standard...
As it turns out I was looking for the wrong information having misdiagnosed the problem. I didn't think my assignment above was wrong and, upon further inspection I found that I had initialized...
In this particular code snippet, no, I don't need to override the assignment operator. I tried to keep it as simple as possible with only the things that are relevant. The class that I actually have...
I've looked around a bit on Google and at a few different articles but I'm pretty sure I'm not looking for the right information.
In the following scenario, I have a very basic assignment...
It's hard to give an example of what makes pointers so useful without getting into some form of a lengthy discussion but I'll try to keep it brief.
I am assuming that you're learning C++ because...
This sounds like a problem with your installation above anything else. I would ask for support with your Cygwin installation on their support forums.
What you didn't mention was what C++ compiler...
I hate doing this but: How To Ask Questions The Smart Way
What, exactly, are you talking about?
Assuming that you're talking about source and header files (can't tell because your question is so disorganized and clearly not well thought out), then it...
Exactly what are you trying to do with your code? I've never seen a recursive call to an entry point function (main) let a lone a question that doesn't really ask anything.
If you're expecting to...
The short answer:
They're the same thing.
The long answer:
Visual C++ is as much a language as Dev-C++ or Borland C++. They're not languages, they're development environments. They all come with...
Sounds like you want us to do your homework for you. If that's the case, you're asking the wrong people.