@# Quotes DB     useful, funny, interesting





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



Comments:

<0> sorry
<0> this is the right thing
<1> how about this? -> SendStringToVB((char *) _bstr_t(_T("my error")).copy());
<0> what does copy method return
<0> ?
<1> BSTR
<1> but i have no idea what _T is for
<1> u may wonder where i'm getting this stuff
<1> http://www.codeproject.com/string/bstrsproject1.asp
<0> why do u need the char* ?
<0> LPCTSTR is const char*
<0> so it almost the same thing
<1> i'm doing the complex conversion: char* -> LPCTSTR -> _bstr_t -> BSTR -> char*
<1> i don't know why
<0> SendStringToVB((char*)(LPCTSTR) _bstr_t(myException.getData()));
<0> here :)



<2> can anybody help me adding a com-method to a cl*** in vs2005? in vc6 i could right click on the interface under the calls and chose "add method". ich cannot found this option unter vs2005 after converting my project
<1> SendStringToVB((const char*)(LPCTSTR) _bstr_t(myException.getData()));
<1> that good?
<0> LPCTSTR = const char*
<1> i just wanna learn the proper way of doing things
<1> i see, so i gotta constify SendStringToVB 1st parameter
<3> really that makes no difference
<0> SendStringToVB((LPCTSTR) _bstr_t(myException.getData()));
<0> just cast it so
<0> and it will work
<1> gotit
<1> thanks
<0> yeah np
<3> casting to const is pretty silly
<3> since it is done implicitly
<3> so let the compiler figure it out
<1> can i use this _bstr_t thing if i'm p***ing strings to a c++ app?
<1> it might be pointless, but will it still work?
<1> cuz right now, for my DLLs i always have a stupid API exported for the sole purpose of the calling app to identify itself as a VB program, or C++ program, so the _bstr_t callbacks can work on strings that require COM wrapping and normal strings p***ed as is
<1> it'd be much simpler to do away with this
<1> looks like _bstr_t is p***ing back a const char *, so i guess why not
<1> lol
<1> is this a stupid question
<1> aquatofana: your method doesn't work..
<1> this works:
<1> mFuncMsg((char *) _bstr_t(_T(e.getData())).copy());
<1> this doesn't:
<1> mFuncMsg((const char *) _bstr_t(e.getData()));
<0> are u sure ?
<1> i'm testing it
<0> ok who knows ? What compiler/IDE are u using ?
<1> your method, on the vb end, it produces an error that says "not enough string space"
<0> why would u need this for vb ?
<1> i'm using vb6+vc6/win2k
<0> doesnt vb use bstr strings ?
<1> yeah
<0> vc6 get rid of it
<0> it's eveil
<0> evil
<0> it will take u to your very ends
<1> _bstr_t and BSTR, what's the difference. basically what i did different was i wrapped my string in _bstr_t() and produced a BSTR based off that
<0> _bstr_t is a cl***
<0> and it has it's advantages
<1> u simply wrapped the string in the _bstr_t
<0> not just that
<4> _bstr_ stupid name of a cl***
<1> and p***ed it over as a const char *
<4> wtf
<0> bstr_t
<4> i hate thus naming like __blha____
<0> typedefed
<1> oh, and i had an extra layer with _T
<0> so i hate dogs , that doesnt make them dissapear
<1> _T is useless
<1> it does nothing
<1> so the only thing you're lacking is ".copy()"
<1> it converts _bstr_t to BSTR, apparently VB only likes BSTR
<0> yeah vb sux
<1> lol



<1> i want to learn SDL
<1> looking for a replacement.. but i don't like MFC
<3> try .NET
<0> SDL
<0> wtf is that ?
<1> simple direct-media layer, it's an open source alternative to directx
<1> does windows like trolltech qt
<1> recently qt became free
<1> so that's nice also..
<0> qt became free ?
<0> well on their website still shows the prices for the sdks
<1> really?
<1> i'm not really up to date with a lot of things :P
<0> probably it's an open source version for it thats the only thing i've seen free
<0> but that's only 50 Mbs large
<0> and the whole sdk has around 300MB so i think they only let the GUI stuff
<1> that's pretty effing large
<1> what's \ for in c++ ?
<1> when not followed by a symbol
<1> i don't mean \n \r
<1> i mean just plain \
<1> at the end of a line
<5> Escape the \n after it.
<1> but isn't c++ a free format language?
<1> what's the purpose
<1> i can still write a multi-line typedef without \
<6> good day to all
<6> has anyone tried to use multithreading when parsing an xml file?
<1> any1 use trillian here?
<7> dextre yes
<8> I have 2 Internet device (dial-up cell modem and WiFi card) with a priority on WiFi when it's available(METRIC1). Q: How can I know the curent Network Interface used for my internet request&response? Is there anyway to see witch one have been used?
<7> this has something to do with C++ ?
<7> and I suspect it would be depenedent on the OS you were runing
<8> ya that's true ... im on windows xp
<7> I have no clue, and it seems to me you'd have to dig through the xp docs
<7> maybe you can find some source for ipconfig.exe
<7> failing that, run ipconfig /all and parse it's output
<8> ok thanks anyway
<9> alfawest: WMI could easily be used to query information about network adapters, you'd have to figure out which address you've bound to and compare it to the addresses of the network adapters, i would imagine
<9> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_networkadapterconfiguration.asp
<9> that's the WMI cl*** you use (note: not a C++ "cl***")
<9> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/example__getting_wmi_data_from_the_local_computer.asp
<9> an example of using WMI from C/C++
<9> really just your standard COM goo with a SQL like interface for querying information
<10> Someone give me bealtine's phone number, I lost it
<10> And I got to go to .ie this evening
<9> 1-800-ima-lush
<7> peterhu what compilers you working with these days?
<9> csc.exe
<11> There is a solution to the problem of inserting in a vector.
<11> One is to number the elements and make it a map, like line numbers in BASIC.
<11> Another is a slight modification of the B+-tree algorithm.
<12> there are 10 ***ual elements
<12> that make up c++
<12> yah know
<11> ***ual elements?
<12> so anyway
<12> heh
<7> VoHuhes huh????
<7> what "problem of inserting in a vector" ??
<11> As you might remember, the lines of a BASIC program used to be numbered. It was probably done with the B-tree structure, which is mnow used in a map.
<11> With a vector, every element from the insertion point on has to be moved up.
<7> VoHuhes yeah? that's a "problem" ??
<7> and what the hell does line numbering on old BASIC programs have to do with anything?
<10> vawjr
<11> So, that problem can be circumvented, by numbering the elements and making that number the insertion point of a map.
<10> I'm sure you have bealtine's phone number
<11> And that's exactly what was done with old-time BASIC.
<9> that seems like rediculous over kill
<11> The lines of the program were numbered. It was like having a map, with the line numbers as the "sort" argument.
<11> And to insert a line, say between line 15 and line 20, you could make it line 17.
<11> And in some BASIC machines, the lines of a program could easily be renumbered.


Name:

Comments:

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






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

#linux
Why-png?-Yes,a-bit.
olgun bayanlarla chat
#linux
Erwien Paga
#AllNiteCafe
#skype
#c++
wow intreepid
#london



Home  |  disclaimer  |  contact  |  submit quotes