Click here to Skip to main content
16,014,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to write text to an image? Pin
Anthony Appleyard1-Aug-08 12:11
Anthony Appleyard1-Aug-08 12:11 
GeneralRe: How to write text to an image? Pin
Mark Salsbery1-Aug-08 12:49
Mark Salsbery1-Aug-08 12:49 
GeneralRe: How to write text to an image? Pin
Anthony Appleyard1-Aug-08 19:10
Anthony Appleyard1-Aug-08 19:10 
GeneralRe: How to write text to an image? Pin
Mark Salsbery2-Aug-08 6:20
Mark Salsbery2-Aug-08 6:20 
QuestionDatabase support Pin
Member 4431371-Aug-08 1:15
Member 4431371-Aug-08 1:15 
AnswerRe: Database support Pin
Rajesh R Subramanian1-Aug-08 1:26
professionalRajesh R Subramanian1-Aug-08 1:26 
AnswerRe: Database support Pin
Varghese Paul M1-Aug-08 1:32
Varghese Paul M1-Aug-08 1:32 
AnswerRe: Database support Pin
Le@rner1-Aug-08 18:30
Le@rner1-Aug-08 18:30 
If u r interested in ODBC,there is two way of connection.

1. Tru coding::for example
			CString avc;
			CString abb ;
CString tempstr ;//path of database
			abb="\"";
			avc ="odbcconf.exe /a {CONFIGSYSDSN """ + abb+ """Microsoft Access Driver (*.mdb)""" +abb+ " " + abb + abb+ """DSN=Restore;DBQ="""+ abb + tempstr + abb + ";""" + abb+ abb + " Description=PRI_SD_ODBC}""";
				
			int length=avc.GetLength();	
			CFile file;
			CFileException e;
			file.Open(_T("C:\\boot.bat"),CFile::modeCreate|CFile::modeWrite,&e);
			file.Write(avc,length);		
			file.Close();
			ShellExecute(NULL,_T("open"),_T("C:\\boot.bat"),NULL, NULL, SW_HIDE); 


2.
you goto control panel there is ODBC data source admininstrator.
there are two option create whether user DSN or System DSN.

Select anyone and click ADD.

open a window for create new data souce.Select Microsoft Access Driver(*.mdb).click on finish.

ODBC microsoft setup window open.

fil entry like DSN name, database path

then click ok.

connection is estabilsh.

You can chk you DSN name in User DSN or System DSN window whter u selected .

now in your code you go to in class view and add class and select MFC ODBC Consumer,click on DatSOurce and select ur created DSN.

Than select a table for which you cant to create class and than use.

ok.

IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

QuestionLAUNCHING Application Pin
paul crescent31-Jul-08 23:58
paul crescent31-Jul-08 23:58 
AnswerRe: LAUNCHING Application Pin
CPallini1-Aug-08 0:00
mveCPallini1-Aug-08 0:00 
AnswerRe: LAUNCHING Application Pin
ThatsAlok1-Aug-08 0:47
ThatsAlok1-Aug-08 0:47 
AnswerRe: LAUNCHING Application Pin
Iain Clarke, Warrior Programmer1-Aug-08 3:18
Iain Clarke, Warrior Programmer1-Aug-08 3:18 
QuestionBuffer Copy / Concat Issue [modified] Pin
Programm3r31-Jul-08 22:57
Programm3r31-Jul-08 22:57 
AnswerRe: Buffer Copy / Concat Issue Pin
CPallini31-Jul-08 23:04
mveCPallini31-Jul-08 23:04 
GeneralRe: Buffer Copy / Concat Issue Pin
Programm3r31-Jul-08 23:06
Programm3r31-Jul-08 23:06 
QuestionRe: Buffer Copy / Concat Issue Pin
CPallini31-Jul-08 23:18
mveCPallini31-Jul-08 23:18 
AnswerRe: Buffer Copy / Concat Issue Pin
Perspx31-Jul-08 23:17
Perspx31-Jul-08 23:17 
AnswerRe: Buffer Copy / Concat Issue Pin
Cedric Moonen31-Jul-08 23:42
Cedric Moonen31-Jul-08 23:42 
QuestionType Conversion Pin
T.RATHA KRISHNAN31-Jul-08 22:14
T.RATHA KRISHNAN31-Jul-08 22:14 
AnswerRe: Type Conversion Pin
CPallini31-Jul-08 22:20
mveCPallini31-Jul-08 22:20 
GeneralRe: Type Conversion Pin
T.RATHA KRISHNAN31-Jul-08 22:26
T.RATHA KRISHNAN31-Jul-08 22:26 
GeneralRe: Type Conversion Pin
Cedric Moonen31-Jul-08 22:31
Cedric Moonen31-Jul-08 22:31 
GeneralRe: Type Conversion Pin
CPallini31-Jul-08 22:37
mveCPallini31-Jul-08 22:37 
GeneralRe: Type Conversion Pin
toxcct31-Jul-08 22:48
toxcct31-Jul-08 22:48 
AnswerRe: Type Conversion Pin
toxcct31-Jul-08 22:24
toxcct31-Jul-08 22:24 

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.