|
Hi there,
i open a DOS-Console in a MFC-Application, by launching wmain(0,0);
But i don't get a Console-Window, how is it possible to open a console window
apart of creating a new process or something like this.
Big thanks
PS: a printf does entry the chars into stdout, that works ...
|
|
|
|
|
Your question is unclear. Are you wanting to start one process from another?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks for your help temptation
No, i wanted to open a ConsoleWindow from out a Window
I made it via AllocConsole, than i had the problem that a printf does not write into the console.
This problem i solved with this code :
int hCrt, i;
FILE *hf;
hCrt = _open_osfhandle((long) GetStdHandle(STD_OUTPUT_HANDLE), _O_TEXT);
hf = _fdopen( hCrt, "w" );
*stdout = *hf;
i = setvbuf( stdout, NULL, _IONBF, 0 );
But at the moment i have still a problem during writing text via PDCurses, it won't be displayed into
the console.
A make a "mutation of the Console-Project, where a MFC Window-Application start new processes and redirect the output to his View.
In my case i add to the MFC-Project a whole Win32-DOS-Project and start the Main-Function via calling the _main
( the DOS-Application should not be launched as a new process, to keep the possibility to interact
the MFC Application with the DOS-Application ( via Message ) )
I hope you can understand my idea
Do you know the application of several DOS-Consoles into different Tab's ?
Greetings
|
|
|
|
|
How can i obtain the ip address of a user chatting in yahoo messenger
|
|
|
|
|
This is a VC++ forum, but not for Hacking. If u wanna that... good luck by self learning
Greetings.
--------
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?
|
|
|
|
|
Nelek wrote: good luck by self learning
I think it was a good answer.
Sometimes I want to ask this question but I forgot,did your problem solve ?I think you have a problem on your project?
|
|
|
|
|
You can't. Yahoo's IM server does not pass that information on to you.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
There are some codes:
while(iter != vectVltSvrName.end())
{
EstablishBinding((*iter).c_str(), END_POINT);
int nSize = 255;
char chServerDir[255] = "";
RpcTryExcept
{
GetServerDir(nSize,(unsigned char*) chServerDir);
}
RpcExcept(DO_EXCEPTION)
{
*Ret = ERR_NONE;
*bIs = FALSE;
goto Label;
}
RpcEndExcept
iter ++;
}
why VC2005 would tell me such error:error 141 error C2712: Cannot use __try in functions that require object unwinding e:\work\olework\sm50_neui\program\lckernel\lcobject.cpp 7438
and how should I resolve it?I do not know if I should remove the exception all change it to try{}catch(...){}
Thanks.
GOOD LUCK!
|
|
|
|
|
have you read this[^] ?
hint: compile with /Gx-
|
|
|
|
|
I am reading it now.
Thanks.
But I don't know how to set such options!
And would you tell me there are some ways to exchange somethings real-time,such as icq?
Thanks very much
|
|
|
|
|
go to your project settings... there you'll find off the compilation parameters... one corresponds to the /Gx-
|
|
|
|
|
I am so sorry that I remain could not find such setting.
Perhaps,I forgot to tell you that I use VC2005.
Thank you all the same.
Best wishes.
|
|
|
|
|
I am reading it now.
Thanks.
But I don't know how to set such options!
And would you tell me there are some groups to exchange somethings real-time,how to do this?
Thanks very much
|
|
|
|
|
Oh,I had set /GX-
but the error also remain.
|
|
|
|
|
|
How to set new icon in console program?
Juri Neidlin
|
|
|
|
|
Where do you want to set the icon? In the console window(don't think it would be possible) or for it's caption?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I want to set the my own icon in the caption, only in the caption
Juri Neidlin
|
|
|
|
|
Hi
I want to develop a new vc++(vc 8.0) programme in form view .on that the form must be without Maximize,Minimize,Title Bar and file menu all things.
I want a plain dialog window with out any thing on that, in maximize format.
Awaiting for your suggestion
Regards
shakumar
shakumar
|
|
|
|
|
Hi,
- In your resource editor, open the properties of your CForm and unable the Minimize, Maximize (I think you can't avoid the "close" button)
- In your CMainFrm look for
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
and override it
hoep it helps
Greetings.
--------
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?
|
|
|
|
|
You can send WS_MAXIMIZE to window.
|
|
|
|
|
Hi All,
I am using ListBox control on dialog box in which I am displaying jpeg images in single column. My requirement is to display .jpeg images in row wise pattern.So if anybody have some hint or any solution to this then please send it to me.
Thanks and Regards
Atul Mahajan
|
|
|
|
|
Hi All,
I am using VC++6.0 for my project, in which i want to change default position of dialog window. I tried SetWindowPos function in OnInitDialog() of PropertySheet class but it does not reflect any change in Dialog position. Please give me hint about this.
Thanks And Regards
Atul Mahajan
|
|
|
|
|
Override WM_MOVE and set X Y pos
|
|
|
|
|
after using SHGetDesktopFolder to get an IShellFolder object, how can i get the corresponding item id of this folder, without this, i can't get icon of desktop?
|
|
|
|