| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10
Comments:
<0> yes <0> so i received the same error <1> unlikely <2> uh... what was the signature of main() <0> void main() <2> bzzzt <2> int main(int argc, char **argv) // although parameters can be left out, I think <1> and the return type too <2> I think even the standard says int main() is acceptable now <2> but I'm not sure, I'm very out of date :( <0> same error <1> well link the files together -.- <3> int main() has always been acceptable. <2> _m_: I know it's been linkable, wasn't sure if it was "proper" <3> It has always been proper, too. <3> In fact, void main() is wrong.
<3> calc void main <4> void main = void main() isn't C89 *or* C++. See http://www.eskimo.com/~scs/C-faq/q11.12.html, http://www.eskimo.com/~scs/C-faq/q11.14.html, and http://www.eskimo.com/~scs/C-faq/q11.15.html . For C99, see http://homepages.tesco.net/~J.deBoynePollard/FGA/legality-of-void-main.html . <2> _m_: hmm, I thought that K&R said that main() should always have the two args <3> Uhm, this is #C++. K&R is irrelevant. <2> _m_: I know, but I know C a lot better than I know C++, so I fall back to C-isms a lot <2> I apologize <0> so what the wrong think i did ? <2> georgesUHF: "void main()" <0> i tried int main() <1> georgesUHF: do you have more than 1 file? <0> i have a cl*** , 1 function , and 1 header file <1> that isnt an answer <0> i have only a header file <3> and where did you put the implementation? <3> Likely, the IDE ignored the header file, didn't find anything to compile, and thus didn't find an implementation of main() to link. <0> can i send my lil program to someone ? to see it ,, its nothink than 1 cl*** containing 1 function and i try to call it. <3> So, put your implementation into a source file instead of a header file and try again. <0> ok <5> hm <5> hm, is anyone here into .net <6> fishing.net <2> hey bealtine <5> bealtine: heh... other kind of net <6> .net w/ c++ or what? <5> yeah c++.net <5> sorry for not mentioning it.. <6> managed or c++/cli ? <5> hm, I have no real idea about the difference.. <5> but yeah manages.. <5> managed <6> vc2003 or vc2005 then? <5> yeah 2005 <7> grumble <5> just upgraded from 2003 today <6> then its c++/cli <6> ahhh <7> 'morning <7> except I haven't slept yet :/ <5> and I havent been doing any .net.. <5> or well just a bit with the express edition.. <6> let me guess your old mc++ code won't compile? <7> so what's your question? <5> What's a good book ;) <8> can anybody help me with this: RCalcKorrektur.obj : error LNK2019: Verweis auf nicht aufgelstes externes Symbol ""public: static struct CRuntimeCl*** * __stdcall RCalcKorrektur::RData::GetThisCl***(void)" (?GetThisCl***@RData@RCalcKorrektur@@SGPAUCRuntimeCl***@@XZ)" in Funktion ""public: void __thiscall RCalcKorrektur::RData::Serialize(cl*** CArchive &,bool,bool)" (?Serialize@RData@RCalcKorrektur@@QAEXAAVCArchive@@_N1@Z)". <7> eh, good question <7> suriel - mind translating? <5> and how would I create a global, "serialport" <8> i think it has something to do with serialisation and the IMPLEMENT_SERIAL and IMPLEMENT_SERIAL2 -marko (vc8) <7> oh, yeah looks like it <7> that silly MFC crap <8> rdragon: linker-error. link to unresolved external symbol <8> converting a vc6-project to vc2005... <7> did you use both DECLARE_SERIAL and IMPLEMENT_SERIAL macros for the cl***? <7> (lets see some code) <8> rdragon: rdate is a innercl*** of RCalcKorrektur <7> suriel paste your code onto the paste site <8> rdragon: wait a minute please. ill poste some code... <7> k <5> *yawn* <8> rdragon: http://www.noidea128.org/sourcefiles/15861.html <7> suriel...
<7> RData does not inherit from RCalcKorrektur... <7> actually, IMPLEMENT_SERIAL2 doesn't even return any results from an msdn search - what is it? <8> rdragon: no. its just an inner cl*** <7> it's cl*** name is RCalcKorrektur::RData, i believe <8> rdragon: mfcext.h #define IMPLEMENT_SERIAL2(baseBase, cl***_name, base_cl***_name, wSchema) \ <8> CObject* PASCAL baseBase::cl***_name::CreateObject() \ <8> { return new baseBase::cl***_name; } \ <8> _IMPLEMENT_RUNTIMECL***2(baseBase, cl***_name, base_cl***_name, wSchema, \ <8> cl***_name::CreateObject) \ <8> static AFX_CL***INIT _init_##cl***_name(RUNTIME_CL***2(baseBase,cl***_name)); \ <8> CArchive& AFXAPI operator>>(CArchive& ar, baseBase::cl***_name* &pOb) \ <8> { pOb = (baseBase::cl***_name*) ar.ReadObject(RUNTIME_CL***2(baseBase,cl***_name)); \ <8> return ar; } \ <7> oh <6> arrrgggh mfc muck <7> did you have to DECLARE_DYNAMIC and all that nonsense, maybe? <7> I really don't know, just taking guesses <7> it's complaining because it can't find the definition for RCalcKorrektur::RData::GetThisCl***() <8> rdragon: i dont know either ;-( i just loaded the code from a vc6-project where it worked fine <3> in-channel code pastes ****, too. <5> hm <5> rdragon: so did you have any idea about my question? <6> what was your question (it got lost during an mfc paste) <5> How do I create a global serialPort object <5> so I wont have to re-create a new one for each form I want to have serial communications in.. <7> what's a serialPort object? <5> or well compnent or what you clall it <6> is it a cl*** and is this c++ or mc++ ? <5> c++ <5> it's a component <6> myserialport port in a .cpp and then in a .h file extern myserialport port; <5> heres how it's initialized in the form <5> this->serialPort1 = (gcnew System::IO::Ports::SerialPort(this->components)); <6> mc++ <7> c++/cli <5> yeah <5> hm, works now <5> although not global.. <7> pbbbbbllllll <9> s <10> I have a number, say 220, I would like to know if the first number is 2 or not, should I use a bitwise operators or something like int i=220; if((i/100) == 2) dosomething; <9> I'm sorry <7> threat - what if the number is 4 digits long? <10> rdragon, its always 3 <7> never less? <10> (FTP server reply code) <10> never less then 3 either <3> while(n>10) n/=10; if (n == 2) <10> hmm <3> if (reply_code >=200 && reply_code < 300) <10> isnt there a better way to do it using bitwise operators? <10> _m_, thanx <7> no <6> long division <6> as in school... <3> useless division, too, in this special case. <7> if( 200 <= reply && reply < 300 ) <10> rdragon, ? <3> That's better style. <7> yes? <10> rdragon, you ment >= instead of <= ? <7> nope <10> oh yeah <7> just fits the 'typical' style better like 200 <= x < 300 <10> just looks like a weird way to say it ;P <7> [200,300) <10> ok thanx <10> I hate maths :P <7> it hates you too <10> I know :( <7> times a billion <10> heh <10> pwned
Return to
#c++ or Go to some related
logs:
#linux #AllNiteCafe #AllNiteCafe PHP SESSID boyprety
#teens #apache #php animuisic schnaader
|
|