|
Hi !!
Does anyone know about the tiffio library ? I need it to use a tiff reader for Qt, but cannot find (even after many searches on the net) the files needed....
Thank you for your help,
Jerome
|
|
|
|
|
|
any time you need to find a ceratin .h file, do this:
go to your favorite search engine (www.google = the best)
do a search for "index *.h"
but replace the * with your h file name.
Ie, to find tiffio.h i would go to google, and type in
index tiffio.h
and browse the results.
*.*
cin >> knowledge;
|
|
|
|
|
Ok, i give up. I've written the code for a password dialog box in MFC. everything works just dadndy, except when the user enters his/her password, the actual letters show up.
How to i get the asteric thingies? lol, i did a lot of googling and found some stuff on CPasswordDlg, but um, thats confusing.
any help?
*.*
cin >> knowledge;
|
|
|
|
|
Add the style 'ES_PASSWORD' to the edit box where the user enters a password.
Chris Meech
"what makes CP different is the people and sense of community, things people will only discover if they join up and join in." Christian Graus Nov 14, 2002.
Oh and for those that ask programming questions in the lounge. Seek the truth here[^].
|
|
|
|
|
hah! i knew it was something simple. thank you sir!
*.*
cin >> knowledge;
|
|
|
|
|
hey Keegan
have u designed the dialog box if yes then know u have the edit control in which the user is gng to enter the key word i.e the password. now what u have to do is just right click the edit control select the properties and then go to the style tab just click the password check box after that u will automatically see the char entered as ****
ok bye
TAKE CARE
Thanx
TAKE CARE
|
|
|
|
|
Hi,
I am trying to 'enable/disable' and 'check/uncheck' a button on the Toolbar.
I send a message from the view class to indicate that the button must change and in CMainFrame I try to change it. These are the two lines of code.
m_wndToolBar.GetToolBarCtrl().PressButton(ID_BUTTON_OVERLAY_TRACES,bCheck);<br />
m_wndToolBar.GetToolBarCtrl().EnableButton(ID_BUTTON_OVERLAY_TRACES,bEnable);
The PressButton function works (ie the button goes in / out) but the EnableButton doesn't do anything!
I can see the varaible bEnable change and I have tried it with fixed values TRUE and FALSE, but nothing happens. EnableButton returns 1, so it thinks it has been successfull. Any ideas?
Cheers,
Ali
|
|
|
|
|
Your enable is probably being lost next time it's idle, due to MFC's built-in UI update facilities.
If this is a toolbar associated with your frame, in a document/view application, use the ON_UPDATE_COMMAND_UI support to enable or disable the button.
If MFC doesn't find an ON_UPDATE_COMMAND_UI handler, it will enable or disable the button based on whether there's an ON_COMMAND handler for the command.
|
|
|
|
|
It all makes sense now, thanks for the help. After I posted my question I could actually see the button being disabled sometimes, then being enabled back again, so I knew I was disabling it!
I've added the ON_UPDATE_COMMAND_UI handler and now buttons are greying nicely (rather like myself!). Thanks again for the help ,
Ali
|
|
|
|
|
how can i run chage the size of an HTML Help window.
i mean i am using Html Help in my VC application .
few pages contain very less info to display so i want ot reduce the size of window and if the conatin is more then the size should increase can any one help me in solving this bug
Thanx
TAKE CARE
|
|
|
|
|
HH_WINTYPE WinType ;<br />
memset(&WinType,0,sizeof(WinType));<br />
WinType.cbStruct = sizeof(WinType);<br />
<br />
<br />
RECT wndPos ;<br />
wndPos.top = 20;<br />
wndPos.left = 10;<br />
wndPos.right = 620;<br />
wndPos.bottom = 410;<br />
<br />
WinType.rcWindowPos = wndPos;<br />
<br />
HtmlHelp(0,"hh4mfc.chm",HH_SET_WIN_TYPE,(DWORD)&WinType) ;
Hope this helps.
Melwyn
|
|
|
|
|
There are like 300 computers in my company has DOS 6.22 installed, nothing but DOS 6.22, and they will not be upgraded to any other OS in the near future. Now I need to write a program for them, I did not find any option in VC++ 6 that would allow me to write a pure DOS application, so I'm stuck...
Any suggestion other than "use Borland C++ instead"(I really, really dislike Borland, a code editor that does not allow mouse-scroll? what the hell?)? Thanks.
|
|
|
|
|
dos is a 16 bit OS, vc++ 6 uses the windows 32 bit interface...
the only way i was able to write code for dos machines a month ago was by finding a really old computer with turbo C 1.1 on it (from 1994, heh). :-/ unless theres some other way...
*.*
cin >> knowledge;
|
|
|
|
|
The last version of Visual C++ which could generate DOS or Win16 executables was version 1.52, IIRC.
I think you can still obtain VC 1.52 from Microsoft.
You could always write your application using Visual Studio's text editor, then cross-compile.
|
|
|
|
|
=[ Abin ]= wrote:
use Borland C++ instead
I think this will be your best option... I know VC5+ did not support 16 bit code. I am not sure about VC4. However you may be able to pick up it really chaep on half.com[^]
John
|
|
|
|
|
John M. Drescher wrote:
I am not sure about VC4
Nope. VC1.52 was the last one that supported DOS
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Thanks for the info. I was a borland user before VC5 so I had no idea of the previous versions.
John
|
|
|
|
|
John M. Drescher wrote:
I was a borland user before VC5 so I had no idea of the previous versions.
You didn't miss much . VC4 was the first version that supported Win95, so it was a bit of a kludge. Prior to that, it was particularly primitive
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
It's because you're passing a parameter to a function and this parameter is never used in the function.
Two solutions:
- Suppress this parameter from your function definition/declaration (you don't use it in the function so you can safely delete it)
- Or use it in the function !
Hope this helps
|
|
|
|
|
'#pragma warning' directive can be used with 'disable' option to disable warnings.
Add #pragma warning (disable : 4100) in the beginning of your source file.
|
|
|
|
|
from AFX.H :
#ifdef _DEBUG
#define UNUSED(x)
#else
#define UNUSED(x) x
#endif
#define UNUSED_ALWAYS(x) x
|
|
|
|
|
Or...
Specify it as unrefrenced in the function:
UNREFERENCED_PARAMETER(YourUnreferencedParam);
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
I like your solution to this question best - I was interested because this bugs me too. Thanks.
Ali
|
|
|
|
|
no prob.
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|