Click here to Skip to main content
15,915,172 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to convert string to resource ID Pin
CPallini6-Jan-10 22:08
mveCPallini6-Jan-10 22:08 
GeneralRe: how to convert string to resource ID Pin
ronovice6-Jan-10 22:15
ronovice6-Jan-10 22:15 
GeneralRe: how to convert string to resource ID Pin
KingsGambit6-Jan-10 22:43
KingsGambit6-Jan-10 22:43 
GeneralRe: how to convert string to resource ID Pin
Richard MacCutchan7-Jan-10 0:15
mveRichard MacCutchan7-Jan-10 0:15 
GeneralRe: how to convert string to resource ID Pin
ronovice7-Jan-10 1:20
ronovice7-Jan-10 1:20 
GeneralRe: how to convert string to resource ID Pin
Richard MacCutchan7-Jan-10 1:31
mveRichard MacCutchan7-Jan-10 1:31 
QuestionRe: how to convert string to resource ID Pin
ronovice7-Jan-10 1:37
ronovice7-Jan-10 1:37 
AnswerRe: how to convert string to resource ID [modified] Pin
Richard MacCutchan7-Jan-10 1:45
mveRichard MacCutchan7-Jan-10 1:45 
AnswerRe: how to convert string to resource ID Pin
cmk7-Jan-10 0:28
cmk7-Jan-10 0:28 
GeneralRe: how to convert string to resource ID Pin
ronovice7-Jan-10 1:24
ronovice7-Jan-10 1:24 
GeneralRe: how to convert string to resource ID [modified] Pin
Richard MacCutchan7-Jan-10 1:33
mveRichard MacCutchan7-Jan-10 1:33 
GeneralRe: how to convert string to resource ID Pin
cmk7-Jan-10 3:13
cmk7-Jan-10 3:13 
GeneralRe: how to convert string to resource ID Pin
ronovice7-Jan-10 3:39
ronovice7-Jan-10 3:39 
GeneralRe: how to convert string to resource ID Pin
Richard MacCutchan7-Jan-10 4:35
mveRichard MacCutchan7-Jan-10 4:35 
AnswerRe: how to convert string to resource ID Pin
KarstenK7-Jan-10 1:53
mveKarstenK7-Jan-10 1:53 
QuestionModeless Dialog Pin
Pryabu6-Jan-10 19:53
Pryabu6-Jan-10 19:53 
AnswerRe: Modeless Dialog Pin
ThatsAlok6-Jan-10 20:15
ThatsAlok6-Jan-10 20:15 
GeneralRe: Modeless Dialog Pin
Pryabu6-Jan-10 20:18
Pryabu6-Jan-10 20:18 
AnswerRe: Modeless Dialog Pin
Code-o-mat6-Jan-10 21:33
Code-o-mat6-Jan-10 21:33 
AnswerRe: Modeless Dialog Pin
Parthiban6-Jan-10 21:55
Parthiban6-Jan-10 21:55 
QuestionAudio Visualization Pin
Benjamin Bruno6-Jan-10 19:46
Benjamin Bruno6-Jan-10 19:46 
Questionshuffling the bitmap buttons Pin
gudgirl6-Jan-10 19:09
gudgirl6-Jan-10 19:09 
AnswerRe: shuffling the bitmap buttons Pin
Emilio Garavaglia6-Jan-10 20:21
Emilio Garavaglia6-Jan-10 20:21 
QuestionConversion from VC6 to VC8 Pin
ThatsAlok6-Jan-10 19:03
ThatsAlok6-Jan-10 19:03 
While converting some of my old dll which is currently compiled in VC6 and is also running successfully.

VC2005 compile is throwing compiler error for this piece of code :-

string MyReturn()
{
return string(reinterpret_cast<const char *>(vec.begin()), vec.size());
}


here return type string is STL::string and vec is stl::vector of type unsigned char and i am receiving following error :-

error C2440: 'reinterpret_cast' : cannot convert from 'std::_Vector_const_iterator<_Ty,_Alloc>' 
to 'const char *'
        with
        [
            _Ty=unsigned char,
            _Alloc=std::allocator<unsigned char>
        ]
Conversion requires a constructor or user-defined-conversion operator, 
which can't be used by const_cast or reinterpret_cast


Does anyone know or can give direction to solve above problem, i have tried many way myself, was successfull in using _myfirst member of vector to resolve the problem, but it started giving some other problem.

Thanks in advance

"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixture


cheers,
Alok Gupta
VC Forum Q&A :- I/IV
Support CRY- Child Relief and You

AnswerRe: Conversion from VC6 to VC8 Pin
«_Superman_»6-Jan-10 19:40
professional«_Superman_»6-Jan-10 19:40 

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.