no it doesn't work either!! Thanks
Oriented
Posts
-
complex numbers error -
complex numbers errorHi, may u plz look at this error: #include using namespace std; complex i(0,1); // to get i=sqrt(-1) !! complex c3 = 1/i ; The last line gives the following error: error C2782: 'class std::complex<_Ty> __cdecl std::operator /(const _Ty &,const class std::complex<_Ty> &)' : template parameter '_Ty' is ambiguous could be 'double' or 'int' error C2784: 'class std::complex<_Ty> __cdecl std::operator /(const class std::complex<_Ty> &,const _Ty &)' : could not deduce template argument for 'const class std::complex<_Ty> &' f rom 'const int' error C2784: 'class std::complex<_Ty> __cdecl std::operator /(const class std::complex<_Ty> &,const class std::complex<_Ty> &)' : could not deduce template argument for 'const class st d::complex<_Ty> &' from 'const int' error C2677: binary '/' : no global operator defined which takes type 'class std::complex' (or there is no acceptable conversion) Error executing cl.exe. It also doesn't accept: complex c3 = 1 + i ; Any help is highly appreciated! Regards, Eliyah
-
defining global variablesi'm using VC++6; i want to declare a global variable(i.e., to be seen in all the classes of the app) i tried to declare it n CMyApp ( : public CWinApp) but an error message (undeclared identifier) usually appears.. regards. keep the matter as simple as it can be !!
-
serial port programminghow to write into the serial/parallel/USB port using VC++6? thx
-
pointer declaration1. what are the differences among: CString* str; , CString *str; and (CString*) str; ?! 2. what are LPVOID,LPCTSTR,LPTSTR,LPARAM... (u may give me a link) thx
-
connecting between two dialogsvisual C++ 1. i have created a dialog based project COldDlg. 2. then i added a new dialog resource CNewDlg. 3. i need that the old dialog sees the new one and controls its member variables and when the OnOK() of the new dialog executes it returns to the old dialog. in other words i need to achieve the following commands: COldDlg::OnCalculate() { CNewDlg dlg2; dlg2.DoModal(); m_new=m_old;// where m_old,m_new are 2 member variables of the old and new dialoge respectively } when i made the above statements the builder tells me that CNewDlg is undefined declaration. can anyone give me a detailed answer(in steps and forward plzzzzzzz) i can rebuild the new dialog again if needed:laugh:
-
scroll barvisual C++ 6 can anyone plz tell me (in detailed steps) how to add a vertical scroll bar to my dialog based project?:confused:
-
CString::Format()visual C++ how to add a formatted CString value to the original value, e.g: how to achieve these logical statements?! CString str; str += str.Format(" qer23 %d asdgsgd", var); :omg:
-
Scroll BarVisual C++ a simple question! what is the easiest way to add a simple vertical scroll bar to a dialog based project?:omg:
-
string and intVisual C++ i think it's a trivial question but i don't know the right syntax: i have, for example : int ID1=70; int age1=55; String (or CString) Name="Bell"; CString All; // i want to make All to be: All=" The ID is " ID1 " and his age is " age1 " and his name is " Name .. how to make this?:-D
-
couthow can i show the contents of "cout" used in C++ in Visual C++ 6 ?:zzz:
-
CStringhow to add a number to a string? can i convert from a string to double and reverse? e.g CString (or string) text = "37"; i want to add 4e3:rolleyes: to this value??!!!!!!!
-
IDC_EDITnvisual C++6 when i write DDX_Text(pDX, IDC_EDIT10+4, VAR); where VAR is a member variable, it puts the VAR value in IDC_EDIT24 not IDC14 as i expected, and when i write: DDX_Text(pDX, IDC_EDIT5+2, VAR); it reads it as IDC_EDIT7; in the same way, it reads 4+1 = 15 !! 5+4=19; 10+7 = ?? anyone can help plZ?:laugh:
-
open type varaiblevisual C++ 6 is there an open type variable that can access the string type of data or double .. ( To be used in an edit box, read from and write in ):zzz:
-
variable loopi have many many member variables named m_1 , m_2 , m_3 , m_4 ,.... and i want to access them using a for loop by an index (i) like that : for (int i=1; i
-
writing to an EDIT boxVisual C++ 6 how can i write to ( or read from) an EDIT BOX through my code without assigning it a member variable. hint: i could get a pointer with its address by GetDlgItem() but i could not use it !!
-
hWnd and GetDlgItemVisual C++ 6 can anyone send me a useful link about 1. the hWnd class and its usage . 2. GetDlgItem() and its reverse (i.e, SetDlgItem() if found!!)
-
assign infinity ?!I want to know how can i assign infinity to a variable?:omg:
-
edit boxes linkingHello; I'm using Visual C++ 6 1)I need a way to link 225 edit boxes as one group and give each one of them an index and call them individually by their indices instead of their IDs. after that i will take their inputs to fill up a matrix 15*15. 2)the above technique i have made to make a matrix 15*15 of user defined inputs. if anyone has another elegant technique which enables me to fill a matrix 15*15 with the user inputs , i'll be glad to hear from him. i don't want to use the excel spread sheet active X control !! thx Eliyah
-
edit boxes linkingHello; 1)I need a way to link 225 edit boxes as one group and give each one of them an index and call them individually by their indices instead of their IDs. after that i will take their inputs to fill up a matrix 15*15. 2)the above technique i have made to make a matrix 15*15 of user defined inputs. if anyone has another elegant technique which enables me to fill a matrix 15*15 with the user inputs , i'll be glad to hear from him. i don't want to use the excel spread sheet active X control !! thx Eliyah