|
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
|
|
|
|
|
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
|
|
|
|
|
In my application i have a frame with three views seperated by Splitterwindow..
My problem is that when i start the application,the frame should be in maximised state and we should not be abe to resizize both the frame and splitter window....
So any idea....
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
To set the frame maximizde, override PreCreateWindow(), and add SW_SHOWMAXMIZED to the style component of the cs structure.
~RaGE();
|
|
|
|
|
super wrote:
[...]when i start the application,the frame should be in maximised state[...]
void CMyView::OnInitialUpdate()
{
Cview::OnInitialUpdate();
GetParentFrame()->ShowWindow( SW_SHOWMAXIMIZED );
} or in the Frame class:
void CMaxiFrame::ActivateFrame(int CmdShow)
{
if (m_bOnce)
{
m_bOnce = false;
nCmdShow = SW_SHOWMAXIMIZED;
}
CMDIChildWnd::ActivateFrame(nCmdShow);
} and initialize a bool m_bOnce to true in the constructor of CMaxiFrame .
super wrote:
[...]should not be able to resize the frame[...]
BOOL CMyFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style &= ~WS_THICKFRAME;
cs.style &= ~WM_MAXIMIZEBOX;
return CMDIChildWnd::PreCreateWindow(cs);
}
super wrote:
[...]we should not be able to resize the splitter window[...]
Here, the trick is that we do not let CSplitterWnd see anything that could initiate a splitter drag:
In CMySplitter::OnLButtonDown() call CWnd::OnLButtonDown() instead of CSplitterWnd .
In CMySplitter::OnMouseMove() call CWnd::OnMouseMove() instead of CSplitterWnd .
In CMySplitter::OnSetCursor() call CWnd::OnOnSetCursor() instead of CSplitterWnd .
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
Thanxs for the help.....
All issues has been sorted.....
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
After a long time of developing my project (Win 98 + VC++ 6.0 + service pack 3 i think)
compilation suddenly started to crash every time it is creating browse info.
It displays 'Illegal operation' dialog box for bscmake.exe:
BSCMAKE caused an invalid page fault in
module BSCMAKE.EXE at 0177:0040a449.
I tried to clean whole project, including .opt and .clw, restarted Win and build all again, but bscmake is crashing all the time.
Any Idea what can be wrong ?
Thanks !
rrrado
|
|
|
|
|
I don't know what the problem may be but try upgrading to the latest SP which is either 5 or 6. I can't remember which it is.
|
|
|
|
|
Oh, i was wrng, i have SP 5 already, i'm gonna look if there is newer version.
Thanks
rrrado
|
|
|
|
|
I want to make my server program to start everytime i starts the computer. I would like to make it a service.
and upon startup I want the program to show as a systray icon only. When I click on the icon then the command window shows up.
I have a problem because my program is jsut command prompt type of program, not those gui types. So how can I get the window callback proc.
I need help..
|
|
|
|
|
|
Services should not have a user interface. If you need a user interface to control the service, it should be implemented as a separate process and communicate with the service via named pipes or some other communications channel.
There was a security hole (although I believe it's fixed now) where you could send a WM_TIMER message to a service's window in order to elevate your privileges.
|
|
|
|
|
now i could create the systray icon. but i can't get those event when i click on it.
|
|
|
|
|
Hi all,
I want to Compress the data of BMP in RLE format Using GDI+.
I have tried the Save methode of Bitmap class with giving the EncoderParameters. But didn't work
While enumerating Encoder parameters for bmp codec (SDK sample), I am not getting the values. Does GDI+ not supporting that or I have to upgrade my codec?
My machine is XP and have installed latest Platform SDK.
Thanks in advance
Ajesh
|
|
|
|
|
Hi all
Where i can download an application(free is desirable) what can to help determine memory leaks in my application, i use VC6.0 and
Windows 98 but VC enviroment dont catch some one.Because of when i launch my application in other computer under WinNT
i see in debuger what memory running out.
Thanks
Sorry for bad eanglish
|
|
|
|
|