Click here to Skip to main content
15,894,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: scrollview issue on win7 environment Pin
Ghost Employee22-May-13 16:36
Ghost Employee22-May-13 16:36 
GeneralRe: scrollview issue on win7 environment Pin
Ghost Employee24-May-13 21:02
Ghost Employee24-May-13 21:02 
GeneralRe: scrollview issue on win7 environment Pin
Newbie0025-May-13 0:05
Newbie0025-May-13 0:05 
GeneralRe: scrollview issue on win7 environment Pin
Ghost Employee27-May-13 16:19
Ghost Employee27-May-13 16:19 
QuestionCurrent line of a CRichEditCtrl Pin
ForNow14-May-13 8:53
ForNow14-May-13 8:53 
AnswerRe: Current line of a CRichEditCtrl Pin
David Crow15-May-13 5:44
David Crow15-May-13 5:44 
GeneralRe: Current line of a CRichEditCtrl Pin
ForNow16-May-13 21:08
ForNow16-May-13 21:08 
QuestionRe: Current line of a CRichEditCtrl Pin
David Crow17-May-13 3:12
David Crow17-May-13 3:12 
AnswerRe: Current line of a CRichEditCtrl Pin
ForNow17-May-13 4:24
ForNow17-May-13 4:24 
GeneralRe: Current line of a CRichEditCtrl Pin
David Crow17-May-13 4:47
David Crow17-May-13 4:47 
GeneralRe: Current line of a CRichEditCtrl Pin
ForNow17-May-13 4:54
ForNow17-May-13 4:54 
GeneralRe: Current line of a CRichEditCtrl Pin
ForNow18-May-13 21:44
ForNow18-May-13 21:44 
Questionhow to develop an generic hid mouse emulator? (Driver in c) Pin
jeffery c14-May-13 4:05
jeffery c14-May-13 4:05 
QuestionHow to Reload the Explorer Pin
sarfaraznawaz14-May-13 2:08
sarfaraznawaz14-May-13 2:08 
AnswerRe: How to Reload the Explorer Pin
dusty_dex14-May-13 2:58
dusty_dex14-May-13 2:58 
QuestionRe: How to Reload the Explorer Pin
David Crow14-May-13 7:00
David Crow14-May-13 7:00 
AnswerRe: How to Reload the Explorer Pin
sarfaraznawaz14-May-13 23:13
sarfaraznawaz14-May-13 23:13 
GeneralRe: How to Reload the Explorer Pin
David Crow15-May-13 5:17
David Crow15-May-13 5:17 
QuestionCBitmap::CreateCompatibleBitmap() fail Pin
_Flaviu13-May-13 2:44
_Flaviu13-May-13 2:44 
SuggestionRe: CBitmap::CreateCompatibleBitmap() fail Pin
Jochen Arndt13-May-13 3:05
professionalJochen Arndt13-May-13 3:05 
GeneralRe: CBitmap::CreateCompatibleBitmap() fail Pin
_Flaviu15-May-13 19:59
_Flaviu15-May-13 19:59 
GeneralRe: CBitmap::CreateCompatibleBitmap() fail Pin
Jochen Arndt15-May-13 20:46
professionalJochen Arndt15-May-13 20:46 
Questionchar ** initialization and store values Pin
tagopi13-May-13 2:42
tagopi13-May-13 2:42 
Hello Everybody,

I am trying to pass some values to char ** (to a third party library). But i am getting some issue in that.


C++
    char** ids = new char*[m_Size];
    for(int i=0; i<m_Size; i++)
{
      ids[i] = mSizes[i].GetBuffer(mSizes[i].GetLength()); // here mSizes is CStringArray in which i am storing some values (38,40,42,44,46,48)
}


using that third party function, its creating an output file and in that file the stored value is showing like this.

GROUP : 46,0
GROUP : 44,0
GROUP : 42,0
GROUP : ÝÝÝÝÝÝÝ݆«ãe,0
GROUP : 40,0
GROUP : 38,0


But if I give values like this, then in output file, the values are showing fine.

C++
char* ids[6] = {"38", "40", "42", "44", "46", "48"};


in the output file,

GROUP : 38,0
GROUP : 40,0
GROUP : 42,0
GROUP : 44,0
GROUP : 46,0
GROUP : 48,0

(see the sequence also)

what i am doing wrong? initialization ? or passing values ?

Thanks,
A. Gopinath.
AnswerRe: char ** initialization and store values Pin
Jochen Arndt13-May-13 2:58
professionalJochen Arndt13-May-13 2:58 
AnswerRe: char ** initialization and store values Pin
Erudite_Eric14-May-13 11:18
Erudite_Eric14-May-13 11:18 

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.