|
djrasa wrote: fatal error C1075: end of file found before the left brace '{' at 'c:\users\dingleberry\documents\visual studio 2005\projects\practice3\practice3\p3.cpp(59)' was matched
You have unmatched '{' and '}'.
Set the Cursor next to the '{' indicated Line 59, you can go there using CTRL-G
Press CTRL-{. The cursor jumps to the (wrong) matching brace.
Look where this brace should be closed.
Fix the missing bracket.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
From the error message, you're missing a {} bracket somewhere.
If good/handy indentation doesn't help you spot it, you can put the cursor
by brackets and and hit Ctrl-} and the cursor will go to the matching bracket.
Good luck,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Way to help this guy with his compiler error! I'm sure he will be back with more unless of course he never gets another one.
led mike
|
|
|
|
|
|
Thank you mark, could not of done it without you!
|
|
|
|
|
For this kind of issue, I suggest you to implement some more functions to make the code more elegant and more readable. And you will get the bonus that the distance between { and } is shorter, easier to find a missing } .
For example:
int main()
{
PrintWelcome();
if(! Deserialize(InputData, N)) {
PrintError();
return -1;
}
PrintRaws(Order_Algorithm(n));
DoTheMainLoop();
return 0;
}
void PrintWelcome()
{
printf("Get your letter game! \n");
}
Maxwell Chen
|
|
|
|
|
Thank You to all for the help. was not aware(obviously) of the ctrl-} tool.
VERY, VERY, VERY, VERY HELPFUL
|
|
|
|
|
How to repaint window in VC++ so that while scrolling the displayed image it can be viewed properly?
|
|
|
|
|
I usually use InvalidateRect(hwnd,0,0)
You can use a rect as the second parameter if you want to make it more efficient.
rotter
|
|
|
|
|
Did you use of void Invalidate(BOOL bErase = TRUE );?
|
|
|
|
|
Visual C++ 2003, MFC Doc/View wizard generated application.
I've noticed some keypressed actions never make it to the view if the control key is pressed even if no accelerator is defined for the key combination.
I'm looking to check the state of the control key when I get a nChar equivalent to VK_TAB either in WM_CHAR or WM_KEYDOWN or both. However, neither WM_KEYDOWN or WM_CHAR are received when control and tab are pressed.
If I need to detect the control key with GetKeyState(VK_CONTROL) using the WM_KEYDOWN message in MFC, do I need to set up an accelerator to get the WM_KEYDOWN?
modified on Friday, February 22, 2008 10:18 AM
|
|
|
|
|
Ctrl-Tab is a mini version of Alt-Tab which switches between applications. So, you might want to check the accelerators you already have to make sure that it's not being turn into (eg) ID_WINDOWNEXT that your MainFrame is handling?
Just a thought...
Iain.
Iain Clarke appearing in spite of being begged not to by CPallini.
|
|
|
|
|
That was it. It's switching between views in the MDI frame.
Thanks for the help.
|
|
|
|
|
yes, as Iain clarke already told.
u can capture the WM_KEYDOWN message for ctrl + TAB if u override the CYourView::PreTranslateMessage(), and i checked also.
|
|
|
|
|
|
Hello experts!
How can I prevent an application from shutting down by the Task Manager's
End Task facility.
Any Ideas please.
Thx in Advance.
ritz1234
|
|
|
|
|
ritz1234 wrote: How can I prevent an application from shutting down by the Task Manager's
End Task facility.
On a robust OS the above should not be possible. Anyway it would be, at least, unpolite.
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
|
|
|
|
|
Then how can some application can't be forcebly shutdown by the task manager.
ritz1234
|
|
|
|
|
Serivces, maybe, but you can stop services using Administration Tools.
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
|
|
|
|
|
Any ideas or articles for writing this type of services that can't be stop.
ritz1234
|
|
|
|
|
Nope. Services actually can be stopped.
And it is definitely a bad idea.
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
|
|
|
|
|
CPallini wrote: On a robust OS the above should not be possible.
Are you saying windws isn't robust?
Even not well designed? Overladden with historic ballast to a point where even Microsoft seems to be unable to fix it in time (Vista delay!)?
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
jhwurmbach wrote: Are you saying windws isn't robust?
I'm saying quite the opposite. Windows has become, since NT, more robust.
jhwurmbach wrote: Even not well designed?
Nope, I think it is well designed (BTW I think exactly the same way about Linux).
jhwurmbach wrote: Overladden with historic ballast to a point where even Microsoft seems to be unable to fix it in time (Vista delay!)?
Well this maybe controversial, but, in fact, backward compatibility has been an Intel and Microsoft winning point.
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
|
|
|
|
|
Why would you ever wanted to do this ?
Anyway, pulling the plug of the computer will shutdown the application.
|
|
|
|
|
That's not an answer.
ritz1234
|
|
|
|