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

C / C++ / MFC

 
GeneralRe: New Forum for MC++ Pin
Albert Pascual23-Apr-02 9:04
sitebuilderAlbert Pascual23-Apr-02 9:04 
GeneralRe: New Forum for MC++ Pin
Shog923-Apr-02 10:13
sitebuilderShog923-Apr-02 10:13 
GeneralRe: New Forum for MC++ Pin
Mike Nordell23-Apr-02 9:47
Mike Nordell23-Apr-02 9:47 
GeneralDSN doesn't show up in Data Source Admin Pin
Craig Miller23-Apr-02 7:39
Craig Miller23-Apr-02 7:39 
GeneralSearch binary file fro string Pin
Xtorpia23-Apr-02 7:08
Xtorpia23-Apr-02 7:08 
GeneralRe: Search binary file fro string Pin
Bill Wilson23-Apr-02 7:24
Bill Wilson23-Apr-02 7:24 
GeneralRe: Search binary file fro string Pin
Albert Pascual23-Apr-02 7:37
sitebuilderAlbert Pascual23-Apr-02 7:37 
GeneralCharacter sets Pin
albean23-Apr-02 6:50
albean23-Apr-02 6:50 
Hi guys,

All the code that I have ever written has been for the standard english version of windows. Recently, though, my company has been talking about sending our software overseas to some of our partners. The people that will be using it will speak english so I won't have to get menus, titlebars and things like that translated. BUT I know that they will connecting to databases that use different character sets. (I don't have access to a nonenglish version of Windows or SQL server yet.) Can you guys give me some tips on using Unicode or anything that I should look out for.

I guess I'm wondering about things like when to use TCHAR, _T() and if CString holds up inplace or do I have to rewrite things. Any tips or things to watch out for would be greatly appreciated.


Here is some code that I'm thinking of using it would connect to a db and bring back a list of tables from a combobox selected database will it work for double byte unicode?

----------------------------------------------------
//Get the User selected db from the combobox
CString db = _T("");
m_cmbDatabases.GetLBText(m_cmbDatabases.GetCurSel(),db);

//Open a new conncetion to the User selected db
//m_Server,m_LoginName,m_Password are CStrings returned from a dlg
CString strConnection = _T("");
strConnection.Format("driver={SQL Server};server=%s;uid=%s;pwd=%s;database=%s",m_Server,m_LoginName,m_Password,db);
if(DB.Open(strConnection))
{

//Update m_lstTables
CString Tablename = _T("");
RS = CERecordset(&DB);
if(RS.Open("SELECT name FROM sysobjects WHERE type = 'U' order by name"))
{
m_lstTables.ResetContent();
while(!RS.EOF())
{
RS.GetField("name",Tablename);
m_lstTables.AddString(Tablename);
----------------------------------------------------



GeneralRe: Character sets Pin
jbarton23-Apr-02 7:19
jbarton23-Apr-02 7:19 
GeneralCToolBar VS CToolBarCtrl Pin
dazinith23-Apr-02 6:22
dazinith23-Apr-02 6:22 
GeneralRe: CToolBar VS CToolBarCtrl Pin
Shog923-Apr-02 8:35
sitebuilderShog923-Apr-02 8:35 
GeneralRe: CToolBar VS CToolBarCtrl Pin
dazinith24-Apr-02 4:20
dazinith24-Apr-02 4:20 
GeneralCreate CScrollBar into the CEdit Pin
Eugene Pustovoyt23-Apr-02 6:18
Eugene Pustovoyt23-Apr-02 6:18 
GeneralRe: Create CScrollBar into the CEdit Pin
Roger Allen23-Apr-02 6:42
Roger Allen23-Apr-02 6:42 
GeneralRe: Create CScrollBar into the CEdit Pin
Eugene Pustovoyt23-Apr-02 9:18
Eugene Pustovoyt23-Apr-02 9:18 
GeneralRe: Create CScrollBar into the CEdit Pin
Roger Allen23-Apr-02 21:38
Roger Allen23-Apr-02 21:38 
GeneralRe: Create CScrollBar into the CEdit Pin
Eugene Pustovoyt24-Apr-02 7:58
Eugene Pustovoyt24-Apr-02 7:58 
GeneralRe: Create CScrollBar into the CEdit Pin
Ravi Bhavnani24-Apr-02 8:06
professionalRavi Bhavnani24-Apr-02 8:06 
Questionhoow to owner draw controls? Pin
DiegoValdevino23-Apr-02 5:36
DiegoValdevino23-Apr-02 5:36 
AnswerRe: hoow to owner draw controls? Pin
Mazdak23-Apr-02 5:40
Mazdak23-Apr-02 5:40 
AnswerRe: hoow to owner draw controls? Pin
Thomas Freudenberg23-Apr-02 5:55
Thomas Freudenberg23-Apr-02 5:55 
QuestionIncrement an int value in a char array? Pin
23-Apr-02 5:33
suss23-Apr-02 5:33 
AnswerRe: Increment an int value in a char array? Pin
Tim Smith23-Apr-02 5:55
Tim Smith23-Apr-02 5:55 
GeneralRe: Increment an int value in a char array? Pin
23-Apr-02 7:10
suss23-Apr-02 7:10 
GeneralUser defined Message Pin
act_x23-Apr-02 5:19
act_x23-Apr-02 5:19 

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.