New topic: Looking for advice - RB vs. C++
<http://forums.realsoftware.com/viewtopic.php?t=32173> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message computerfreaker Post subject: Looking for advice - RB vs. C++Posted: Mon Jan 25, 2010 12:54 am Joined: Thu Mar 05, 2009 1:03 pm Posts: 1512 Location: USA Well, I never thought it would come to this, but it finally has. I'm working on a project that's almost purely Windows API - hooking and subclassing are especially prominent. Everything's been going pretty well, until today when I tried to make my app Unicode-compliant. Since then, I've had nothing but crash after crash; I managed to get a half-solution into place but everything still crashes when I so much as try opening a second window in my app. Apparently the combination of two hooks, a subclass, and a bundle of declares is just the right combo for disaster. Anyway, as I was sitting here, looking at my syntactically-correct but obviously-broken code and thinking about rewriting the entire thing, it occurred to me that C++ might be a better choice. Subclassing wouldn't be a problem, since creating a window in C++ involves doing exactly what subclassing does - processing all the window messages. With subclassing out of my hair, perhaps the hooks would play better together. However, I have never used C++ for any major project before; the closest I've come is some stuff barely more sophisticated than "Hello world". I do have Java under my belt, so adapting my existing knowledge shouldn't be that bad, but I'm still somewhat daunted at the prospect of taking on a project this big. Either way I go, I'm looking at rewriting my app; the question now is, which language would be better for me to use? Please advise, as I'm severely torn right now. Thanks! _________________ With great power comes great responsibility. Learn something new every day, and the rest will take care of itself. Life is a journey, not a destination. Enjoy the trip! Top kendoll Post subject: Re: Looking for advice - RB vs. C++Posted: Mon Jan 25, 2010 1:24 am Joined: Mon Jul 17, 2006 10:39 am Posts: 1602 If you are doing purely Win32 declares, C might be the best language for you. You don't even have to use the class functionality that C++ provides you if you're not comfortable with it. Additionally, there are a ton of books on C to refer to if need be. Java would not be a suitable language; Win32 declares are not directly accessible. _________________ Kenneth McCleary [email protected] Top computerfreaker Post subject: Re: Looking for advice - RB vs. C++Posted: Mon Jan 25, 2010 1:29 am Joined: Thu Mar 05, 2009 1:03 pm Posts: 1512 Location: USA kendoll wrote:If you are doing purely Win32 declares, C might be the best language for you. You don't even have to use the class functionality that C++ provides you if you're not comfortable with it. Additionally, there are a ton of books on C to refer to if need be. I've actually started working with C++ right now; it's so-so in terms of user-friendliness, but Googling generally returns what I'm looking for. I think it's going to be C++; the subclassing that gave me so much grief in RB took exactly five lines to do in C++. Less ease-of-use but more power, just like almost everything else. kendoll wrote:Java would not be a suitable language; Win32 declares are not directly accessible. Oh, that's interesting; I hadn't known you couldn't directly access declares in Java. I hadn't planned to write my app in Java anyway; I was saying "I know Java, so adapting that knowledge to Java's 'cousin' C++ should be reasonably easy." Sorry to be confusing. Thanks for the advice! _________________ With great power comes great responsibility. Learn something new every day, and the rest will take care of itself. Life is a journey, not a destination. Enjoy the trip! Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
