|
Make one of your own.
Code table here[^]
std::string MakeExceptionMessage(DWORD code)
{
std::string sTxt;
switch(code)
{
case EXCEPTION_ACCESS_VIOLATION:
sTxt = "The thread attempts to read from or write to a virtual address for which it does not have access.";
break;
}
return sTxt;
}
Maxwell Chen
|
|
|
|
|
Is there system functions like FormatMessage?
I've got e.g. 0xC06D007E SEH which is failed to load Dll module I do not know if that code is available in defines?
VS provides such formatting for every SEH in debug output window, I wonder it uses system function call to format message?
Чесноков
|
|
|
|
|
read my signature
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
|
|
But I posted in the question it returns ERROR_MUI_FILE_NOT_FOUND in my case for any SEH code.
Does it need something added to my console application?
Чесноков
|
|
|
|
|
|
Hi ..
In one of my interview question.i was asked a question to print.If the input given is 5..The output must be..
*
* *
* * *
* * * *
* * * * *
I wrote a function as..
for(i=0;i<5;i++)
{
for(j=o;j<=i;j++)
printf("%d",j);
}
printf(" ");
The output is coming as
*
**
***
****
*****
I wanted as above..can anyone help me
Hi,,
I am sharan.
I have Completed my B.E(COmputers)in 2009.
thanking you
sharan
|
|
|
|
|
sharanu wrote: I wrote a function as..
for(i=0;i<5;i++)
{
for(j=o;j<=i;j++)
printf("%d",j);
}
printf(" ");
The output is coming as
*
**
***
****
*****
You're wrong: the output of your function (with 'o' bug fixed) is:
00101201230123401234
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
[My articles]
|
|
|
|
|
thanks for ur reply sir..i am sorry..
plzreplace the printf("%d",j); as printf("*");
i think i am correct now
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
Please don't take it bad, but... with that signature and asking such a question?
Shame that I can't vote from work.
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Nelek wrote: Please don't take it bad, but... with that signature and asking such a question?
Ditto.
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
[My articles]
|
|
|
|
|
This can be written as the below.
for(int i = 0; i < 5; i++) { for(int j = 0; j <= i; j++) printf("* "); printf("\n"); }
Maxwell Chen
|
|
|
|
|
look at the right code
for(int i=0;i<5;i++)
{
for(int j=0;j<5;j++)
{
if(j>i)
printf(" ");
else
printf("*");
}
printf("\n");
}
|
|
|
|
|
in your biography stands: "Working as a software engineer in Indo-FUji COmpany"
I cant believe that if i see your question
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
But haven't you heard, those folks are programming gods?
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
That's why software engineer positions were drained out. I hope companies can tell if an applicant is really good or just one of these "programming gods" like this.
|
|
|
|
|
I want to display my dialog in upperpart of screen.So, i use SetWindowPos() in OnInitDialog().
But it doesnot work.It display the dialopg in centre of the screen.
BOOL CMFCButtonDlg::OnInitDialog()
{
CDialog::OnInitDialog();
SetWindowPos(&CWnd::wndTopMost,0,0,100,1000,SWP_NOSIZE);
return TRUE; // return TRUE unless you set the focus to a control
}
Wats my mistake?
Anu
|
|
|
|
|
Confirm you haven't clicked the 'center window' property of the dialog.
|
|
|
|
|
|
you can try
MoveWindow function
|
|
|
|
|
The Window is placed in the default position by the MFC framework after the OnInitDialog function has been called. So placing SetWindowPos in the OnInitDialog function is no good.
Create a custom message and map it to a function using the ON_MESSAGE macro.
In the mapped function put the SetWindowPos function call.
At the end of the OnInitDialog function, do a PostMessage for the custom message.
|
|
|
|
|
You have to override WM_WINDOWPOSCHANGING and place your SetWindowPos there:
void YourDlg::OnWindowPosChanging(WINDOWPOS FAR* lpwndpos)
{
CDialog::OnWindowPosChanging(lpwndpos);
SetWindowPos(&CWnd::wndTopMost,0,0,100,1000,SWP_NOSIZE);
}
|
|
|
|
|
Perfectly working..Thank you so much...
Anu
|
|
|
|
|
Hi...
Hi...
I am having a file in C:\\Test.txt. If i click a button that file have to open in window. This is not for read or write. To show the file like if we double click the file.
if you know please help me.
thanks...
G.Paulraj
|
|
|
|