@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4



Comments:

<0> if i have cl***es A and B and A has a function that returns a B and B has a function that returns an A is it possible to get that to compile?
<1> Pegazus: pointers-to would work. but returning a and b type values wouldn't.
<0> it's 100% impossible to make it that way?
<1> Pegazus: by strict interpretation of what you're asking, yes.
<0> :(
<0> boooooooo
<2> use Interfaces?
<0> :(
<0> i don't want to
<0> :(
<2> heh. I dunno. In Delphi you can forward-declare a cl*** to accomplish this... Are you guys certain there isn't an equivalent in C?
<0> the problem is that i need the cl*** fully defined
<0> not just the cl***
<3> you can have forward declarations, but not it A contains B and B contains A (that doesn't make sense - either - unless at least one of those was a reference/pointer to the other type)
<0> it's a return type of a function
<0> (really it's used in templates,and type tratis)



<2> parent both cl***es from cl*** D?
<3> Pegazus: it's an incomplete type - it must return a reference/pointer, or take a reference/pointer
<3> for it to be able to return a non-reference pointer, it would need to know the type (to be able to construct it)
<3> what you're asking doesn't make sense when you think about it
<3> if A is declared and defined before B, B can construct A, but A (even with a forward declaration) can only return a reference/pointer to B - it cannot construct B because B is incomplete to it
<0> i know that
<0> it has sense
<0> my design
<0> :p
<3> we have bigger problems
<3> without access to the DLGTEMPLATE the only way to add x,y offsets to a common dialog before creation is to specify one's own template and hook
<4> hmm
<4> I think I'm gonna reformat
<5> hey
<5> is Sirophix a lame name? :/
<5> tequilla, you around?
<3> yep; sirophix sounds fine to me
<6> howdy
<6> it's sounds like gay **** to me
<6> how's the *** life going, tequilla? :)
<3> I regale Carol with tales of yours
<6> oh, I bet she's a very happy woman
<7> hehe.. scalar's tequilla's *** proxy
<7> sorry ):
<7> :)
<6> ;)
<3> heh
<7> "scalar: spreading *** to the world", etc.. anyway.
<7> *thinks about rebooting to Windows to go play with VS*
<5> tequilla, I've been through so many names ... :P
<6> what's the one true path? are you referring to Pfhoenix's idea of happiness?
<5> Panserbjorn
<5> Exciton
<5> Sirophix
<5> maybe this one will finally stick
<5> I have so much I want to accomplish under the name
<5> -MUD
<5> -Eventual book, The Progressive Programmer's Guide
<5> -Writing more articles on various topics
<5> hmm
<5> is there a way to export Firefox settings and bookmarks?
<6> bookmarks definitely
<5> also
<5> is there a way to relocate or alter the structure of Windows?
<6> go to "manage bookmarks"
<5> I would really like to change...
<5> c:\Program Files to c:\Programs
<6> yeah
<6> get "Tweak UI"
<5> and c:\Documents and Settings to c:\Users
<5> wow, that can do it? cool
<6> yeah
<6> my main user's desktop and documents folders are D:\Documents and D:\Desktop
<6> all the other ones are in the usual place
<5> hmm
<5> I made a special partition and drive
<5> from uniblab's suggestion
<6> what did he suggest?
<5> well, just the idea
<5> I used reparse points to build c:\root



<5> which has c:\root\users
<5> and c:\root\programs
<5> which point to where you'd expect
<5> then I used subst to make x:\ c:\root
<6> reparse points?
<6> that's some NTFS stuff?
<8> mounting a drive in an empty dir?
<5> WinNT's more generic versions of directory links
<5> yeah
<5> FuIru, check out cmd.exe's "subst" command
<5> scalar, it's like aliasing a folder, except you can do more
<6> can it do more than mounting an entire partition in one folder?
<5> reparse points allow the filesystem to take arbitrary actions in certain folders
<6> because that's not what I want
<8> let's you have more than 24 drives on a system :)
<5> yeah
<6> ah, cool
<5> reparse points can be used to build a RAMdisk for example
<5> because when the NTFS parses the folder, custom handlers get executed
<5> then the handlers can return the list of files and folders
<5> so you could have c:\ramdisk actually not be a filesystem folder on disk, but instead in memory
<5> speaking of
<5> that's what I should do after I reformat
<5> set up all my user stuff to be on a ramdisk
<6> that's neat
<6> so I can finally set up a Unix-like structure almost "without" drive letters
<6> drive letters are so silly
<8> as long as you don't need to reboot, heh
<6> you could back the RAM disk up on disk during shutdown
<6> so you only lose it if you have to do a reset
<8> or crash
<5> or the machine crashes :P
<8> or periodic dumps i imagine
<5> well
<6> Win2k or later doesn't crash, bozo
<5> it would be easy to have the program queue any writes to the ramdisk also to hard disk
<8> unless you install Pool of Radiance
<5> check this out for more about reparse points ...
<6> I actually don't know what I would really need it for right now... but a few weeks ago I really wanted them
<6> but I could only find out about mounting entire partitions
<6> but I really use Cygwin for most things anyway
<5> scalar, here, check this out:
<8> I still kinda wish they hadn't gone and made program files read-only
<5> http://www.sysinternals.com/Utilities/Junction.html
<5> Junction is the sysinternals program
<5> that uses reparse points to create a symlink
<5> reparse points are damn cool
<5> another thing you could do would be to represent a SQL database in a folder
<5> browsable with explorer
<5> the only problem is that the API is sooo ****ing mangled and incomprehensible
<6> Sysinternals rock
<5> I've never understood that ... why all OSes low-level APIs are impossible to understand and use
<5> wait, how do I export bookmarks again?
<5> oh
<5> I found it
<9> sup sup
<9> is there any way I can make a program start from a case statement, while doing my if else statement
<9> if (selectq==Y) menu(); else { case add needs to run again here } }
<8> loop
<9> I am not sure how I would go about doing the loop
<9> I dont know if I just have my priorities on the code wrong or what
<9> hold on ill paste on pb
<6> bool repeat = true; do { menu(); } while(repeat);
<9> http://pastebin.com/528164
<9> hm
<6> if the user wants to quit, set repeat to false
<9> never encountered bool repeat before
<6> repeat is the variable name
<6> bool stirFryIsAFaggot = true; // would do as well ;)
<9> lol
<9> yeah yeah
<9> what have you been upto now days
<6> howdy Stirfry, what's up?
<9> nadda


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

#india
#india
mysql ifnotnull
#chat-world
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font
+land is power +quote
sixsity
erekaa
#allnitecafe
soydan aynalar



Home  |  disclaimer  |  contact  |  submit quotes