Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help to modify dialog style using ModifyStyleEx() Pin
bosfan20-Feb-07 2:37
bosfan20-Feb-07 2:37 
GeneralRe: Help to modify dialog style using ModifyStyleEx() Pin
David Crow20-Feb-07 2:52
David Crow20-Feb-07 2:52 
GeneralRe: Help to modify dialog style using ModifyStyleEx() Pin
bosfan20-Feb-07 4:46
bosfan20-Feb-07 4:46 
QuestionWindows SDK Communication Question Pin
Jethro6319-Feb-07 4:53
Jethro6319-Feb-07 4:53 
AnswerRe: Windows SDK Communication Question Pin
Roger Stoltz19-Feb-07 5:13
Roger Stoltz19-Feb-07 5:13 
GeneralRe: Windows SDK Communication Question Pin
Jethro6319-Feb-07 7:53
Jethro6319-Feb-07 7:53 
QuestionComBSTR Question Pin
Like2Byte19-Feb-07 3:41
Like2Byte19-Feb-07 3:41 
AnswerRe: ComBSTR Question Pin
prasad_som19-Feb-07 6:00
prasad_som19-Feb-07 6:00 
Like2Byte wrote:
CComBSTR bstrModName[256]; CComBSTR bstrBinFileName[256];


CComBSTR is a string, so no need to define array.

Like2Byte wrote:
void CSandboxApp::ModInfoDestroy(){ int i = 0; for( i = 0 ; i < 10 ; i++ ) { mods[i].bSelected.bVal = FALSE; mods[i].lModHandle.lVal = 0; mods[i].lModID.lVal = 0; mods[i].lVdsID.lVal = 0; mods[i].m_cpzModName->bstrVal = NULL; mods[i].m_pzBinFileName->bstrVal = NULL; mods[i].bstrModName->Empty(); mods[i].bstrBinFileName->Empty(); }}


Modify this to,
void CSandboxApp::ModInfoDestroy()
{ 
  int i = 0;  
  for( i = 0 ; i < 10 ; i++ )
  {  
    mods[i].bSelected.bVal = FALSE;  
    mods[i].lModHandle.lVal = 0;
    mods[i].lModID.lVal = 0;
   mods[i].lVdsID.lVal = 0; 
   mods[i].m_cpzModName->bstrVal = NULL;
   mods[i].m_pzBinFileName->bstrVal = NULL; 
   SysFreeString(mods[i].m_cpzModName->bstrVal);
   mods[i].m_cpzModName->bstrVal = NULL;

   SysFreeString(mods[i].m_pzBinFileName->bstrVal);
   mods[i].m_pzBinFileName->bstrVal = NULL; 

   mods[i].bstrModName->Empty(); //actually, no need to do this
   mods[i].bstrBinFileName->Empty();
}
}



GeneralRe: ComBSTR Question Pin
Like2Byte19-Feb-07 7:21
Like2Byte19-Feb-07 7:21 
AnswerRe: ComBSTR Question Pin
Stephen Hewitt19-Feb-07 17:40
Stephen Hewitt19-Feb-07 17:40 
GeneralRe: ComBSTR Question Pin
Like2Byte20-Feb-07 3:51
Like2Byte20-Feb-07 3:51 
QuestionCLISTBOX Owner Drawn ListBox , DrawText does not return correct height. Pin
Killer319-Feb-07 3:35
Killer319-Feb-07 3:35 
Questionfile input program Pin
klutez12319-Feb-07 3:19
klutez12319-Feb-07 3:19 
AnswerRe: file input program Pin
David Crow19-Feb-07 3:22
David Crow19-Feb-07 3:22 
AnswerRe: file input program Pin
toxcct19-Feb-07 3:23
toxcct19-Feb-07 3:23 
GeneralRe: file input program Pin
jhwurmbach19-Feb-07 3:32
jhwurmbach19-Feb-07 3:32 
GeneralRe: file input program Pin
Sebastian Schneider19-Feb-07 3:59
Sebastian Schneider19-Feb-07 3:59 
Questiondrawing pixels in a different game Pin
Parallan19-Feb-07 2:34
Parallan19-Feb-07 2:34 
AnswerRe: drawing pixels in a different game [modified] Pin
Newbie0019-Feb-07 4:11
Newbie0019-Feb-07 4:11 
GeneralRe: drawing pixels in a different game Pin
Parallan19-Feb-07 4:33
Parallan19-Feb-07 4:33 
GeneralRe: drawing pixels in a different game [modified] Pin
Parallan19-Feb-07 4:52
Parallan19-Feb-07 4:52 
QuestionRe: drawing pixels in a different game Pin
Mark Salsbery19-Feb-07 8:07
Mark Salsbery19-Feb-07 8:07 
QuestionRe: drawing pixels in a different game [modified] Pin
Parallan19-Feb-07 8:25
Parallan19-Feb-07 8:25 
QuestionSystem Menu Pin
urid19-Feb-07 2:02
urid19-Feb-07 2:02 
QuestionRe: System Menu Pin
David Crow19-Feb-07 3:08
David Crow19-Feb-07 3:08 

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.