Database access
Please will you help?
Am writting a code (MFC) to read an access database to display an icon on the screen.
the program shouls read the coordinates from the table and display the icon base on the coordinates from the table.
The problem is that I am rigth able to read and display only one coordinate at a time. based on filter
.....
//set filter and read from table
m_pSet = &GetDocument()->m_geoPosiSet;
m_pSet->m_strFilter ="[ID]=7";
CRecordView::OnInitialUpdate();
....
///draw the icon on the screen
pDC->BitBlt(xBus + m_pSet->m_Lat, yBus + m_pSet->m_Longt, 35, 35, &mdcMap3, 0, 0, SRCCOPY);
...........
but I do not know how to read more than one row from the table and use them to display my picture..
I will appreciate your help...
|