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

C / C++ / MFC

 
GeneralRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Code-o-mat9-Sep-09 0:37
Code-o-mat9-Sep-09 0:37 
GeneralRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Richard MacCutchan9-Sep-09 2:44
mveRichard MacCutchan9-Sep-09 2:44 
GeneralRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Ragha Venkat11-Sep-09 0:44
Ragha Venkat11-Sep-09 0:44 
GeneralRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Richard MacCutchan11-Sep-09 1:07
mveRichard MacCutchan11-Sep-09 1:07 
Questionhow to write a programme in V C++ the display on the screen like this??? Pin
mr bard28-Sep-09 21:41
mr bard28-Sep-09 21:41 
AnswerRe: how to write a programme in V C++ the display on the screen like this??? Pin
Richard MacCutchan8-Sep-09 23:17
mveRichard MacCutchan8-Sep-09 23:17 
AnswerRe: how to write a programme in V C++ the display on the screen like this??? Pin
Adam Roderick J8-Sep-09 23:28
Adam Roderick J8-Sep-09 23:28 
Questionrequestion create an instance of Command [modified] Pin
MsmVc8-Sep-09 21:30
MsmVc8-Sep-09 21:30 
Hi all

sorry but i post re-question becouse i havn't got any reply and i need help from form.I am useing ODBC 5.1 Driver for connect to MySQL.It's working fine for XP OS.I am getting error on Window Server 2000.on server 2000 OS i am able to connect but after connection i am getting error.
CString por="Driver={MySQL ODBC 5.1 Driver};";
	CString Database="Database="";";
	CString User="User=";
	CString Userp=root;
	CString password=";Password=";
	CString Passwords=root;
	CString option=";Option=3;";
	CString final=por;
	final +=Database;
	final +=User;
	final +=Userp;
	final +=password;
	final +=Passwords;
	final +=option;
	
	CoInitialize (NULL);
		
	_bstr_t strCon(final);

	try	
	{
		HRESULT hr = m_pConn.CreateInstance (__uuidof (Connection));

		if (FAILED (hr))
		{
			
		}
		
		if (FAILED (m_pConn->Open (strCon,bstrString,bstrString1,0)))
		{
			AfxMessageBox ("Can't open datasource");
		}
		
		else
		{
			MessageBox("There is an error to connect with MySQL. Please check your input parameters or server configuration.","Message",MB_ICONEXCLAMATION);
			return;
		}
		
			AfxMessageBox ("Connection successfully");	
		
			_CommandPtr pCommand;
			hr = pCommand.CreateInstance (__uuidof (Command));
"Erro showing here"
		if (FAILED (hr))
		{
			AfxMessageBox ("Can't create an instance of Command");
			return;
		}
			::_RecordsetPtr pRecordset;
			
			pCommand->ActiveConnection = m_pConn;

Plz helpe me.

modified on Wednesday, September 9, 2009 3:47 AM

AnswerRe: requestion create an instance of Command Pin
CPallini8-Sep-09 21:38
mveCPallini8-Sep-09 21:38 
QuestionRe: requestion create an instance of Command Pin
David Crow9-Sep-09 3:23
David Crow9-Sep-09 3:23 
AnswerRe: requestion create an instance of Command Pin
Stuart Dootson9-Sep-09 3:31
professionalStuart Dootson9-Sep-09 3:31 
GeneralRe: requestion create an instance of Command Pin
MsmVc10-Sep-09 18:49
MsmVc10-Sep-09 18:49 
QuestionKill Process using DebugActiveProcess. Pin
gothic_coder8-Sep-09 20:55
gothic_coder8-Sep-09 20:55 
AnswerRe: Kill Process using DebugActiveProcess. Pin
gothic_coder9-Sep-09 3:08
gothic_coder9-Sep-09 3:08 
Questionlibraries, headers (.h) in C language [modified] Pin
programmer2028-Sep-09 20:45
programmer2028-Sep-09 20:45 
AnswerRe: libraries, headers (.h) in C language Pin
ThatsAlok8-Sep-09 20:56
ThatsAlok8-Sep-09 20:56 
AnswerRe: libraries, headers (.h) in C language Pin
CPallini8-Sep-09 20:57
mveCPallini8-Sep-09 20:57 
AnswerRe: libraries, headers (.h) in C language Pin
Hamid_RT8-Sep-09 21:00
Hamid_RT8-Sep-09 21:00 
GeneralRe: libraries, headers (.h) in C language Pin
ThatsAlok8-Sep-09 21:05
ThatsAlok8-Sep-09 21:05 
AnswerRe: libraries, headers (.h) in C language Pin
Richard MacCutchan8-Sep-09 23:13
mveRichard MacCutchan8-Sep-09 23:13 
AnswerRe: libraries, headers (.h) in C language Pin
Selvam R9-Sep-09 2:15
professionalSelvam R9-Sep-09 2:15 
QuestionSource code not working in outlook 2002 Pin
Game-point8-Sep-09 19:35
Game-point8-Sep-09 19:35 
AnswerRe: Source code not working in outlook 2002 Pin
ThatsAlok8-Sep-09 21:03
ThatsAlok8-Sep-09 21:03 
AnswerRe: Source code not working in outlook 2002 Pin
Selvam R9-Sep-09 2:19
professionalSelvam R9-Sep-09 2:19 
QuestionRe: Source code not working in outlook 2002 Pin
David Crow9-Sep-09 3:25
David Crow9-Sep-09 3:25 

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.