| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9
Comments:
<0> oh well i'll just do it the old way, if I get a sigpipe when i send, it must not be connected :\ <1> What is a good book for someone who knows Java to learn C++? <2> Accelerated c++ <1> I'll check it out <3> Ok, dumb question, but which header are the different adapters for standard container function objects in? Like add, greater, etc.? I can'T find for the life of me. o_O <4> hmm.. what does MSDN say? <3> Well, I canT' find them in the Visual C++ online help, which I'm pretty sure is based on MSDN. <3> But then I'll look there online, it's less... Chaotic. <5> I wanted to clean up my code and move it to a Cl*** - when i now call another cl***es init method i get the error "init' : cannot convert parameter 3 from 'float (float,float,float)' to 'float (__cdecl *)(float,float,float)'" when p***ing a method i.e. gGrid.init(someInt,someFloat, myFunc); <3> Ah, found it. <4> MajinMLF, &myFunc <5> then i get '&' : illegal operation on bound member function expression <4> myFunc is a member function? it doesn't look like it is <5> ok - let me explain this is the method im calling from my cl*** now : void Grid::init(int size, float isoLevel, float (*eval)(float, float, float)) {
<5> this is the function i give for the 3rd param : float DicomMarchingCubes::diComGrid(float x, float y, float z) { <4> so it is a member function <5> yes <5> well, im pretty new to c++ sorry i dont know =) its a function of the cl*** not a main function <4> you can't p*** a member function in as a normal function, except for static member functions <5> but i have non static values within my function - is there anotherway ? <6> MajinMLF what are you trying to do? <4> is this for callbacks? <5> im using a basic GRID libary - which you can give a function with 3 floats (x,y,z) - this function will calculate different bodys - i.e. a sphere, or a cube whatever <5> now my function is not a static calculation like a sphere - it uses data supplied through the cl***es constructor <6> MajinMLF the answer is yes... it's a callback <5> okay...i dont know - im a java programmer soo...how does this help me ? <6> it doesn't <6> it helps us <6> now we know that you're tyring to do something you can't <5> well..thats great - so the only way is if i would create a static cl*** with static members <6> or just a regular function <4> are you p***ing this function off to a separate library? <6> I'm sorry your "basic GRID" library was written so poorly <5> but the "regular" function needs access to values supplied to my cl***es constructor <6> it's possible that boost has some mechanism for dealing with this <6> MajinMLF I understand...the problem is the library you're using <5> well yes - i can rewrite it its only 1 cl*** <7> hello, when i run my app on my laptop all things work perfectly, when i try in other pcs i got this message "this application couldn't start cuz it have a bad configuration.." i'm using visual studio 2005 <5> the grid cl*** with void Grid::init(int size, float isoLevel, float (*eval)(float, float, float)) { is using the EVAL in its member methods <7> any idea ? <4> you need to be able to (at least) p*** in "user data" which can be used to p*** in the object for which to call the real callback <4> i.e at least something like: void Grid::init(int size, float isoLevel, float (*eval)(float, float, float, void*), void*) <5> whats void* and void*) then ? <7> any one please, i don't understand really the problem <4> zindo, are you using the .NET framework? <7> no, it's natif c++ <4> MajinMLF, void* is a pointer type.. usually used as "user data" in callbacks <4> there are better ways of doing callbacks, using boost::bind and boost::function <7> faraj, any idea ? <4> zindo, not really.. what's the exact error message? i doubt the error message contained "cuz" <7> it's in french <7> i translate it <7> no numbers are given ... <7> to identify the message :( <4> what does your app use? <6> MajinMLF what get's p***ed as the void* from Grid ? <7> no MFC, no ATL <6> zindo you're using a FRENCH version of vs2005? <7> no, english one <5> void ? its a float void float (*eval)(float, float, float) - or what do you mean <7> but a french XP <6> then the error message is NOT in french <7> so the error is from XP ? <6> who the **** knows, iot's YOUR system <6> but all the errors from vs2005 are english <6> MajinMLF sorry I was looking at what YUY0x7 typed...thought you'd typed it <7> ok, but why are you so angry ??! <7> other people ask the same question in some forums, but no answer <6> well, the error (as you translated it) means nothing to us <7> and for me also :( <6> are you trying to run the program from inside VS ? <6> or how? <7> no, it works here .. <7> but when i try to run it in any other pc, it fails <4> double-click?
<7> i send it to two friends and they got the same message <8> that means you are using some dll and this isnt present on the other pc (probably) <7> yes <7> yes, that was the only explanation i found <7> but how to know wich dlls are missing ? <4> try running it on the console to see if any message is outputted <7> my application is in console mode <8> only you can know that...you wrote the app <4> it uses nothing else but the standard C++ library? <7> it uses some specific windows functions <7> FindWindow <4> if so, maybe you've linked it using the DLL runtime lib <7> FindWindowEx <8> most probably <8> not staically linked to the CRT <7> humm <4> go into the project options, C/C++, Code Generation, Runtime Library <4> what's the value of that <7> Multi-threaded (/MT) <4> aha! <7> so ? <4> hehe.. jk <4> well, it seems you're linking statically.. <7> so what should i modify ? <8> we'd have to see some code and a better description of the error <9> sorry <9> my connection was broken <9> i saw that "putty" had the same message error for some users <9> Cette application n'a pas pu dmarrer car la configuration de l'application est incorrecte.Rinstaller l'application pourrait rsoudre le problme. <9> J'ai rinstall +eurs fois... Idem <9> QUe puis je utiliser a la place de Putty? <9> you see ? <8> bealtine> we'd have to see some code and a better description of the error <6> putty isn't normal windows stuff <9> cool <9> YUY0x7, you were right <8> you could use dependancywalker against the exe on the victims pc <8> err user <9> changing to /Mt has solved the problem <9> but the size of application growth by 100 kbytes <4> wasn't it already in /Mt ? <8> you said you had /Mt <9> i didn't pay attention that i modify it.. but when i saw other options, i tried to see the result of the new compilation <9> and it works now <9> thanks a lot YUY0x7 <8> wasting our time... <9> what does it mean "sigh" ? <9> anyway, thanks a lot YUY0x7 & bealtine <8> <7> Multi-threaded (/MT) <4> np <10> back <6> time to head to the pub for dinner... wife and kid are on the way... I'll check in when we get home <11> hi room <12> When I got '&' part of a string, it doesnt print it, what is the alternative character? <13> That's just in a Windows static. <12> is their anyway to fix that <13> && <12> ah ok <13> & indicates that the following character should be underlined. <13> That character becomes the Alt key shortcut to focus the ***ociated control. <13> && is the escape sequence to display a & <13> And, of course, this has nothing at all to do with C++. <14> hi, any1 can look at this -> http://www.noidea128.org/sourcefiles/15801.html <14> when i call it with an invalid "selection value" it does not seem to return NULL as expected <14> i call it like this: book_in_lend_list=find_book_in_lend_list(&start_lendPtr,book_code); <14> any1? <10> does it print that last line? <14> hm, let me run it and see... <14> wait, what do u mean? <10> printf("\nBook with code: %d not found in lending-list!\n", selection); <10> does it print that? <14> no <10> Then it found the selection don't you think?
Return to
#c++ or Go to some related
logs:
imagepsloadfont pfa #AllNiteCafe #php #linux Polish notation tree #MissKitten #asm #AllNiteCafe #linux #london
|
|