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

C / C++ / MFC

 
QuestionHow to change 1001 refreneces of my "xxx" string values into _T("xxx") Pin
Ahmed Charfeddine29-May-08 7:51
Ahmed Charfeddine29-May-08 7:51 
AnswerRe: How to change 1001 refreneces of my "xxx" string values into _T("xxx") Pin
Graham Shanks29-May-08 8:59
Graham Shanks29-May-08 8:59 
GeneralRe: How to change 1001 refreneces of my "xxx" string values into _T("xxx") Pin
Ahmed Charfeddine29-May-08 23:28
Ahmed Charfeddine29-May-08 23:28 
AnswerRe: How to change 1001 refreneces of my "xxx" string values into _T("xxx") Pin
CPallini29-May-08 9:03
mveCPallini29-May-08 9:03 
GeneralRe: How to change 1001 refreneces of my "xxx" string values into _T("xxx") Pin
Maximilien29-May-08 9:10
Maximilien29-May-08 9:10 
JokeRe: How to change 1001 refreneces of my "xxx" string values into _T("xxx") Pin
BadKarma29-May-08 10:51
BadKarma29-May-08 10:51 
GeneralRe: How to change 1001 refreneces of my "xxx" string values into _T("xxx") Pin
bulg29-May-08 11:56
bulg29-May-08 11:56 
GeneralRe: How to change 1001 refreneces of my "xxx" string values into _T("xxx") Pin
Ahmed Charfeddine29-May-08 23:46
Ahmed Charfeddine29-May-08 23:46 
the application is a chess application. consisting of a desktop client, a server application.
it is 3 years old now and it dates back to my 4th university year.
now i am trying to make radical changes to the code and also the interface so i can be able to deploy it.

from the one hand those refrences are because of neglectiona and lack of experience (i could have use the project ressources and use LoadString) since it was my first big app in my life..
from another hand, really it was unavoidably in many cases not to hardcode some strings.. in fact just for a small example, there was a parsing code that parses a chess PGN file, and looks for keyword, and tags,etc, then it takes the moves body and decrypt it as well by matching other keywords and entering recursively inside the recursive annotations..

finally there have been and even now still is a habit such I never for example use an enum, or an #define something..
I always use string even for my context data

for example if I have a base Session class.. then I put a type as member, then you will find something like :

CSession* pSession=??

if pSession->getType()=="machine Vs machine";

CMachineVsMachineSession* pMachineBattleSession=(CMachineVsMachineSession*) pSession;

pMachineBattleSession->relayUserPieceMoveAsAnnotationMove(...


that's becuase I have plenty of things and srtructures representinf plies, piece types, castling, session type with server, user account type,

so that I decided and stiil use the String, so that I code fast, because my memory remembers by text not by the enum keyword I would have put instead...

My shif to unicode was because of many things :
I want to nable internationalization of the app. at least I want to be able to let arab chess players be able to send arabic characters in chat during chess play.
also the look of the app, differes when you change charSet to Unicode (something I do'nt understand)(for example the dialogs andbuttons)
also there was an unavoidable dependence on Unicode thirdparty libraries. liking to them with MBRS creates linking pbms.

Fianlly I recently have had a big big problem with MFC extension DLL :
as I was separating some UIs ibnto extension DLL, some drag and drop featuers and focus pbms happens when they are hosted in the MFC client app which MBRS. this was explained, but after resolving many pbm, it lokks that evrything works fine for me if I integrate that DLL inside a Unicode simple app.

I hope I explained to you the situatiuon and that now I look less incompetent.

Our Philosophy, Mohammed Baqir Al Sadr

QuestionCComboBox SelectString does not "copy to edit control" Pin
Vaclav_29-May-08 7:09
Vaclav_29-May-08 7:09 
AnswerRe: CComboBox SelectString does not "copy to edit control" Pin
Rajesh R Subramanian29-May-08 7:34
professionalRajesh R Subramanian29-May-08 7:34 
Question[Solved] Is MS Word MDI/SDI? How to implement it in VC6? Pin
followait29-May-08 6:51
followait29-May-08 6:51 
AnswerRe: Is MS Word MDI/SDI? How to implement it in VC6? Pin
CPallini29-May-08 7:37
mveCPallini29-May-08 7:37 
GeneralRe: Is MS Word MDI/SDI? How to implement it in VC6? Pin
Nelek29-May-08 8:20
protectorNelek29-May-08 8:20 
AnswerRe: Is MS Word MDI/SDI? How to implement it in VC6? Pin
Nelek29-May-08 8:22
protectorNelek29-May-08 8:22 
AnswerRe: [Solved] Is MS Word MDI/SDI? How to implement it in VC6? Pin
ShilpiP29-May-08 19:00
ShilpiP29-May-08 19:00 
Questionhow to calculate hessian matrix Pin
traelektro29-May-08 6:11
traelektro29-May-08 6:11 
Questionhow to calculate hessian matrix Pin
traelektro29-May-08 6:11
traelektro29-May-08 6:11 
QuestionRe: how to calculate hessian matrix Pin
CPallini29-May-08 7:34
mveCPallini29-May-08 7:34 
AnswerRe: how to calculate hessian matrix Pin
traelektro29-May-08 13:01
traelektro29-May-08 13:01 
GeneralRe: how to calculate hessian matrix Pin
CPallini29-May-08 21:46
mveCPallini29-May-08 21:46 
GeneralRe: how to calculate hessian matrix [modified] Pin
traelektro3-Jun-08 22:33
traelektro3-Jun-08 22:33 
QuestionAre you just mocking me? Pin
CPallini3-Jun-08 22:39
mveCPallini3-Jun-08 22:39 
JokeRe: I am not mocking you? Pin
traelektro3-Jun-08 23:09
traelektro3-Jun-08 23:09 
GeneralRe: I am not mocking you? Pin
CPallini3-Jun-08 23:17
mveCPallini3-Jun-08 23:17 
GeneralRe: I am not mocking you? Pin
traelektro3-Jun-08 23:55
traelektro3-Jun-08 23:55 

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.