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

C / C++ / MFC

 
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 
AnswerRe: char ** initialization and store values Pin
«_Superman_»14-May-13 16:58
professional«_Superman_»14-May-13 16:58 
GeneralRe: char ** initialization and store values Pin
Erudite_Eric15-May-13 0:47
Erudite_Eric15-May-13 0:47 
QuestionHow to change the string of a MFC Menu item that contains '\t' Pin
haha_c12-May-13 21:40
haha_c12-May-13 21:40 
SuggestionRe: How to change the string of a MFC Menu item that contains '\t' Pin
Richard MacCutchan12-May-13 23:02
mveRichard MacCutchan12-May-13 23:02 
AnswerRe: How to change the string of a MFC Menu item that contains '\t' Pin
Jochen Arndt12-May-13 23:40
professionalJochen Arndt12-May-13 23:40 
GeneralRe: How to change the string of a MFC Menu item that contains '\t' Pin
haha_c13-May-13 16:04
haha_c13-May-13 16:04 
GeneralRe: How to change the string of a MFC Menu item that contains '\t' Pin
Jochen Arndt13-May-13 20:57
professionalJochen Arndt13-May-13 20:57 
QuestionCdialog::Create Never comes back Pin
ForNow12-May-13 18:04
ForNow12-May-13 18:04 
AnswerRe: Cdialog::Create Never comes back Pin
Richard MacCutchan12-May-13 21:07
mveRichard MacCutchan12-May-13 21:07 
Questionwhat is the difference between "static" function and "inline" function? [SOLVED] Pin
yu-jian12-May-13 16:53
yu-jian12-May-13 16:53 
AnswerRe: what is the difference between "static" function and "inline" function? Pin
SoMad12-May-13 18:29
professionalSoMad12-May-13 18:29 
GeneralRe: what is the difference between "static" function and "inline" function? Pin
yu-jian14-May-13 4:13
yu-jian14-May-13 4:13 
AnswerRe: what is the difference between "static" function and "inline" function? Pin
pasztorpisti12-May-13 21:58
pasztorpisti12-May-13 21:58 
QuestionCHtmlEditCtrl - Overriding printer dialog and use with modeless dialogs Pin
Member 822518012-May-13 4:31
Member 822518012-May-13 4:31 
QuestionHow to set up a computer for network programming on UNIX [SOLVED] Pin
noislude11-May-13 13:44
noislude11-May-13 13:44 

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.