Well, bstr_t encapsulates BSTR strings, that, roughly speaking are OLECHAR *, finally OLECHAR are WCHAR, i.e. wide char. The point is: bstr_t represent a UNICODE string so, what is your problem? Could you please post the relevant code?
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
lol u asked for it i don't know how familiar you are with the CAPICOM functions but this is bascially the code and below is what i want the outcome to be:
sigData->Content = "Data to Sign";
_bstr_t sigStr = sigData->Sign(signer,true,CAPICOM_ENCODE_BASE64);
cout<<"\n\nVerified String: "<<sigData->Verify(sigStr, true, CAPICOM_VERIFY_SIGNATURE_ONLY)<<endl;
This code sets the content to be signed to "Data to Sign", and creates a hash with the signer's private key(can be displayed by cout<<sigStr;). in Verify function it should (it does in java) display the decrypted string (i.e "Data to Sign" on the console, whereas I'm getting a 0 on my end ). I read the article http://www.codeproject.com/KB/security/CapicomUTF8.aspx and it mentioned that fact that it wants unicode. uh... hope that helps you figure out what i'm trying to say...
ok i tried that (and _bstr_t(..)) still the verification is displaying a 0 i guess the cast(?) is fundamentally correct, but its still not giving me the expected output. I also looked at the excellent http://www.codeproject.com/KB/string/cppstringguide2.aspx for some new ideas but no luck darn this COM and the lack of help from Microsoft
You can call the ModifyStyle or ModifyStyleEx to update ur window styles dynamically.
Alternative is to use the SetWindowLong family of functions (as documented in MSDN)
to change the style byte values, and update the window accordingly.
Just be sure that your style values are compatible with the way ur using ur dialogs/forms.
Hi, I would like to know where can I find sample C++ application that can be vulnerable to attacks like buffer overflow, format string, intefer overflow ..etc...so that they will pron to Denial of service. I know what mistakes leads to these vulnerabilities but I would like to know how it will be applicable in terms of client / server technology (e.g. Web vulnerabilities). How an attacker can cause above mentioned attacks in C++ application. I would like to know the scenarios in C++ application. If anyone know this will be helpful.
Thanks for ur reply. This will give me what kind of attacks that C++ application can be vulenerable to but i want the scenario (C++ application) where these vulnerabilities can happen so I can simulate them in a programmed manner.
When i tried to create a Dialog class (vc++ 6), it gives an error called" Unable to open the files TestDialog.h and TestDialog.cpp" ( project name:Test)
i am getting the same error even creating a new class using class wizard.
That is a known ClassWizard error. It can usually be ignored, however. You might try closing Visual Studio, deleting the temporary files (e.g., opt, ncb, clw, aps, pch), and then re-opening the project.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
I don't understand why you are confused between the two.
I'm sure you understand what Set and Get means.
The only similarity is in the return value which is the previous or current window that has captured the mouse.
«_Superman_» I love work. It gives me something to do between weekends.
Last Visit: 31-Dec-99 19:00 Last Update: 6-Dec-22 0:23