Click here to Skip to main content
16,004,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCDocument & CMainFrame. Pin
mostafa_pasha5-Oct-06 3:34
mostafa_pasha5-Oct-06 3:34 
QuestionRe: CDocument & CMainFrame. Pin
David Crow5-Oct-06 3:50
David Crow5-Oct-06 3:50 
AnswerRe: CDocument & CMainFrame. Pin
mostafa_pasha5-Oct-06 5:45
mostafa_pasha5-Oct-06 5:45 
GeneralRe: CDocument & CMainFrame. Pin
David Crow5-Oct-06 6:00
David Crow5-Oct-06 6:00 
GeneralRe: CDocument & CMainFrame. Pin
mostafa_pasha5-Oct-06 6:20
mostafa_pasha5-Oct-06 6:20 
GeneralRe: CDocument & CMainFrame. Pin
David Crow5-Oct-06 6:58
David Crow5-Oct-06 6:58 
GeneralRe: CDocument & CMainFrame. Pin
mostafa_pasha5-Oct-06 7:15
mostafa_pasha5-Oct-06 7:15 
QuestionHow can i match the string from my CEdit & the string from my CDatabase ? Pin
Bravoone_20065-Oct-06 3:17
Bravoone_20065-Oct-06 3:17 
i need if is found , or not !
if is found SetWindowText the string from another table and if is not AfxMessageBox ("Not Found in your Database !")

this is my code :

void CNcontabile::OnChangeGestiuneadb()
{

CString strCourseID;

CWaitCursor wait; // Display a wait cursor

CDatabase_Bun *pBun;

pBun = new CDatabase_Bun;
// Set the filter
pBun->m_strFilter = "um = '" + strCourseID +"'";

if(pBun->Open());
return;


if (pBun->IsOpen())
{


while(!pBun->IsEOF())


{

m_gestiuneaDb.GetWindowText(strCourseID);


strCourseID.TrimLeft();
strCourseID.TrimRight();
m_gestiuneaDb.SetWindowText(strCourseID);

if(strCourseID == pBun->m_um )
{
m_dengestiuneDb.SetWindowText("GGGGGGG");

}




}


}


pBun->Close();
delete pBun;
}

is not working because i have a filter and is no match !
my second problem is how to trim the spaces ? (CEdit & the CDatabase spaces ) ????????????

Bravoone

AnswerRe: How can i match the string from my CEdit & the string from my CDatabase ? Pin
Hamid_RT5-Oct-06 3:27
Hamid_RT5-Oct-06 3:27 
AnswerRe: How can i match the string from my CEdit & the string from my CDatabase ? Pin
David Crow5-Oct-06 3:38
David Crow5-Oct-06 3:38 
QuestionRe: How can i match the string from my CEdit & the string from my CDatabase ? Pin
Bravoone_20065-Oct-06 21:07
Bravoone_20065-Oct-06 21:07 
AnswerRe: How can i match the string from my CEdit & the string from my CDatabase ? Pin
David Crow6-Oct-06 2:24
David Crow6-Oct-06 2:24 
QuestionHow to load google toolbar in a webbrowser based app? Pin
Tcpip20055-Oct-06 2:24
Tcpip20055-Oct-06 2:24 
AnswerRe: How to load google toolbar in a webbrowser based app? Pin
James R. Twine5-Oct-06 10:51
James R. Twine5-Oct-06 10:51 
QuestionCustom Drawn List View Pin
HakunaMatada5-Oct-06 2:17
HakunaMatada5-Oct-06 2:17 
AnswerRe: Custom Drawn List View Pin
Naveen5-Oct-06 2:35
Naveen5-Oct-06 2:35 
QuestionHow to get icon regions from list view? Pin
Amar Sutar5-Oct-06 1:56
Amar Sutar5-Oct-06 1:56 
AnswerRe: How to get icon regions from list view? Pin
Naveen5-Oct-06 2:38
Naveen5-Oct-06 2:38 
QuestionWindows Theme/Style Preview Pin
andyr20055-Oct-06 1:47
andyr20055-Oct-06 1:47 
AnswerRe: Windows Theme/Style Preview Pin
Naveen5-Oct-06 2:11
Naveen5-Oct-06 2:11 
GeneralRe: Windows Theme/Style Preview Pin
Naveen5-Oct-06 2:16
Naveen5-Oct-06 2:16 
Questioncode for activating a breakpoint at runtime Pin
manustone5-Oct-06 0:59
manustone5-Oct-06 0:59 
AnswerRe: code for activating a breakpoint at runtime Pin
Link20065-Oct-06 1:12
Link20065-Oct-06 1:12 
GeneralRe: code for activating a breakpoint at runtime Pin
manustone5-Oct-06 2:51
manustone5-Oct-06 2:51 
AnswerRe: code for activating a breakpoint at runtime Pin
Rajesh R Subramanian5-Oct-06 1:23
professionalRajesh R Subramanian5-Oct-06 1:23 

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.