Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to increase size of tool tip in my application. Pin
«_Superman_»13-May-09 19:03
professional«_Superman_»13-May-09 19:03 
QuestionCan't find a solution for showing more dialog windows. Pin
hrddd13-May-09 8:13
hrddd13-May-09 8:13 
AnswerRe: Can't find a solution for showing more dialog windows. Pin
Maximilien13-May-09 8:53
Maximilien13-May-09 8:53 
QuestionHow to calculate the time between LBUTTONDOWN and LBUTTONUP? Pin
wb_program13-May-09 8:04
wb_program13-May-09 8:04 
AnswerRe: How to calculate the time between LBUTTONDOWN and LBUTTONUP? Pin
JBAK_CP13-May-09 8:30
JBAK_CP13-May-09 8:30 
AnswerRe: How to calculate the time between LBUTTONDOWN and LBUTTONUP? Pin
Nibu babu thomas13-May-09 18:45
Nibu babu thomas13-May-09 18:45 
AnswerRe: How to calculate the time between LBUTTONDOWN and LBUTTONUP? Pin
Taran913-May-09 21:07
Taran913-May-09 21:07 
QuestionCannot Open Recordset Pin
Astitva2313-May-09 8:00
Astitva2313-May-09 8:00 
char *sConn="C:\\Documents and Settings\\Nimesh Gurung\\Desktop\\VPassignment\\Employee.mdb";
m_ptrConnection.CreateInstance(__uuidof(Connection));
m_ptrConnection->Provider = "Microsoft.Jet.OLEDB.4.0";
m_ptrConnection->Open(sConn,"Admin","",NULL);


//Create Ado recordset
m_pRS=NULL;
m_pRS.CreateInstance(__uuidof(Recordset));
m_pRS->CursorLocation=adUseClient;


char *table="SELECT * FROM EmployeeDetails";


m_pRS->Open(table,sConn,adOpenKeyset,adLockReadOnly , adCmdTable);




/
m_datagrid.putref_DataSource(NULL);
m_datagrid.putref_DataSource((LPUNKNOWN) m_pRS );
//m_datagrid.Refresh();


I am using Visual Studio 2008 and somehow can't make my code to open the recordset. Any help is much appreciated.
Many thanks in Advance
AnswerRe: Cannot Open Recordset Pin
Stuart Dootson13-May-09 9:17
professionalStuart Dootson13-May-09 9:17 
AnswerRe: Cannot Open Recordset Pin
Astitva2313-May-09 12:10
Astitva2313-May-09 12:10 
GeneralRe: Cannot Open Recordset Pin
Stuart Dootson13-May-09 12:54
professionalStuart Dootson13-May-09 12:54 
QuestionNeed help about tab control!!!!!!!! Pin
happy5217713-May-09 4:46
happy5217713-May-09 4:46 
AnswerRe: Need help about tab control!!!!!!!! Pin
David Crow13-May-09 10:27
David Crow13-May-09 10:27 
QuestionApplication loses focus Pin
Tommy Svensson13-May-09 4:35
Tommy Svensson13-May-09 4:35 
AnswerRe: Application loses focus Pin
Randor 13-May-09 5:30
professional Randor 13-May-09 5:30 
AnswerRe: Application loses focus Pin
«_Superman_»13-May-09 19:09
professional«_Superman_»13-May-09 19:09 
QuestionApplication crash when application launch. Pin
Le@rner13-May-09 2:33
Le@rner13-May-09 2:33 
AnswerRe: Application crash when application launch. Pin
Cedric Moonen13-May-09 2:44
Cedric Moonen13-May-09 2:44 
GeneralRe: Application crash when application launch. Pin
Le@rner13-May-09 2:47
Le@rner13-May-09 2:47 
GeneralRe: Application crash when application launch. Pin
Cedric Moonen13-May-09 2:58
Cedric Moonen13-May-09 2:58 
GeneralRe: Application crash when application launch. Pin
Le@rner13-May-09 18:11
Le@rner13-May-09 18:11 
GeneralRe: Application crash when application launch. Pin
Cedric Moonen13-May-09 20:24
Cedric Moonen13-May-09 20:24 
GeneralRe: Application crash when application launch. Pin
Le@rner13-May-09 20:33
Le@rner13-May-09 20:33 
GeneralRe: Application crash when application launch. Pin
Cedric Moonen13-May-09 20:54
Cedric Moonen13-May-09 20:54 
QuestionRe: Application crash when application launch. Pin
David Crow13-May-09 3:13
David Crow13-May-09 3:13 

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.