|
Heart felt thanks, sir.
One more thing: Your's is just that damn good logic.
I must accept I have almost completely screwed up my basic c++ programming logic by staying with and relying heavily on the luxuries of MFC. I need to brush those stuff up back.
Aljechin Alexander
If space and time are related in some way, at what time and which dimension of the space did this relation occur? If the universe was created at some point of time, then does the time starts right from that point? Before that there was no time?
|
|
|
|
|
Thanks! It's mainly good old C. But it's still useful.
Kakan
|
|
|
|
|
It is not actually a best of doing it, it works but better way is possible.
I think you can actually optimise it.
-Prakash
-- modified at 2:26 Wednesday 4th January, 2006
|
|
|
|
|
Such as...?
As I said: "It's one way of doing it".
Of course, I know there are limitations, such as lack of Unicode support, no ATL, etc. etc.
But at least a gave the guy a solution to his problem. I haven't find another solution here, just a bunch of questions and vague suggestions how to solve the problem in question.
Anyone, feel totally free to give the guy a complete solution.
|
|
|
|
|
kakan wrote: I haven't find another solution here, just a bunch of questions and vague suggestions how to solve the problem in question.
True. Kakan actually gave me a solution that worked. I think i cannot expect him to give me the best optimised code at the begining itself, that too immediately.
Thanks to all
Aljechin Alexander
|
|
|
|
|
IMO, that's what this site is all about. Helping people, since noone has all the answers.
|
|
|
|
|
Aljechin wrote: True. Kakan actually gave me a solution that worked. I think i cannot expect him to give me the best optimised code at the begining itself, that too immediately.
Well I assumed you knew how to tokanise a zero seperated strings, quite basic thing to do.
-Prakash
|
|
|
|
|
I didnt say the solution is bad, All i wanted to point out that if you want to use the code for production code, then you have to optimise that code before using it.
-Prakash
|
|
|
|
|
Dude, can you optimise it?
|
|
|
|
|
Aljechin wrote: Dude, can you optimise it?
|
|
|
|
|
I can well optimise it, dont have the time.
Since you are asking for me to optimise it , i can understand that you dont want to spend too much effort on ur work.
-Prakash
-- modified at 3:39 Wednesday 4th January, 2006
|
|
|
|
|
I have optimised and modified the code to suit my need. I never meant to say that you don't know it, but I was trying to tell you gave me some idea, but Kakan gave me the same with a proper sample.
Many thanks for your time.
Aljechin
|
|
|
|
|
Aljechin wrote: I have optimised and modified the code to suit my need. I never meant to say that you don't know it, but I was trying to tell you gave me some idea, but Kakan gave me the same with a proper sample.
yes, kakan gave you the solution after we had couple of converstation to pinpoint the exact problem.
-Prakash
|
|
|
|
|
Ah, yes of course. If there was a start you gave it and you were the first to reply too. I thanked you there i think. full of gurus here. I'm a bit scared. I am good at chess, not at MFC. LOL.
Aljechin
|
|
|
|
|
See how looooooooooooong you all have been fighting.;P
Love Forgives--Love Gives--Jesus is Love <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Owner drawn wrote: See how looooooooooooong you all have been fighting.
I was not fighting
-Prakash
|
|
|
|
|
Did i hear someone saying the word fight? Who was fighting here?
Aljechin
|
|
|
|
|
Did you take note of the return value...
The return value is the number of characters copied to the buffer, not including the terminating null character.
So why don't you loop through the string instead of checking for NULL. This way you will get the full settings.
Here each string is seperated with a NULL char. So while looping you can replace these NULL chars with a semicolon or some special char.
Love Forgives--Love Gives--Jesus is Love <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Thanks sir, the problem is solved.
Aljechin Alexander
|
|
|
|
|
and a similar, but more simple solution:
TCHAR chpValue[32767];
int ret = GetPrivateProfileSection(_T("WorkingDirs"),chpValue,startLen,m_IniFileName);
TCHAR* pBuf = chpValue;
while (pBuf[0] != '\0') {
CString buf(pBuf);
// do something
int len = buf.GetLength();
pBuf += len+1;
}
|
|
|
|
|
Helly can any one please let me know any difference between MFC and VC++.
Interviewer asking me as that
1. Rating on VC++
2. Rating on MFC
3. Rating on COM
So does it mean that VC++ AND MFC are different?
Any conclusions please.
Great people does great things.
|
|
|
|
|
VC++ generally means that you know programming for windows OS. i.e using its SDK.
MFC - its is a Framework provided by microsoft to develop application quickly and in OOP way it is developed using VC++.
COM - Component object model is again a technology on MS world where both C/C++ can be used.
-Prakash
|
|
|
|
|
VC++ is a programming language that can create programs to run on any system(windows, UNIX, CE, palm, XBox etc), if you have the correct compiler for that system.
MFC is a tool to make programming easier, with much code being generated automatically(although I personally feel it's overly convoluted)
COM is a tool to allow use of code from other programs and other languages with relative ease. Eg with COM you can write a program in C++ or pascal(or any language that supports com) that allows you to have an Excel spreadsheet running in the middle of your program. COM & OLE are debatably the same thing, but I think they are both getting old now.
|
|
|
|
|
VC++ is not a language, C++ is a language.
VC++ is just a SDK to program on windows platform using C++ or C.
-Prakash
|
|
|
|
|
Difference between copy constructor and asignment operator?
Please let me know any one?
Great people does great things.
|
|
|
|