|
given that this is the C++/MFC forum, why not look at CString::MakeReverse()
|
|
|
|
|
I think he was either inspired by my recent what-happened-at-the-interview stories in the lounge, or he's got an interview himself.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
dharani wrote: (*s) = (*end); <---- it throws exception here ....why ?
Why have you not bothered to use the debugger to answer such a question? By looking at the values of those variables as the program runs, you'll no doubt see exactly what is happening, and learn a valuable lesson along the way.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Where can I download msdn?What I downloaded can't be setup at all..
Thanks~
|
|
|
|
|
You need to buy it first.
If you want to waste your money, that's fine, but the msdn website is open to all.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
What John meant to say was, you can buy it or find it online here[^]
|
|
|
|
|
Hoho..Thanks a lot.What John said amazing me just now.
|
|
|
|
|
There is nothing as such free lunch!
// ♫ 99 little bugs in the code,
// 99 bugs in the code
// We fix a bug, compile it again
// 101 little bugs in the code ♫
|
|
|
|
|
|
Hi,
I am looking for an example how to create a thread using the library Boost. If someone have un code example that will be grateful.
Thanks
|
|
|
|
|
|
I want source of an application that nobody can kill or terminate it .
please help me as soon as possible ...
DMASTER
|
|
|
|
|
There's no such thing. To kill it, all they have to do is reboot the machine. Now what, Einstein?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John I assure you I could write an application that fits the requirements. As to whether or not YOU in particular would install it remains to be seen. To circumvent your reboot and application is killed scenario I just need to write a service and convince you to install it, IE nortons internet security.
|
|
|
|
|
Developer611 wrote: I want source of an application that nobody can kill or terminate it .
Training for a job application at a 'black hat' or a spam consortium?
Failure is not an option - it's built right in.
|
|
|
|
|
jhwurmbach wrote: Training for a job application at a 'black hat' or a spam consortium?
Maybe....but if the OP needs to ask that question, there is NO hope of success. Perhaps a career in the food service industry...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
Please can anybody let me know how to find the ethernet link light is glowing or not ?
Is there any api or any other work around to find out ?
sonani prakash
|
|
|
|
|
Use your Mk1 Eyeball.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
O M G I'm starting to think I'm not awake yet...
mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
How can I create file in NOKIA mobile phone memory disk? How can I create dirrectory in NOKIA mobile phone memory disk?
My mobile phone is Nokia N72. I can access its memory disk after I connect it wity my computer. Its directory is 'My Computer\\Nokia N72\\memorydisk\\'
I failed to access it with the following code:
CString csNokiaDir("My Computer");
bFindFile=finder.FindFile(csNokiaDir);
csNokiaDir = "My Computer\\Nokia N72";
bFindFile=finder.FindFile(csNokiaDir);
csNokiaDir = "My Computer\\Nokia N72\\memorydisk";
I get another directory by the following MFC code:
BROWSEINFO bi;
TCHAR Buffer[512]="";
TCHAR FullPath[512]="";
bi.hwndOwner = m_hWnd;
bi.pidlRoot = NULL;
bi.pszDisplayName = Buffer;
bi.lpszTitle = "Select directory";
bi.ulFlags = BIF_RETURNONLYFSDIRS|BIF_EDITBOX|BIF_BROWSEFORCOMPUTER ;
bi.lpfn = NULL; //回调函数,有时很有用
bi.lParam = 0;
bi.iImage = 0;
ITEMIDLIST* pidl = ::SHBrowseForFolder (&bi);
if(::SHGetPathFromIDList (pidl,FullPath))
{
m_sFonePath2 = FullPath;
}
The path I got is'::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{416651E4-9C3C-11D9-8BDE-F66BAD1E3F3A}\354533010872671\E:\'
I used FindFile to check it and failed again.
Does any one know how to handle this kind of directory?
|
|
|
|
|
i am guess the problem is with the use of "My computer" in your drive path. The nokia should have a drive letter designated with it and this should allow you to access it like any other drive, like "C:\", not "My computer\\C:\\" as I am guessing you are doing right now in your code!
As to what drive letter gets assigned to the nokia drive, I am not sure how you determine this at runtime with your application, so first step would be to get something hard-coded working =)
Yours Truly, The One and Only!
|
|
|
|
|
Have some one tried to generate MFC wrapper classes for excel interfaces? I read step-by-step tutorials on Microsoft site. Doing the same things, I'm getting 100's of errors.
The tutorials are here:
http://support.microsoft.com/kb/308407
http://support.microsoft.com/kb/307473/EN-US/
Errors looks like this:
Error 66 error C2011: 'Picture' : 'struct' type redefinition c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 19474
Error 67 error C2146: syntax error : missing ';' before identifier 'Scripts' c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20463
Error 68 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20463
Error 69 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20463
Error 70 error C2146: syntax error : missing ';' before identifier 'MailEnvelope' c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20511
Error 71 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20511
I tried in Excel 9,10,11,12 and the thigs are same.
Looks like compiler is working wrong, because there is nothing to code when generating a wraper, all code generating automatically. I don't know what to do.
THE QUESTION APPLIES ONLY TO VISUAL C++ 2005
Please help.
-- modified at 6:36 Thursday 26th July, 2007
|
|
|
|
|
hint, are you using the english tlh in a non english environment ?
|
|
|
|
|
No, enviroment is english, but Office and OS is russian.
|
|
|
|
|
What is the correct sintax to solve this specialization problem?
I'm trying but for now I have only errors while compiling or linking.
template<typename T> class CMyClass{
...
int Foo(){
}
double Foo(){
}
void Foo(){
}
...
}
Thanks to everyone
Russell
|
|
|
|
|
As far as I can remember you cannot declare function templates based on return value types.
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.
|
|
|
|