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

C / C++ / MFC

 
AnswerRe: copying text from the webpages or pdfs which are selected by mouse Pin
ParagPatel16-Apr-09 2:11
ParagPatel16-Apr-09 2:11 
QuestionEdit Box VScrool Problem. Pin
zakkas248316-Apr-09 0:30
zakkas248316-Apr-09 0:30 
Questionidentifier of dialog window and the name of the class Pin
durban216-Apr-09 0:25
durban216-Apr-09 0:25 
AnswerRe: identifier of dialog window and the name of the class Pin
_AnsHUMAN_ 16-Apr-09 0:38
_AnsHUMAN_ 16-Apr-09 0:38 
QuestionMixing Debug and Release during execution Pin
Epi16-Apr-09 0:15
Epi16-Apr-09 0:15 
AnswerRe: Mixing Debug and Release during execution Pin
Rajesh R Subramanian16-Apr-09 0:37
professionalRajesh R Subramanian16-Apr-09 0:37 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 0:41
Epi16-Apr-09 0:41 
GeneralRe: Mixing Debug and Release during execution Pin
Rajesh R Subramanian16-Apr-09 0:43
professionalRajesh R Subramanian16-Apr-09 0:43 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 0:50
Epi16-Apr-09 0:50 
GeneralRe: Mixing Debug and Release during execution Pin
Rajesh R Subramanian16-Apr-09 1:25
professionalRajesh R Subramanian16-Apr-09 1:25 
GeneralWelcome again in the CP's members memorable quotes! Pin
CPallini16-Apr-09 1:48
mveCPallini16-Apr-09 1:48 
GeneralRe: Welcome again in the CP's members memorable quotes! Pin
Rajesh R Subramanian16-Apr-09 1:55
professionalRajesh R Subramanian16-Apr-09 1:55 
GeneralRe: Welcome again in the CP's members memorable quotes! Pin
CPallini16-Apr-09 2:11
mveCPallini16-Apr-09 2:11 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 2:01
Epi16-Apr-09 2:01 
GeneralRe: Mixing Debug and Release during execution Pin
Rajesh R Subramanian16-Apr-09 2:10
professionalRajesh R Subramanian16-Apr-09 2:10 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 2:18
Epi16-Apr-09 2:18 
JokeRe: Mixing Debug and Release during execution Pin
CPallini16-Apr-09 2:20
mveCPallini16-Apr-09 2:20 
JokeRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 2:35
Epi16-Apr-09 2:35 
AnswerRe: Mixing Debug and Release during execution Pin
Roger Stoltz16-Apr-09 1:20
Roger Stoltz16-Apr-09 1:20 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 1:46
Epi16-Apr-09 1:46 
AnswerRe: Mixing Debug and Release during execution Pin
Roger Stoltz16-Apr-09 2:28
Roger Stoltz16-Apr-09 2:28 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 2:53
Epi16-Apr-09 2:53 
GeneralRe: Mixing Debug and Release during execution Pin
Cedric Moonen16-Apr-09 2:58
Cedric Moonen16-Apr-09 2:58 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 3:40
Epi16-Apr-09 3:40 
QuestionIssue using SQL server Pin
ShilpiP15-Apr-09 20:36
ShilpiP15-Apr-09 20:36 
Hi, I am creating one sample application that uses SQL Server and create one table having ID and Title (Unicode data).My problem is that i am using unicode data and when i open the table, "Question mark " is displayed in Title instead of unicode data. My workspace is unicode compiled and i am using nvarchar for lingual data as a variable. Here is my code

CDatabase db;
	CString strLingual = L"";
	// strLingual contains unicode data.
	m_edt_lingual.GetWindowTextW(strLingual);
	CString strQuery;
	try
	{
		// Test with Access database
		if (db.Open(NULL, FALSE, FALSE, _T("Driver={SQL Native Client};Server=SHILPI_PHADNIS\\SQLEXPRESS;Database=TransTool;Uid=sp;Pwd=np;")))
		{
			// Create a test table
			db.ExecuteSQL(_T("CREATE TABLE WDCheckLingual (ID INT, Title NVARCHAR(50))"));

			// Add some test data
			for (int i = 0; i < 10; i++)
			{
				strQuery.Format(_T("INSERT INTO WDCheckLingual (ID, Title) VALUES (%d, '%s')"),
					i + 1, strLingual);
				db.ExecuteSQL(strQuery);
			}

		}
	}
	catch (CException *e)
	{
		e->ReportError();
		e->Delete();
	}


Thanks in advance.... Smile | :)

Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

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.