|
Did you hear that whooshing sound? That was the sound of that link going completely over his head.
However I'd like to thank everyone in this thread for contributing to my mornings entertainment. I was feeling a bit down, and this gave me more than a few chuckles. Keep up the good work gentlemen!
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
VCF Blog
|
|
|
|
|
Jim Crafton wrote: However I'd like to thank everyone in this thread for contributing to my mornings entertainment. I was feeling a bit down, and this gave me more than a few chuckles.
Glad of: after all we're a happy brigade [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
rdop wrote: int nPos = FullPath.Find( _T('\\') );
Why do you use Find , instead of (suggested) ReverseFind ?
[added]
BTW since now the request is urgent, please feel free to visit
www.cpallini.freeproductz.com
to get the JITS (J ust I n T ime S olution).
[/added]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
modified on Friday, October 3, 2008 7:45 AM
|
|
|
|
|
I hope that you've read the entire thread. BTW, the query has now become an Urgnz one.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Its urgentzzzz plzzzz
May be you want to give him link to your magic site..
Regards,
Sandip.
|
|
|
|
|
I forgot about
Fixed!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
SandipG wrote: May be you want to give him link to your magic site
No no sir, he mustz learnz himself.
|
|
|
|
|
Michael Schubert wrote: No no sir, he mustz learnz himself.
Yes the magic site will help him to learn
You don't know about the magic site, do you?
Regards,
Sandip.
|
|
|
|
|
Never mind - and yes, I do know Carlo's magic site.
|
|
|
|
|
BTW Welcome to THHB THHB[^]
Regards,
Sandip.
|
|
|
|
|
And THHB stands for:
Thread Hijacking Happy Brigade.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Thanks for enlightening me!
|
|
|
|
|
Michael Schubert wrote: Thanks for enlightening me!
We aim to please.
BTW, this is just another crime of the THHB. Look how much it's been hijacked.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Rajesh R Subramanian wrote: Look how much it's been hijacked.
Combined efforts really pay off.
|
|
|
|
|
Hey! You and Sandip, evil guyz, are making be bouncing from this thread to my memberpage...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You've used this before. When are you going to actually register it?
Saying that, maybe the bandwidth bills would be too high, as we'd all refer people there!
Iain.
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Use ReverseFind() instead of Find().
CString DirPath;
CString FullPath = _T("C:\\abc\\cd\\as.txt");
int nPos = FullPath.ReverseFind( _T('\\') );
if( nPos >= 0 )
{
DirPath = FullPath.Mid( 0, nPos);
}
AfxMessageBox(DirPath);
|
|
|
|
|
rdop wrote: CString array[10]
Which will hold strings like:
array[0] = "This is string 1";
array[1] = "This is string 2";
array[2] = "This is string 3";
...
array[9] = "This is string 10"; Is that really what you intended?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Use PathRemoveFileSpec() .
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
hi all,
I am getting error C2061: syntax error : identifier 'string' at this code
std::string LoadInstaller(__in UINT nID, string tcItemText);
std::string LoadProduct(__in UINT nID);
std::string LoadInstaller(UINT nID , string tcItemText)
{
ATL::CString StrTable;
string InstallerKey;
InstallerKey = "";
StrTable.LoadStringA(IDS_ServiceRegEntry);
InstallerKey.append(StrTable.GetString());
StrTable.LoadStringA(IDS_LongProjectName);
InstallerKey.append(StrTable.GetString());
StrTable.LoadStringA(IDS_ServiceParam);
InstallerKey.append(StrTable.GetString());
InstallerKey.append("\\");
StrTable.LoadStringA(nID);
InstallerKey.append(StrTable.GetString());
InstallerKey.append("\\");
InstallerKey.append(tcItemText);
return InstallerKey;
}
std::string LoadProduct(UINT nID)
{
ATL::CString StrTable;
string ProductKey;
ProductKey = "";
StrTable.LoadStringA(IDS_ServiceRegEntry);
ProductKey.append(StrTable.GetString());
StrTable.LoadStringA(IDS_LongProjectName);
ProductKey.append(StrTable.GetString());
StrTable.LoadStringA(IDS_ServiceParam);
ProductKey.append(StrTable.GetString());
ProductKey.append("\\");
StrTable.LoadStringA(nID);
ProductKey.append(StrTable.GetString());
return ProductKey;
}
I have already included <string>, i dont know what seems to be the problem. Any Advice?
Thanks,
Jayjay
|
|
|
|
|
monsieur_jj wrote: I have already included
What have you already included?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You have forgotten the namespace std::string .
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
He probably has, but omitting the std namespace should have produced a C2065 error.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
It seems you need to include a header file.
|
|
|
|