Click here to Skip to main content
16,011,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: wierd debug / release error... Pin
l a u r e n10-Jan-02 10:55
l a u r e n10-Jan-02 10:55 
GeneralRe: wierd debug / release error... Pin
Joaquín M López Muñoz10-Jan-02 11:13
Joaquín M López Muñoz10-Jan-02 11:13 
GeneralRe: wierd debug / release error... Pin
Michael Dunn10-Jan-02 13:06
sitebuilderMichael Dunn10-Jan-02 13:06 
GeneralEnumWindows and EnumWindowsProc Pin
RobJones10-Jan-02 9:08
RobJones10-Jan-02 9:08 
GeneralRe: EnumWindows and EnumWindowsProc Pin
Joaquín M López Muñoz10-Jan-02 9:36
Joaquín M López Muñoz10-Jan-02 9:36 
GeneralRe: EnumWindows and EnumWindowsProc Pin
Ernest Laurentin10-Jan-02 10:20
Ernest Laurentin10-Jan-02 10:20 
GeneralRe: EnumWindows and EnumWindowsProc Pin
2-Feb-02 13:37
suss2-Feb-02 13:37 
Generalstupid VC++ 7 error... Pin
Mario M.10-Jan-02 8:15
Mario M.10-Jan-02 8:15 
Hi,
Does anyone knows why I get this stupid error when trying to compile this source code http://www.codeproject.com/dialog/selectcomputerdialog.asp
with Visual C++ 6.0 it compiles without problems, but with Visual Studio .net (release candidate) I get this error... Dead | X|

e:\VSNet\Vc7\include\xutility(398) : error C2440: 'return' : cannot convert from 'NETRESOURCE *' to 'std::vector<_Ty,_Ax>::_Tptr '
with
[
_Ty=CSelectComputerNetwork::CNETRESOURCE,
_Ax=std::allocator<cselectcomputernetwork::cnetresource>
]
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
e:\VSNet\Vc7\include\xutility(397) : while compiling class-template member function 'std::vector<_Ty,_Ax>::_Tptr *std::_Ptrit<_Ty,_Diff,_Pointer,_Reference,_Pointer2,_Reference2>::operator ->(void) const'
with
[
_Ty=CSelectComputerNetwork::CNETRESOURCE,
_Ax=std::allocator<cselectcomputernetwork::cnetresource>,
_Diff=std::vector<cselectcomputernetwork::cnetresource,std::allocator<cselectcomputernetwork::cnetresource>>::difference_type,
_Pointer=std::vector<cselectcomputernetwork::cnetresource,std::allocator<cselectcomputernetwork::cnetresource>>::_Tptr,
_Reference=std::vector<cselectcomputernetwork::cnetresource,std::allocator<cselectcomputernetwork::cnetresource>>::reference,
_Pointer2=std::vector<cselectcomputernetwork::cnetresource,std::allocator<cselectcomputernetwork::cnetresource>>::_Tptr,
_Reference2=std::vector<cselectcomputernetwork::cnetresource,std::allocator<cselectcomputernetwork::cnetresource>>::reference
]
e:\VSNet\Vc7\include\vector(372) : see reference to class template instantiation 'std::_Ptrit<_Ty,_Diff,_Pointer,_Reference,_Pointer2,_Reference2>' being compiled
with
[
_Ty=std::vector<cselectcomputernetwork::cnetresource,std::allocator<cselectcomputernetwork::cnetresource>>::value_type,
_Diff=std::vector<cselectcomputernetwork::cnetresource,std::allocator<cselectcomputernetwork::cnetresource>>::difference_type,
_Pointer=std::vector<cselectcomputernetwork::cnetresource,std::allocator<cselectcomputernetwork::cnetresource>>::_Tptr,
_Reference=std::vector<cselectcomputernetwork::cnetresource,std::allocator<cselectcomputernetwork::cnetresource>>::reference,
_Pointer2=std::vector<cselectcomputernetwork::cnetresource,std::allocator<cselectcomputernetwork::cnetresource>>::_Tptr,
_Reference2=std::vector<cselectcomputernetwork::cnetresource,std::allocator<cselectcomputernetwork::cnetresource>>::reference
]
f:\axaxax\SelectComputerNetwork.cpp(26) : see reference to class template instantiation 'std::vector<_Ty,_Ax>' being compiled
with
[
_Ty=CSelectComputerNetwork::CNETRESOURCE,
_Ax=std::allocator<cselectcomputernetwork::cnetresource>
]



Thanks in advance !
GeneralRe: stupid VC++ 7 error... Pin
Nemanja Trifunovic10-Jan-02 8:36
Nemanja Trifunovic10-Jan-02 8:36 
GeneralRe: stupid VC++ 7 error... Pin
Mario M.10-Jan-02 8:43
Mario M.10-Jan-02 8:43 
GeneralRe: stupid VC++ 7 error... Pin
James R. Twine10-Jan-02 8:52
James R. Twine10-Jan-02 8:52 
GeneralRe: stupid VC++ 7 error... Pin
Mario M.10-Jan-02 9:28
Mario M.10-Jan-02 9:28 
GeneralRe: stupid VC++ 7 error... Pin
James R. Twine10-Jan-02 10:15
James R. Twine10-Jan-02 10:15 
GeneralRe: stupid VC++ 7 error... Pin
James R. Twine10-Jan-02 8:51
James R. Twine10-Jan-02 8:51 
GeneralRe: stupid VC++ 7 error... Pin
Christian Graus10-Jan-02 9:19
protectorChristian Graus10-Jan-02 9:19 
GeneralRe: stupid VC++ 7 error... Pin
Mario M.10-Jan-02 9:35
Mario M.10-Jan-02 9:35 
GeneralRe: stupid VC++ 7 error... Pin
Christian Graus10-Jan-02 9:47
protectorChristian Graus10-Jan-02 9:47 
GeneralRe: stupid VC++ 7 error... Pin
Mario M.10-Jan-02 10:22
Mario M.10-Jan-02 10:22 
GeneralRe: stupid VC++ 7 error... Pin
Christian Graus10-Jan-02 11:01
protectorChristian Graus10-Jan-02 11:01 
GeneralRe: stupid VC++ 7 error... Pin
Mario M.10-Jan-02 11:34
Mario M.10-Jan-02 11:34 
GeneralRe: stupid VC++ 7 error... Pin
Christian Graus10-Jan-02 11:42
protectorChristian Graus10-Jan-02 11:42 
GeneralRe: stupid VC++ 7 error... Pin
Mario M.10-Jan-02 11:51
Mario M.10-Jan-02 11:51 
GeneralRe: stupid VC++ 7 error... Pin
Tim Smith10-Jan-02 12:15
Tim Smith10-Jan-02 12:15 
GeneralRe: stupid VC++ 7 error... Pin
Mario M.10-Jan-02 12:33
Mario M.10-Jan-02 12:33 
GeneralRe: stupid VC++ 7 error... Pin
Tim Smith10-Jan-02 12:49
Tim Smith10-Jan-02 12:49 

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.