| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10
Comments:
<0> Do you plan to use all of these things? <0> Visual Studio costs quite a lot. <0> While you can get a free version of Visual C++. <1> not really, vs express editions are free <1> you just have to download each language separately <2> no im focusing on visual c++ <1> then just get that <0> Anyway. There's still little point to getting tools you won't use. <2> k <3> I hope you're lying DrkMatter <3> I love having tools I never use <3> what if I want to use them some day <3> and I don't have them? <0> Well, that's where teh "never use" part fo the statements come in handy. =P <1> never say never <0> If you need them later, you can get them later.
<1> unless you can't <0> When your ehart truly desires something... <0> *heart <0> Like, say, a tool... <0> Then nothing can stand in your way! <1> except microsoft <4> I have a base object with 'int IDCount' that needs to increment everytime an object (or derivative) of it is made. I also need for every object (or derivative) of it to have a static ID <4> http://pastebin.ca/38118 <4> like that? <5> SB_ school ***ignment? <4> no, personal thing <5> SB_ you know about boost? <4> boost? <5> the boost library? <4> no... <5> it has auto/smart pointers <5> pretty much does wshat you're talking about <4> but that isn't what i want.. <4> lol <4> i need like two integers, not a whole library :) <5> well, I'm sure you'll find uses for the rest of the library <5> it's pretty pimp :) <5> boost.org <5> why re-invent the wheel, ya know? <4> i mean <4> this is a pretty basic thing though <4> i feel stupid for forgetting how to do it lol <4> thanks for telling me about boost though. <4> if i ever do anything useful, or otherwise comlicated i'll give it a try <4> man there is like a certain way to do this, i learned it last year, and i completely forgot it <4> the one thing i learn in a CS cl*** i forget <4> :( <0> Huh... Add a counter to every constructor and the ***ignment operator, and decrement it in the destructor. <0> Every constructor means you have to make them all explicit, ie, you must also write it for the copy constructor. <4> well i learned it in java <4> because the other thing is <4> i have to get the last ID from the base cl*** <4> and decrementing is bad because this is _kinda_ like serializing cl***es <0> Oh, wait, I'm mixing this up wih an instance counter. If you just want IDs, and don't mind if IDs are ***igned to deleted obejcts, you cna forego the descrutor part. <0> The problem might come if you must make the data persistant, though. <4> yeah <4> java does that easy like <4> and i suspect c# does as well <0> Java does what easy like? <4> data persistant (in this case) <0> I'm talking about your identifiers. In between program runs, the same IDs could be reused. That's where issues arise. <0> It's a design problem, nto an implementation one. <0> [m]aaniac:: Out of curiosity, I'm trying to find which boost library could do this kind of instance ID'ing, since you opinted out it was somewhere in there... Which would it be? <6> I've done a lot of GUIs the last days and it's incredibly hard! is there any better way to design and handle a GUI? I'm tired!!! of case WM_MESSAGE: if (LOWORD(wParam)==IDC_etc etc <6> tricks are welcomed too <7> MFC <4> true <4> or <4> c# <6> someone in here once said "keep away from MFC" <4> haha <4> do it like VB <0> Keep away from MFC! <6> :))
<0> Or not. IT's a framework. Use it if it flaots your boat. <6> it takes me a day to build a decent gui <0> You can try MFC. Or Qt. And see if you like it. <6> I tryed MFC but... I took that line as a good one <6> why should one keep away from MFC? <0> Well, I don't have enough experience with MFC myself to tell you that. <8> hawwwwwwks baby <9> Steelers :) <7> khan <7> Why should sk8ing avoid MFC <7> And what should he use in its place <8> dunno <8> but i *do* know that the seahawks are going to pwn at the superbowl <9> no way man heheh <6> I'm already looking at a TabControl cl*** that looks really good <6> should I read further? :P <6> the tab controls under clean win32 simply ****s <10> i can make a uk,us number on top of ur mobile number msg me for a deal i need mailers <11> where is ULONG, ULONG_PTR, etc, defined? <10> i can make a uk,us number on top of ur mobile number msg me for a deal i need mailers <6> windef.h <11> sk8ing: i can find ULONG there but not ULONG_PTR... know where that could be? <6> basetsd.h, but it's probably ULONG * <11> inside a mfc application created by appwizard i can use LONG_PTR.. but i don't see either windef.h or basetsd.h included anywhere <6> because they are included by other headers <11> actually sry the ULONG_PTR doesn't work.. only USHORT works <11> right.. hmm i wonder where ULONG_PTR would be defined in <11> ah i found it in basetsd.h in the SDK include.. thx for help sk8ing <11> there were multiple basetsd.h's <6> what compiler are you using? <11> visual c++ 6.0 <6> and the ide? VS? <11> actually it's just visual c++ 6.0 for ide <11> its basetsd.h doesn't define ULONG_PTR <12> What is the best way to check if the boost paths are pointing to the same location ? <6> typedef _W64 unsigned long ULONG_PTR, *PULONG_PTR; <11> right i have that in the sdk basetsd.h <11> is there a utility that looks inside all files in folders and subfolders and find a string? <12> hmm <12> are you using windows ? <11> yeah <8> grep? findstr? <12> you can do it using search i think <8> findstr /s foo <12> just hit f3 <11> oh yeah i think you're right <8> * <8> search only looks in registered files to look into, not all <11> ic <11> does findstr work with directories? or do you have to specify a file <12> has anyone used google desktop search ? <12> wow <8> "findstr /s foo *" will search all files in the current working directory, and all subdirectories, for the word foo <12> findstr - neat toy <8> google desktop search is also good <11> ic, yea i agree findstr is neat toy.. didn't know something like that existed <11> thanks <11> and i found another way right after i asked the question.. within vc, you can use find in file <8> not quite grep, but it does it's job <8> yeah, ctrl+shift + f <13> Heh <14> zzz <14> Looks like someone will never know how to forward declare a cl*** or what's a static member <12> can you still use atexit in Win32 programming ? <12> i mean if you want to deallocate some data before a thread exits, and you have no control as to whether it exits, is there a function similar to atexit ? <15> Cloud99: main thread ? <12> yeah <12> i want the main thread to execute certain instructions before it exits <15> is there more than one exit path ? <12> hm <12> its for a dll <12> it provides certain functions that spawn threads <12> and when dll is unloaded, i need to terminate those threads somehow <15> it's bad design to create threads from a dll
Return to
#c++ or Go to some related
logs:
#c++ #php #MissKitten #AllNiteCafe #linux #php #linuxhelp #mirc grub-manager #linux
|
|