|
OK, thanks for answering, I don't think I can help you, I hope someone else can.
Ali
|
|
|
|
|
|
Just call DoModal [^] member function of the dialog in the, menu message handler.
|
|
|
|
|
Create another dialog class with the dialog resource of your dialog.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi,
I am working in VC++2008 environment, Please Could you tell me why when I use the following header file:
#include<graphics.h>;
the following error is appeard:
d:\work c++\alg_helbert\alg_helbert\df.cpp(53) : fatal error C1083: Cannot open include file: 'graphics.h': No such file or directory
I want to use the follwing functions:
setcolor Graphmode Textmode , lineto ……………!!!!
Thank you
thank you
soso
|
|
|
|
|
I think you are trying to compile the code, which was written using turbo c++ compiler? Because
anassamar wrote: 'graphics.h':
and
anassamar wrote: I want to use the follwing functions:
setcolor Graphmode Textmode , lineto ……………!!!!
are graphical functions and header file provided in turbo c++ compiler.
|
|
|
|
|
To add to Mohan Ramachandra's reply, this was a proprietary library for the DOS environment. In other words, this was a graphics library for use in DOS programs only, not Windows or anything else. It was also designed and provided by one company - it is not standard, is not a part of C, and not a part of C++.
While you certainly can do graphics for Windows, it is done differently. See here[^] for graphics stuff that is used with windows at the api level, though there is more in knowing when and how to use this stuff. Do note that normally in a windows program, one only draws to a window device context in response to a WM_PAINT message. (If you are using MFC, that would be in OnPaint or OnDraw. )
Graphics and display is different in Windows than it was in DOS. You have a lot of research and reading to do.
Good luck.
Please do not read this signature.
|
|
|
|
|
hi friends,
i am using Visual studio 6.0, Windows.
i dowload an opensource project "wput" :: Wput is a command-line ftp-client that looks like wget but instead of downloading, uploads files or whole directories to remote ftp-servers.
http://wput.sourceforge.net/[^]
as i compile the project i got tons of errors,
ftp-ls.c(40) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
unistd.h is not present anywhere in my system.
Any suggestions!
|
|
|
|
|
unistd.h is not present anywhere in my system.
thats why you are getting the error. Find out that file, and set the correct 'include path' in project settings.
|
|
|
|
|
Can you use the pre-compiled binary instead of compiling it?
"I'm willing to admit that I may not always be right, but I am never wrong." - Samuel Goldwyn
|
|
|
|
|
hi
i do not understand what you want to say?
can u explain little better
|
|
|
|
|
I want to say that in-order to use the functionality of wput can you just use the
binary file instead of compiling it? Or do you need to compile the source code?
"I'm willing to admit that I may not always be right, but I am never wrong." - Samuel Goldwyn
|
|
|
|
|
ok..
i need to compile the source code.
|
|
|
|
|
Have you read the INSTALL file that comes with the source package. It will have the information on how to
compile.
"I'm willing to admit that I may not always be right, but I am never wrong." - Samuel Goldwyn
|
|
|
|
|
Aabid wrote: ftp-ls.c(40) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
As the name suggest, unistd.h is a UNIX -like (maybe Linux ) specific header.
Have you read the compiling instruction on the project's home page?
(I guess you may compile it on Windows provided you use, for instance, Cygwin ).
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]
|
|
|
|
|
yes i tried to find out the instructions to compile but i didn`t find any info regarding compilation.
|
|
|
|
|
comment-out that line, see what happens.
|
|
|
|
|
Hi ,
I am using MessageBox function as
MessageBox(NULL,L"Please start application ",L"Test",MB_OK |MB_SYSTEMMODAL);
I want to show this message box always on top so that user have to close it first. When I use MB_SYSTEMMODAL to make it modal message,default blank icon is added into messageBox caption.
I want to messageBox as modal but without icon in caption. Is there any way to do this.?
Thanks
ABM
|
|
|
|
|
Please try this..
MessageBox(L"Please start application ",L"Test",MB_OK |MB_APPLMODAL);
|
|
|
|
|
IF I use MB_APPLMODAL style , messageBox get hided/minimize when user click on any other application.
Actually I am calling one application having above message from custom action in setup project.
|
|
|
|
|
Hope this one will help
MessageBox(NULL,L"Please start application ",L"Test",MB_OK |MB_TOPMOST);
MB_TOPMOST : Creates the message box with the WS_EX_TOPMOST window style.
|
|
|
|
|
yes Mohan, your code seems working..
|
|
|
|
|
|
Hi Mohan,
MB_TOPMOST property is ignored by vista. It is working fine on Windows XP,but not on Vista.
|
|
|
|
|
hi am,
I tested the code
MessageBox(L"Please start application ",L"Test",MB_OK |MB_TOPMOST|MB_APPLMODAL); on windows 7.
Its working fine for me.
If the above code is also not working for you, then create your own message box, by specifyng the Window Styles in CreateWindow()
|
|
|
|