|
hello friends,
i am an engg. student.
i ma building an data encrypter and decrypter application in c. I want to use some algo. .
after searching on net i came to know about AES algo. I tried to learn from net but i just can't get i bit in y mind.
please help me friends . can anyone tell me how aes works using some example in a simple way.
please let me know if there are other algo present for text file encryption and decryption.
|
|
|
|
|
|
Hi
I am trying to send a Message to my Internet Explorer Window.I got the handle and able to maximize the window but unable to send message.
Can anyone tell me if something is wrong in SendMessage call below?Is the message queued?Send message should wait until the message is processed right?
int _tmain(int argc, _TCHAR* argv[])
{
HWND hwnd=FindWindow(L"IEFrame",NULL);
if(NULL != hwnd)
{
printf("\n Retrieved the window handle \n");
ShowWindow(hwnd,SW_MAXIMIZE);
LRESULT lr=SendMessage(hwnd,WM_RBUTTONDOWN,NULL,NULL);
if(lr == 0)
{
printf(" \n Message Sent \n");
}
else
{
printf("\n Failed to send message \n");
}
}
else
{
printf("\n Failed to retrieve handle \n");
}
return 0;
}
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
It might be that MSIE doesn't respond to WM_RBUTTONDOWN the way you hope. For all we know, it could be hooking in to some interrupt table or using a proprietary driver or ... Chances are that the handling of WM_RBUTTONDOWN is guarded by if(GetFocus() != this->m_hWnd) ... or similar.
[EDIT] I just assumed that you've already tried with complete arguments (WPARAM/LPARAM ) to the message?
modified on Thursday, April 21, 2011 7:47 AM
|
|
|
|
|
You're probably sending the message to the wrong window handle.
IE's window hierarchy is quite complex.
Use spy to get handles of the child windows and try sending the message to the child windows to figure out which window responds as you expect.
As for SendMessage waiting till the message is processed, an application can use ReplyMessage to override this.
|
|
|
|
|
«_Superman_» wrote: Use spy to get handles of the child windows and try sending the message to the child windows to figure out which window responds as you expect.
Yes,I used Spy++ to get the handle of window.The window is being maximized when using ShowWindow but looks like no messages are being posted.
Also as replied by "Mattias G" above this reply, i gave coordinates in WPARAM/LPRAM - SendMessage(hwnd,WM_RBUTTONDOWN,100,100) but to no avail.
I will try to send messages to child windows (Maybe webpage inside browser) and verify.
Thanks for the reply !
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
Probably you need to get IWebBrowser2 [^] Interface and then from there you need to figure it out how to get window handle you are looking for.
I hope there is only one "IFrame" Window in the Spy++.
|
|
|
|
|
i want to drag and drop image in single list control
|
|
|
|
|
|
hai all,
void test() {
RSA * rsa = RSA_new();
}
Am try to build a sample openssl code, using rsa.h in MSVS2008, when i build a project i get a following link error.
Error 11 error LNK2019: unresolved external symbol RSA_new referenced in function "public: int __cdecl .......................
Note:
I have already added the libraries libeay32.lib and ssleay32.lib, but still i getting the link error.
any help pls....
Best Regard's
Mathy's
|
|
|
|
|
|
Hai venkatmakam,
Thankx for your response, i try this link and use it the win32 openssl and install it my PC.
it is compiled without error on a win32 project , if i using the same way in windows mobile application am getting the same LNK error.
any other way is there.....
Best Regard's
Mathy's
|
|
|
|
|
SHFILEINFO sInfo;
ZeroMemory(&sInfo,sizeof(sInfo));
SHGetFileInfo(csFileType, FILE_ATTRIBUTE_NORMAL, &sfi, sizeof(sfi), SHGFI_USEFILEATTRIBUTES | SHGFI_ICON);
if (sInfo.hIcon)
DestroyIcon(sInfo.hIcon);
the value of csFileType is .zip .bak .txt or other file type. I debug the program, the value of sInfo.iIcon is 5, 4, or 7
If use this API SHGetFileInfo, need it do any initialize operation ?
|
|
|
|
|
First thing that strike me is that your SHFILEINFO is sInfo and you pass sfi. How did you get the value of sInfo ??
I believe in LOVE AT FIRST SIGHT...
Bcoz I have loved my Mother...
even since I opened my eyes...(ICAN)
|
|
|
|
|
The sfi should be sInfo. I wrong modify it when paste the code to codeproject.
|
|
|
|
|
Hi all,
I have transferred development of an old VC++6 program on an XP machine to VS2005 on a Windows 7 64-bit machine, and the program now falls over when loading files saved on a shared network drive. I have tracked it down to a call to GetVolumeInformation() during the file open procedure when clicking on an entry in the MRU list. This works fine if I call it manually with a UNC path but not if I use a path containing the network drive letter.
Any suggestions how to overcome this so that it works with a network drive letter as well?
The network drive letter was set up manually on my machine, might it need setting up through Group Policy instead?
TIA.
|
|
|
|
|
How are you calling GetVolumeInformation() ? What does GetLastError() return?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
It returns error 3: ERROR_PATH_NOT_FOUND : The system cannot find the path specified.
I can see the mapped drive in My Computer and can browse to it.
|
|
|
|
|
AFAIK letter mapping is an individual thing, what you define as a mapping will not be available to other accounts.
I suggest you get your code to check the known drive letters; WMI class Win32_LogicalDiskToPartition would be one way to do so.
If that is the problem, you might have your code perform its own mapping.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Unfortunately the call to GetVolumeInformation() is buried in the MFC MRU handling code so I can't change it! Also I'm running it on my own machine so the mapping definitely exists.
If it is a problem between Windows 7 and SBS2003 then I might have to code my own handler...sigh.
|
|
|
|
|
How to transfer Cstring type like : 6.591E+02 to float type.
exmple :
Cstring a="6.591E+02";
float b;
and i want b=6.591E+02.I work with MFC.Thanks.
|
|
|
|
|
See atof()[^]
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
I also used atof(),but with atof() parameter in atof()function is char * but my string is Cstring.
|
|
|
|
|
If you're doing a Unicode build, you could use _ttof() and otherwise atof() will work. For example, this code will work for an MBCS build:
double df = 0;
CString str = "6.591E+02";
df = atof(str);
Hint: CString has the LPCTSTR operator defined, so the conversion will be done automatically.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|