Click here to Skip to main content
16,005,037 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: database CListCtrl Pin
David Crow30-Apr-07 2:41
David Crow30-Apr-07 2:41 
AnswerRe: database &CListCtrl Pin
David Crow27-Apr-07 3:17
David Crow27-Apr-07 3:17 
QuestionIXMLHTTPRequest & PKCS#12 certificate Pin
Andy H26-Apr-07 23:21
Andy H26-Apr-07 23:21 
QuestionLinker Error ... Pin
Anamika200526-Apr-07 23:15
Anamika200526-Apr-07 23:15 
Questioninsert variable Pin
dec8226-Apr-07 23:05
dec8226-Apr-07 23:05 
AnswerRe: insert variable Pin
Hamid_RT26-Apr-07 23:24
Hamid_RT26-Apr-07 23:24 
AnswerRe: insert variable Pin
David Crow27-Apr-07 3:24
David Crow27-Apr-07 3:24 
GeneralRe: insert variable Pin
hero199529-Apr-07 21:45
hero199529-Apr-07 21:45 
my purpose is to copy selected row in a database. Error is: two few parameter.Expected1.what's wrong
void CReadDBDlg::OnButton1()
{
// TODO: Add your control notification handler code here

CString strText;
CString strSQL;
CDaoDatabase db;
db.Open("D:\\copyktt.mdb");
CListCtrl* pListCtrl = (CListCtrl*) GetDlgItem(IDC_ListControl);
ASSERT(pListCtrl != NULL);

POSITION pos = pListCtrl->GetFirstSelectedItemPosition();
if (pos == NULL)
TRACE0("No items were selected!\n");
else
{
while (pos)
{
int nItem = pListCtrl->GetNextSelectedItem(pos);
TRACE1("Item %d was selected!\n", nItem);
// you could do your own processing on nItem here
strText = pListCtrl->GetItemText(nItem,0);
// m_cedit.SetWindowText(strText);
strSQL.Format("INSERT INTO Table6 SELECT * FROM Table3 IN 'C:\\ktt.mdb' WHERE MyField = %s",&strText);
db.Execute(strSQL);

}
}


GeneralRe: insert variable Pin
hero199529-Apr-07 21:48
hero199529-Apr-07 21:48 
QuestionRe: insert variable Pin
David Crow30-Apr-07 2:45
David Crow30-Apr-07 2:45 
QuestionHow to create a dynamic two dimensional array for string? Pin
$uresh $hanmugam26-Apr-07 22:50
$uresh $hanmugam26-Apr-07 22:50 
AnswerRe: How to create a dynamic two dimensional array for string? Pin
Paresh Chitte26-Apr-07 23:02
Paresh Chitte26-Apr-07 23:02 
GeneralRe: How to create a dynamic two dimensional array for string? Pin
$uresh $hanmugam26-Apr-07 23:28
$uresh $hanmugam26-Apr-07 23:28 
AnswerRe: How to create a dynamic two dimensional array for string? Pin
Hamid_RT26-Apr-07 23:05
Hamid_RT26-Apr-07 23:05 
GeneralRe: How to create a dynamic two dimensional array for string? Pin
$uresh $hanmugam26-Apr-07 23:28
$uresh $hanmugam26-Apr-07 23:28 
GeneralRe: How to create a dynamic two dimensional array for string? Pin
Hamid_RT27-Apr-07 0:29
Hamid_RT27-Apr-07 0:29 
AnswerRe: How to create a dynamic two dimensional array for string? Pin
CPallini26-Apr-07 23:07
mveCPallini26-Apr-07 23:07 
GeneralRe: How to create a dynamic two dimensional array for string? Pin
$uresh $hanmugam26-Apr-07 23:29
$uresh $hanmugam26-Apr-07 23:29 
Questioncreating .dll and .lib files Pin
Y K Kishore Kumar26-Apr-07 22:37
Y K Kishore Kumar26-Apr-07 22:37 
AnswerRe: creating .dll and .lib files Pin
Cedric Moonen26-Apr-07 22:59
Cedric Moonen26-Apr-07 22:59 
AnswerRe: creating .dll and .lib files Pin
Y K Kishore Kumar26-Apr-07 23:04
Y K Kishore Kumar26-Apr-07 23:04 
GeneralRe: creating .dll and .lib files Pin
Cedric Moonen26-Apr-07 23:06
Cedric Moonen26-Apr-07 23:06 
AnswerRe: creating .dll and .lib files Pin
Y K Kishore Kumar26-Apr-07 23:14
Y K Kishore Kumar26-Apr-07 23:14 
GeneralRe: creating .dll and .lib files Pin
Cedric Moonen26-Apr-07 23:18
Cedric Moonen26-Apr-07 23:18 
GeneralRe: creating .dll and .lib files Pin
Y K Kishore Kumar26-Apr-07 23:34
Y K Kishore Kumar26-Apr-07 23:34 

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.