Click here to Skip to main content
15,912,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using MSXML APIs in C++ program Pin
Michael Dunn22-Aug-07 7:46
sitebuilderMichael Dunn22-Aug-07 7:46 
GeneralRe: Using MSXML APIs in C++ program Pin
led mike22-Aug-07 8:39
led mike22-Aug-07 8:39 
AnswerRe: Using MSXML APIs in C++ program Pin
jhwurmbach22-Aug-07 7:32
jhwurmbach22-Aug-07 7:32 
GeneralRe: Using MSXML APIs in C++ program Pin
koumodaki22-Aug-07 7:41
koumodaki22-Aug-07 7:41 
GeneralRe: Using MSXML APIs in C++ program Pin
jhwurmbach22-Aug-07 7:44
jhwurmbach22-Aug-07 7:44 
QuestionHow to pass dynamic array from SDI Document to Dialog ComboBox? Pin
penny black22-Aug-07 7:21
penny black22-Aug-07 7:21 
AnswerRe: How to pass dynamic array from SDI Document to Dialog ComboBox? Pin
David Crow22-Aug-07 7:33
David Crow22-Aug-07 7:33 
AnswerRe: How to pass dynamic array from SDI Document to Dialog ComboBox? Pin
Maximilien22-Aug-07 7:37
Maximilien22-Aug-07 7:37 
from where you call the dialog, something like (pseudo c++ code):

...
  CMslDatabase dlg;
  dlg.SetArray( m_YourArray );
 
  dlg.DoModal();
...



class CMslDatabase
{
  //... 
 
  // replace the std::vector with whatever array you are using
  void SetArray ( std::vector& v ){ m_vector = v;};

  std::vector< std::string > m_vector;
};


BOOL CMslDatabase::OnInitDialog()
{
CDialog::OnInitDialog();
std::vector< std::string >::iterator it = m_vector.begin();
while ( it != m_vector.end()
{
  std::string aString = *it;
  m_msl_list.AddString( aString.c_str() );
  ++it;
}
return TRUE;
}



Maximilien Lincourt
Your Head A Splode - Strong Bad

AnswerRe: How to pass dynamic array from SDI Document to Dialog ComboBox? Pin
jhwurmbach22-Aug-07 7:38
jhwurmbach22-Aug-07 7:38 
AnswerRe: How to pass dynamic array from SDI Document to Dialog ComboBox? Pin
penny black22-Aug-07 7:51
penny black22-Aug-07 7:51 
GeneralRe: How to pass dynamic array from SDI Document to Dialog ComboBox? Pin
Iain Clarke, Warrior Programmer22-Aug-07 12:24
Iain Clarke, Warrior Programmer22-Aug-07 12:24 
QuestionHelp with Hook Pin
act_x22-Aug-07 7:04
act_x22-Aug-07 7:04 
AnswerRe: Help with Hook Pin
PJ Arends22-Aug-07 9:10
professionalPJ Arends22-Aug-07 9:10 
GeneralRe: Help with Hook Pin
act_x22-Aug-07 13:45
act_x22-Aug-07 13:45 
Question[VC8] Picture Control always above OK/CANCEL buttons. Need buttons above picture control Pin
abiemann22-Aug-07 6:59
abiemann22-Aug-07 6:59 
AnswerRe: [VC8] Picture Control always above OK/CANCEL buttons. Need buttons above picture control Pin
Mark Salsbery22-Aug-07 7:18
Mark Salsbery22-Aug-07 7:18 
GeneralRe: [VC8] Picture Control always above OK/CANCEL buttons. Need buttons above picture control Pin
abiemann22-Aug-07 8:00
abiemann22-Aug-07 8:00 
GeneralRe: [VC8] Picture Control always above OK/CANCEL buttons. Need buttons above picture control Pin
Mark Salsbery22-Aug-07 8:05
Mark Salsbery22-Aug-07 8:05 
GeneralRe: [VC8] Picture Control always above OK/CANCEL buttons. Need buttons above picture control Pin
abiemann22-Aug-07 10:08
abiemann22-Aug-07 10:08 
GeneralRe: [VC8] Picture Control always above OK/CANCEL buttons. Need buttons above picture control Pin
Mark Salsbery22-Aug-07 10:21
Mark Salsbery22-Aug-07 10:21 
GeneralRe: [VC8] Picture Control always above OK/CANCEL buttons. Need buttons above picture control Pin
Mark Salsbery22-Aug-07 10:50
Mark Salsbery22-Aug-07 10:50 
QuestionHow to Display the Value of a member varible in message box Pin
saravana00122-Aug-07 5:49
saravana00122-Aug-07 5:49 
AnswerRe: How to Display the Value of a member varible in message box Pin
Iain Clarke, Warrior Programmer22-Aug-07 6:12
Iain Clarke, Warrior Programmer22-Aug-07 6:12 
AnswerRe: How to Display the Value of a member varible in message box Pin
ThatsAlok22-Aug-07 21:24
ThatsAlok22-Aug-07 21:24 
QuestionCMyMenu::DrawItem() - how change background color? Pin
Cris22-Aug-07 4:58
Cris22-Aug-07 4:58 

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.