C / C++ / MFC
|
|
 |

|
Group boxes might be causing the issue.
See here
You talk about Being HUMAN. I have it in my name
AnsHUMAN
|
|
|
|

|
Do you have the WS_GROUP style set correctly? That style should be set only for the first radio button in the group.
Anurag Kela wrote: I m using GetCheckedRadioButon(1stRadioID, LastRadioID) but m not getting anything from that? So it's returning 0?
"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
|
|
|
|

|
I'm assuming you're using an MFC based dialog application.
If this assumption is right, read on.
For the first radio button of each group, set its Group property to True.
Right click on this radio button and select Add Variable and create an integer variable.
The above step is only possible with a radio button whose Group property is set to True.
To get the user selection, simply call UpdateData() and the integer variable will contain the 0-based index of the selected radio button.
|
|
|
|

|
hi,
every one i have created the file using the createFile.
HANDLE temp_file = CreateFile(sourceFileName,GENERIC_WRITE|GENERIC_READ,/*FILE_SHARE_WRITE|FILE_SHARE_READ*/NULL,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_HIDDEN /*FILE_ATTRIBUTE_NORMAL*/,NULL);
in windows vista i have created but its getting deleted in windows 8 and windows xp .
what will be the reason .
Thanking you
Sarfaraz
|
|
|
|

|
FILE_ATTRIBUTE_HIDDEN .
Make sure you can view the hidden files!
|
|
|
|
|

|
sarfaraznawaz wrote: ...but its getting deleted in windows 8 and windows xp . Which means it is indeed getting created. At what point does the file get deleted?
"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
|
|
|
|

|
My application am creating the file.i am calling the exe for the preview of the file after closing the exe the file is getting dleted,its working fine on windows 7 and vista even am not use the delete file API not the exe which am calling has no dletefile API ...
what would be the problem ...
Best Regards
Sarfaraz
|
|
|
|

|
Make sure you call ::CloseHandle(temp_file) after you have done working with it
|
|
|
|

|
ya i am closing handle, if i not close the handle it unable open it its show the message that its has been in use ...
thats not the problem its getting deleted as i close the preview exe...
Best Regards
sarfaraz
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin