|
CPallini wrote: Am I wrong?
It works. Give it a go.
"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
|
|
|
|
|
Have you made a test of his snippet, with the double 'double quotes'?
Have you really assigned a FILE pointer to a CFile * variable?
Does it work?
I'll try.
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]
|
|
|
|
|
CPallini wrote: Have you made a test of his snippet, with the double 'double quotes'?
Yes, sort of.
CPallini wrote: Have you really assigned a FILE pointer to a CFile * variable?
No, I totally overlooked that part. I just assumed it was being assigned to a FILE* . Mark that as another thing I would not do.
"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
|
|
|
|
|
DavidCrow wrote: CPallini wrote:
Have you made a test of his snippet, with the double 'double quotes'?
Yes.
Well, hence you know it doesn't compile (with the duplcate startin double quotes), at least on VC6.
DavidCrow wrote: CPallini wrote:
Have you really assigned a FILE pointer to a CFile * variable?
No.
I had no doubt about. It obviously doesn't even compile.
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]
|
|
|
|
|
Prior to using CFile , this worked fine:
FILE *pFile = fopen("C:\\Documents and Settings\\davidc\\My Documents\\\\LotusInstall.log", "a+");
fprintf(pFile, ...);
fclose(pFile); Trying to assign fopen() 's return value to a CFile object, rather than a CStdioFile object, is what the compiler is complaining about.
"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
|
|
|
|
|
Yeah, I made a test, following your advice. It seems you can put the double slash almosta anywhere...
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]
|
|
|
|
|
Sorry to hurt you!
i am sorry to say that " i wasted my time"
yesterday i was in some tension as my code was not working, so i replied in that dirty manner!
i am really sorry!
thanks for testing my code snippet!
there might be some problem in my code, i shall check it!!
bye..
|
|
|
|
|
Oh, don't worry about, I was, as usual, a bit sarcastic.
You're welcome.
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]
|
|
|
|
|
And what are you doing with this
kapardhi wrote: ""c:\\Documents and Settings\\Kapardhi\\Desktop\\Oct22\\\\TRY.log";
?
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]
|
|
|
|
|
At the end there are \\\\ i.e computer takes as
"c:\Documents and Settings\Kapardhi\Desktop\Oct22\\MyTry.log"
this"\\" implies any string before "\\" is path, and string after "\\" is the name of the file to be created
|
|
|
|
|
kapardhi wrote: this"\\" implies any string before "\\" is path, and string after "\\" is the name of the file to be created
The above is wrong.
Anyway the pathname is valid, I was wrong about.
That's said, your code snippet is a bit naïf (euphemism), why are you assigning a FILE pointer to
a CFile * variable?
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]
|
|
|
|
|
hay all,
how to read the DLL file, read the functionality and edit it how.
give the solution plz.
Regard's
Mathy's
|
|
|
|
|
Acting on the library source files.
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]
|
|
|
|
|
What the hell are you trying to do ?
If you want to modify the dll, you need to have the source file, modify them and rebuild your dll. You can't just 'edit' a dll like that.
|
|
|
|
|
mind the word's to use,understand my que? first.
i know how to edit the source and rebuild it.
but i want to read the source code through Dll how.
Regard's
Mathy's
|
|
|
|
|
Thanks for downvoting me
mathy wrote: but i want to read the source code through Dll how.
As I already told you in my previous message, it is not possible, even if you don't like it. If you don't have the sources of the dll, you can't modify your dll. It is the same as with an executable, you can't just edit a program like that without having the sources.
|
|
|
|
|
Re: Any way to decompile C++ Exe/DLL of device application
No. You can't turn hamburger back into the cow.
They said it there For more details, see here:
http://www.codeguru.com/forum/showthread.php?t=441352[^]
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
I need to check in Run Time if in current machine that execute my application (exe file) has an active microphone.
How can i do it ?
Thanks
|
|
|
|
|
Yanshof wrote: How can i do it ?
Maybe with another post?
BTW what about a webcam pointing to the microphone plug (you will need also a 'jack detection' software)?
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 Wednesday, October 22, 2008 9:40 AM
|
|
|
|
|
|
Yanshof wrote: How can i do it ?
Unless you have hardware that has a specific way of
determining this, you can't.
No sound hardware I've ever used was able to detect if a mic
is plugged in or not.
You could iterate through the available audio input devices
and "listen" for background noise or something.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
How come my DELL Inspiron B130 detects device when I plug something in the microphone plug and shows a dialog? And also how come my Skype understands when a microphone is plugged in or out ?
|
|
|
|
|
USB device? If so, USB devices are generally recognized
when they are plugged in.
1/8" mini-plug into a sound card? If so, then unless the
sound hardware has a mechanism to recognize a plugged in microphone
then I stand by my previous reply.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I need to check in Run Time if in current machine that execute my application (exe file) has an active microphone.
How can i do it ?
Thanks
|
|
|
|
|
Hi
I wrote a program with vc6 which when clicked on a file;
the path of it returns to output,
So I want to do this to return the directory of file,
Does anyone know how can I do that and in which class I could return directory?
Please mail me the answer,
My mail is: mhghaeminia@yahoo.com
Thanks
|
|
|
|