You are using the _T() macro in some places to ensure your strings are correctly created as ASCII or Unicode. However, further down you are using the (LPCTSTR) cast. This means that your code should not even compile in Unicode mode. You also failed to tell us what the exception is that you are seeing.
So you think that randomly changing some strings to Unicode will fix the problem? My comment was made in the hope that you would actually think about what you are trying to do and whether your various parameters are correct. Read the documentation[^] and look more closely at the requirements for the different parameters on the CFIleDialog class.
You should also learn the difference between the _T() macro and the L prefix on strings. And finally you need to understand exactly what a cast, such as (LPCTSTR), does and how it affects the way your program runs.
When the user clicks the OK button, they are expecting to be done, not be presented with yet another dialog box. The OK button should not be available to click until all required information has been collected. It sounds like what you need is a Browse button to allow browsing for the file name.
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
one paramter as everybody was telling me I have problems wih my parms
So why not take my advice, read the documentation, and fix the incorrect parameters? Unless and until you properly address the things that are obviously incorrect you are not going to make any progress finding the problem.
The program takes the input of an initial keyand an initial
vector, reads the plaintext or ciphertext from a file, conducts the encryption or
decryption, and writes the resulting ciphertext or plaintext into a second file.
test caseisas follows: using a binary initialization vector of10101010, a binary plaintext
of0000000100100011 encrypted with a binarykeyof0111111101 should give a binary
ciphertext of1111010000001011. Decryption should work correspondingly.
We have implemented the functionality of "What's this" help button in our MFC code.
When select "What's this" help menu and press any control then help is displayed properly; but while click on the buttons of the toolbar, windows message
"Windows.hlp file is not found. Will you locate /specify the file by yourself" with Yes and No button appeared.
After some time message disappears automatically.
And We also do not found windows.hlp at our system.
We have facing this issue at windows 7 (KB917607 is applied) and at windows XP while trying to display the help message at same toolbar button help displayed successfully.
Software developer with 10 years experience in developing desktop applications using C/C++,VC++,Qt,OpenGL for CAD/CAM/CAE/CFD applications. Call Sujan @ +91-8420921887/+91-9163437906. skype: 'sujan.dasmahapatra' , email : 'email@example.com'