|
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
|
|
|
|
|
But the warning was from xmemory.h, a system file ?!?
Thus the warning was not your fault, but that of VC6!
BTW, the easiest way of saying that a variable is not used in the function is by commenting out its name:
BOOL SomeFunc(int , int )
{
..code using neither tit nor tat...
return TRUE;
}
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
You're probably using STL...
Try this.
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
|
Hello all,
I'm writing a tool which must provide the function of sending data to some hosts in the internet via our company's http proxy. The proxy uses the NTLM authorization rule.
I don't want to use the winHTTP API because they control socket transfer.
I'd like to control it by myself.
Who can tell me which API (except WinHttpSetCredentials()) may help me to realize the NTLM authorization?
Thanks a lot
|
|
|
|
|
|
I need very simple function, which will return
length (in seconds) of given movie file, using DirectShow.
No playback is needed, nothing more.
Thanks !
rrrado
|
|
|
|
|
I don't know if there is any function for that, but this information is contained in the header of the file. You only need to read some bytes. For information of the header format of yor video file see www.wotsit.org
MS
|
|
|
|
|
Thank you for tip,
but I'd like to have more universal solution,
wchich would use DiectShow.
Which would allow me to get info about any movie, if i have installed codec for it, lide avi, divx, mpeg, etc.
But I'm lazy to study whole Direct Show stuff for this
rrrado
|
|
|
|
|
Instead you could use the AVI functions and use AVIStreamLengthTime
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676
|
|
|
|