|
You probably did not only copied the source but also some output files.
Try a complete rebuild to overwrite the copied output files. If this does not help, delete all files except the source and project files and rebuild.
|
|
|
|
|
Jochen Arndt wrote:
delete all files except the source and project files and rebuild.
I deleted the Program Database (.pdb) file. By all files you mean what other files?
|
|
|
|
|
All generated output files (all files in the output directories; e.g. the Debug and Release sub-directories) and (optionally) project generated files in the project directory (.aps, .ncb, .suo).
|
|
|
|
|
I've deleted not only the mentioned file but also the folders like Debug and Release. But the error remains as such. Can you tell me the error is due to
Service Pack or redistributable? I forgot to mention the VS version. VS 2005 on both the machines.
|
|
|
|
|
It seems that you are not the only one (try to Google for the error). You have multiple versions or the wrong mspdb80.dll.
See this Visual Studio Forum post[^].
|
|
|
|
|
Deleting mspdb80.dll file didn't work. It seems a virus problem. Will a repair install of VS2005 work?
|
|
|
|
|
Did you check if there are multiple versions on your new system? If so, see the forum post messages. A repair install might help.
A virus is rather unlikely. But if you have one on the system, the best solution is a clean re-install of the whole system.
|
|
|
|
|
Hi,
I am using a CRichEditCtrl with an almost black background and white text. The problem is that when I want to print the text, the printer tries to simulate the original screen colors. In my case, I would like to print with standard black text & white background. What i am doing now, is that : Before that print start, I change the control with the standard colors and after the end of the printing I revert to the original screen colors. The code seems like the following :
HideSelection(TRUE,FALSE);
SetEventMask(~ENM_CHANGE & GetEventMask());
int CurChar=CharFromPos(currentpos);
long len=GetTextLength();
SetSel(0 , len);
SetBackgroundColor(FALSE, RGB(255,255, 255));
SetColor(RGB(0,0,0));
SetSel(0 , len);
SetBackgroundColor(FALSE, RGB(61,61, 56));
SetColor(RGB(255,255,255));
SetSel(CurChar,CurChar);
SetEventMask(ENM_CHANGE | GetEventMask());
HideSelection(FALSE,FALSE);
The above code creates a flicker, especially if the pages to be printed are many. Is there any solution, like to halt visual updating of the CRichEditCtrl control for a specific period of time to avoid flicker ?
sdancer75
|
|
|
|
|
I'm not quite sure if this helps, but you may give it a try:
Call SetRedraw(0) just after HideSelection() and re-enable it before showing the selection.
This will prevent the screen from being updated with the control content while printing.
|
|
|
|
|
Try LockWindowUpdates() before the printing and UnlockWindowUpdates() after it
|
|
|
|
|
Thank you Andrew,
It worked just fine, but I was wondering if there is a solution using the CRichEditCtrl itself (that it would be a non quick & dirty method and the right way to solve the problem).
Best Regards,
sdancer75
|
|
|
|
|
Hello Everyone,
I have added 4 group Boxes on my Dialog based App and in Each Group there are 3 Radio Buttons.
According to the user's Selection, i want to get the combination of radio Buttons and Function according to the selection?
For Ex:- In one group Box there are 3 Radio Buttons say 600 DPI,
300 DPI and
150 DPI.
and same in the other Group Box. Suppose if user has selected 300 DPI in one Group Box and 150 DPI in Other Group Box. Then i want to know how to get that user has selected so and so combination.
I m using GetCheckedRadioButon(1stRadioID, LastRadioID) but m not getting anything from that?
Please help me Out.
|
|
|
|
|
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
|
|
|
|
|
Hello friends
MFc application (vs2010).
Menu Items are not showing and sometimes overwriting the Text of MenuItem.
Any Ideas? Is related with WM_DISPLAYCHNAGE ?
Regards
Yogesh Sikri
|
|
|
|
|
yogeshs wrote: MFc application (vs2010). SDI or MDI?
yogeshs wrote: Menu Items are not showing and sometimes overwriting the Text of MenuItem. If menu items are not being shown, how can they be overwritten?
When you created the app, did you opt for any sort of style or command bar?
"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
|
|
|
|
|
Applicaion is SDI.
SomeTimes MenuItems are not coming,and sometimes with overwritten Text or garbage Values.
App was Already Created,Convert to 2010.
thanks
|
|
|
|