| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> http://cpp.enisoc.com/pastebin/6783 <1> http://cpp.enisoc.com/pastebin/6783 <1> sorry fer double there <2> KeeperX: what if one string is shorter than the other? <1> i have no clue?? <1> its not my code <1> i dont know C <1> BUT <2> KeeperX: run it. namely, with a shorter bstr than astr <1> this is part of a MUD <1> this part is for asigning a sector an atribute i think <1> cause thats what im doing when it crashes <1> well not a crash.. just a perminant pause <2> well, this code certainly seems able to crash. <2> you know most systems have a function to do comparisons without case. <1> like i said its OLD mud code
<1> is there a way to .. make it a little more crash proof <3> i've only ever seen one person with ash on their face <1> CrewdenX what do you think ? <2> KeeperX: write a predicate for no-case comparison and use it with one of the algorithms from the standard library. <1> that made no sence to me <1> im not a programer <1> i do VBscript <1> for websites <1> is it easy code... <1> can you paste something maybe ? <1> CrewdenX: no answer ? <2> KeeperX: not a quick answer. <2> KeeperX: i'll be back in about 40 minutes. if you want can till then, i can give you something. <1> ok.. then i guess im lost.. cause i dont know C <4> 'Did Def ever figure out that issue he was having? <1> yes <1> sorry wrong channel <1> CrewdenX can you explain to me what that peoce of code is diong ? <2> KeeperX: privmsg <5> FuIru, he stopped it from happening; said it was some issue with throwing a const std::string from a local variable. I couldn't reproduce it. <4> ah <5> Actually, I should have asked how he was catching that. It might have been more enlightening. <1> can someone fix my syntax ?? <1> http://cpp.enisoc.com/pastebin/6785 <1> im not a C coder <1> im just trying to fix an application <6> KeeperX: that second line doesn't quite look like it belongs there... && astr !=null and bstr !=null{ <6> strln, LOWER, bug are not part of any standard, so I don't know what they do <6> from where did you get that code? you should probably ask the person who wrote it <7> int yourstricmp(const char *a, const char *b) {for (char ac, bc; *a || *b; ++a, ++b) { ac = char(tolower(*a));bc = char(tolower(*b)); if (ac != bc) return ac - bc; }return 0; } <6> aww. you so cute, tequilla <7> heh <7> Zenethian: Can't you say ANYTHING besides indubitably?! <3> inconceivable! <8> unindubitably! <6> undoubtedly <1> ok im back in here now <6> oh how cool <8> KeeperX: you never left. <8> :-) <7> Indubitably. <7> KeeperX: what I wrote above is a working (standard conforming) implementation of a case insensitive C-string comparison function <7> <cctype> for tolower() <9> tequilla, What kind of ban did you set in #c on me? Can I join back after some time? Or this is permanent ban? <7> DukeD: I don't intend to lift it, if that's what you're asking... <9> Alright :( That's too bad I really came there to learn. I guess there was no reason for mentioning where I would search. But still, it's not like I tried condoning it. <9> Professor told us that all people who program in c++ know c, is that true? <7> nope <9> ehh, guess I am off to efnet then <7> farewell <7> aww... Zenethian... that's so adorable :) <8> ... <10> I have a problem when making my app. I'm using g++ and it complains about "multiple definition " for 2 functions. I have #ifndef, #define, and #endif in my source files, can someone help me out pls. <10> anyone? <4> you have them in your header file, you mean? <10> yes <4> what you should be doing is declaring it extern in the header, and then defining it in one fo your cpp files <7> make sure all definitions are in .C files, and only prototypes are in .h files and you never include .c files only .h files - just compile multiple .c files together <10> i just have the header in the header file and the function in the cpp file <10> well one of them is a template
<10> and the .h file includes the .cpp file <10> not my template, got it from the textbook website <10> can i tarball you the files? <10> 2 .h files, 3 cpp files and a make file. <11> hi all <7> wait... why does your header include the .cpp file? <7> you should never include source files <11> I'm trying to import an OCX into my win32 project. But it crashes on every property/method I call from it. This is the source: http://rafb.net/paste/results/HniL8T71.html <1> http://cpp.enisoc.com/pastebin/6789 <10> tequilla: here is the template http://www.cs.fiu.edu/~weiss/dsaa_c++/code/QuadraticProbing.h <10> tequilla: http://www.cs.fiu.edu/~weiss/dsaa_c++/code/QuadraticProbing.cpp <10> at the end of the .h file it includes the cpp file. Its a template... <1> tequilla loook at mine real quict.. its a quick fix i think <11> KeeperX: flag_table[flag].name != NULL && flag_table[flag].name != NULL lol <4> yay infinite loops <4> KeeperX, feel like actually mentioning what the problem might be ? <1> it crashes there.. <1> GDM is in the description <1> *GDB <11> has anyone worked here OCX in win32 projects? <4> are you sure name is actually valid? <11> been trying to solve this problem sincethe morning :/ <4> One can ***ume you're actually initializing ti to NULL before you start using it? <1> well i think its C <1> not C++ <1> so NULL is an iso <4> being C versus C++ doesn't mean anyhting <7> blah12345: re-design both so that you're not including the .cpp file <4> are you initializing that value before you start using it or testing agains tit? <10> ok thankx <11> FuIru could you take a quick glance at my problem? <4> int *p; // take a wild guess what the value of p is <4> AndyDev, have you debugged the OCX? <11> it's not mine <1> you mean flag ? it says init flag <11> we use it on C# <11> and vb <11> now we need to implement on another project <1> do i have to init NULL ? <11> which is win32 c++ <4> KeeperX, one of hte basic things you need to learn about C and C++ is that when you declare a type such as an integer or a pointer or such, it doesn't have any predefined value until you SET on <4> did I say you had to init NULL? <4> nooo, I said did you init name? <4> what's the difference between OleInitialize and CoInitialize ? <1> yes name is init'ed <4> you might want to step through the code with gdb and look at the values for those variables, then <1> i dont know how to use GDB very well <1> Im not a coder... <1> But im learning <1> i have an off the wall question ? <4> man gdb might be a start, then <1> How can gdb see thee source code of a compiled application ? <1> i thought it was encrypted ? <4> it's not encrypted, it's compiled <1> ok well if GDB can see the source, what prevents ANYONE from seeing the source ? <11> it crashed with both FuIru, I'm just knew the Ole one <4> no doubt you ran gcc with whatever flag tells it to include debug info in the exe <1> no i just types make <1> :) <4> whatever <4> man gdb <4> and man gcc too I guess <1> ok im goint to say this one last time <1> I am not a programer. i ab trying to get an application working <4> AndyDev, what is the description of that error code? <1> i dont write code <1> im a web developer <4> KeeperX, your point being.... ? <1> so all your holier than thou Sighs and attitude are unwarented <11> Microsoft C++ exception <11> couldnt get any data on it <1> you act like i should know all this stuff <4> KeeperX, no, I act like you're trying to code
Return to
#c++ or Go to some related
logs:
#allnitecafe shave perinium yeh dil nadan hai
#worldchat prison break hub #worldchat #allnitecafe planetfaw jaanu baba #india
|
|