Click here to Skip to main content
15,920,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to show GIF file in my dialog ? Pin
Amarelia25-Sep-05 21:14
Amarelia25-Sep-05 21:14 
AnswerRe: How to show GIF file in my dialog ? Pin
vikas amin25-Sep-05 21:24
vikas amin25-Sep-05 21:24 
GeneralRe: How to show GIF file in my dialog ? Pin
Amarelia26-Sep-05 0:56
Amarelia26-Sep-05 0:56 
AnswerRe: How to show GIF file in my dialog ? Pin
ThatsAlok25-Sep-05 22:34
ThatsAlok25-Sep-05 22:34 
AnswerRe: How to show GIF file in my dialog ? Pin
Kenan Aksoy26-Sep-05 5:11
Kenan Aksoy26-Sep-05 5:11 
Questionconnec tion to ms access database Pin
tejaswi-teja25-Sep-05 21:10
tejaswi-teja25-Sep-05 21:10 
AnswerRe: connec tion to ms access database Pin
ThatsAlok25-Sep-05 22:51
ThatsAlok25-Sep-05 22:51 
AnswerRe: connec tion to ms access database Pin
vikas amin26-Sep-05 0:59
vikas amin26-Sep-05 0:59 
Here is a small code from a project for u

	CDatabase database;<br />
	CString SqlString;<br />
	CString sDeviceID,sDeviceName,sStatus;<br />
	CString sDriver = "MICROSOFT ACCESS DRIVER (*.mdb)";<br />
	CString sDsn;<br />
	CString sFile = "D:\\PMR\\vc++\\conndevices.mdb";  <br />
        // You must change path if it's different database <br />
<br />
	// Build ODBC connection string<br />
	sDsn.Format("ODBC;DRIVER={%s};DSN='';DBQ=%s",sDriver,app_path);<br />
<br />
	// Open the database<br />
		database.Open(NULL,false,false,sDsn);<br />
<br />
                CRecordset recset( &database );<br />
		<br />
		// Build the SQL statement<br />
	<br />
		//DeviceOpen::m_devicename.GetWindowText(sDeviceName);<br />
		SqlString="SELECT DeviceName FROM conndevices ";<br />
		<br />
		// Execute the query	           recset.Open(CRecordset::forwardOnly,SqlString,CRecordset::readOnly)<br />
<br />




Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
AnswerRe: connec tion to ms access database Pin
David Crow26-Sep-05 3:28
David Crow26-Sep-05 3:28 
GeneralRe: connec tion to ms access database Pin
tejaswi-teja26-Sep-05 5:53
tejaswi-teja26-Sep-05 5:53 
QuestionVOIP plz help me Pin
vikas amin25-Sep-05 20:51
vikas amin25-Sep-05 20:51 
Questionrefresh event Pin
htv2225-Sep-05 19:27
htv2225-Sep-05 19:27 
AnswerRe: refresh event Pin
khan++25-Sep-05 19:53
khan++25-Sep-05 19:53 
GeneralRe: refresh event Pin
htv2225-Sep-05 19:56
htv2225-Sep-05 19:56 
GeneralRe: refresh event Pin
khan++25-Sep-05 20:09
khan++25-Sep-05 20:09 
QuestionHow to join 2 byte string into one?? Pin
cue_ball25-Sep-05 17:58
cue_ball25-Sep-05 17:58 
AnswerRe: How to join 2 byte string into one?? Pin
John R. Shaw25-Sep-05 20:27
John R. Shaw25-Sep-05 20:27 
GeneralRe: How to join 2 byte string into one?? Pin
prasad_som25-Sep-05 20:42
prasad_som25-Sep-05 20:42 
GeneralRe: How to join 2 byte string into one?? Pin
John R. Shaw25-Sep-05 21:52
John R. Shaw25-Sep-05 21:52 
GeneralRe: How to join 2 byte string into one?? Pin
Eytukan25-Sep-05 22:11
Eytukan25-Sep-05 22:11 
QuestionDGPS Pin
Rassul Yunussov25-Sep-05 17:57
Rassul Yunussov25-Sep-05 17:57 
AnswerRe: DGPS Pin
Marc Soleda25-Sep-05 23:01
Marc Soleda25-Sep-05 23:01 
GeneralRe: DGPS Pin
Rassul Yunussov25-Sep-05 23:32
Rassul Yunussov25-Sep-05 23:32 
GeneralRe: DGPS Pin
Marc Soleda26-Sep-05 0:05
Marc Soleda26-Sep-05 0:05 
GeneralRe: DGPS Pin
Rassul Yunussov26-Sep-05 2:14
Rassul Yunussov26-Sep-05 2:14 

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.