Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Generalit dosn't work either!! Pin
Oriented5-Aug-05 8:03
Oriented5-Aug-05 8:03 
GeneralRe: complex numbers error Pin
Gary R. Wheeler5-Aug-05 15:36
Gary R. Wheeler5-Aug-05 15:36 
QuestionInterlockedExchangeAdd - how much contention? Pin
peterchen5-Aug-05 5:33
peterchen5-Aug-05 5:33 
GeneralRe: InterlockedExchangeAdd - how much contention? Pin
Alexander M.,7-Aug-05 4:46
Alexander M.,7-Aug-05 4:46 
QuestionHow to find the memory usage programatically? Pin
appuanbu5-Aug-05 5:01
appuanbu5-Aug-05 5:01 
AnswerRe: How to find the memory usage programatically? Pin
Blake Miller5-Aug-05 6:09
Blake Miller5-Aug-05 6:09 
GeneralRe: How to find the memory usage programatically? Pin
appuanbu5-Aug-05 6:18
appuanbu5-Aug-05 6:18 
GeneralRe: How to find the memory usage programatically? Pin
Blake Miller8-Aug-05 6:26
Blake Miller8-Aug-05 6:26 
Generalcall graph Pin
jaycush5-Aug-05 4:57
jaycush5-Aug-05 4:57 
GeneralRe: call graph Pin
RChin5-Aug-05 5:16
RChin5-Aug-05 5:16 
GeneralRe: call graph Pin
jaycush5-Aug-05 5:30
jaycush5-Aug-05 5:30 
GeneralGDI+ stretching Pin
lroels5-Aug-05 4:56
lroels5-Aug-05 4:56 
QuestionWIN32 API question: WNDCLASS.cbWndExtra ? Pin
Anonymous5-Aug-05 4:33
Anonymous5-Aug-05 4:33 
AnswerRe: WIN32 API question: WNDCLASS.cbWndExtra ? Pin
Blake Miller5-Aug-05 6:13
Blake Miller5-Aug-05 6:13 
AnswerRe: WIN32 API question: WNDCLASS.cbWndExtra ? Pin
Blake Miller5-Aug-05 6:14
Blake Miller5-Aug-05 6:14 
QuestionAbout Word Addin of adding a bmp? Pin
sharkmouse5-Aug-05 3:14
sharkmouse5-Aug-05 3:14 

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.