Click here to Skip to main content
15,895,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CInternetFile: problem in reading remote file Pin
Jose Lamas Rios6-Aug-05 17:12
Jose Lamas Rios6-Aug-05 17:12 
GeneralHiding CMenu items Pin
Ivan Cachicatari5-Aug-05 15:47
Ivan Cachicatari5-Aug-05 15:47 
GeneralRe: Hiding CMenu items Pin
ThatsAlok5-Aug-05 20:41
ThatsAlok5-Aug-05 20:41 
GeneralGive you the example: Pin
bghuang6-Aug-05 2:45
bghuang6-Aug-05 2:45 
GeneralGetConsoleWindow() Error C2065: Undeclared identifier Pin
chiyinhk5-Aug-05 14:33
chiyinhk5-Aug-05 14:33 
GeneralRe: GetConsoleWindow() Error C2065: Undeclared identifier Pin
Jose Lamas Rios5-Aug-05 17:01
Jose Lamas Rios5-Aug-05 17:01 
GeneralRe: GetConsoleWindow() Error C2065: Undeclared identifier Pin
ThatsAlok5-Aug-05 23:43
ThatsAlok5-Aug-05 23:43 
GeneralD3DXCreateTextureFromFile and CBitmap Pin
akira325-Aug-05 12:51
akira325-Aug-05 12:51 
Questionhow to create 2 splitters in a window (using MFC) Pin
/*Trucker*\5-Aug-05 11:21
/*Trucker*\5-Aug-05 11:21 
AnswerRe: how to create 2 splitters in a window (using MFC) Pin
GKarRacer5-Aug-05 12:00
GKarRacer5-Aug-05 12:00 
GeneralRe: how to create 2 splitters in a window (using MFC) Pin
/*Trucker*\5-Aug-05 13:03
/*Trucker*\5-Aug-05 13:03 
GeneralRe: how to create 2 splitters in a window (using MFC) Pin
GKarRacer5-Aug-05 13:32
GKarRacer5-Aug-05 13:32 
GeneralRe: how to create 2 splitters in a window (using MFC) Pin
/*Trucker*\5-Aug-05 14:05
/*Trucker*\5-Aug-05 14:05 
Generalgrid with comboboxes in CFormView Pin
Spiritofamerica5-Aug-05 11:10
Spiritofamerica5-Aug-05 11:10 
GeneralOpening system menu with code don’t work Pin
Patric_J5-Aug-05 10:27
Patric_J5-Aug-05 10:27 
GeneralRe: Opening system menu with code don’t work Pin
GKarRacer5-Aug-05 11:35
GKarRacer5-Aug-05 11:35 
GeneralRe: Opening system menu with code don’t work Pin
Patric_J8-Aug-05 3:25
Patric_J8-Aug-05 3:25 
GeneralCommon Language Runtime Debugging Services Error Pin
sysx5-Aug-05 8:52
sysx5-Aug-05 8:52 
GeneralRe: Common Language Runtime Debugging Services Error Pin
Trollslayer5-Aug-05 10:20
mentorTrollslayer5-Aug-05 10:20 
GeneralRe: Common Language Runtime Debugging Services Error Pin
sysx5-Aug-05 15:45
sysx5-Aug-05 15:45 
GeneralRe: Common Language Runtime Debugging Services Error Pin
sysx6-Aug-05 7:19
sysx6-Aug-05 7:19 
GeneralDrawing in a Memory DC Pin
Axonn Echysttas5-Aug-05 6:59
Axonn Echysttas5-Aug-05 6:59 
GeneralRe: Drawing in a Memory DC Pin
Jose Lamas Rios6-Aug-05 16:46
Jose Lamas Rios6-Aug-05 16:46 
Generalcomplex numbers error Pin
Oriented5-Aug-05 6:00
Oriented5-Aug-05 6:00 
Hi,
may u plz look at this error:

#include <complex>

using namespace std;
complex <double> i(0,1); // to get i=sqrt(-1) !!
complex <double> 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<double>' (or there is no acceptable conversion)
Error executing cl.exe.


It also doesn't accept:
complex <double> c3 = 1 + i ;

Any help is highly appreciated!
Regards,
Eliyah
GeneralRe: complex numbers error Pin
BlackDice5-Aug-05 7:36
BlackDice5-Aug-05 7:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.