|
Hi,Good morning,
I have a small question .Now I want to catch the net event when the netlink breaks down,how to do......
thanks
Zbuilder
jianshez@bjxj-xjgc.com;)
DREAM FOR BRIGHT FUTURE
|
|
|
|
|
Is it possible to pause a timer created with SetTimer without actually killing it?
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
Michel Prévost wrote:
Is it possible to pause a timer created with SetTimer without actually killing it?
I don't think so. You could set a flag which tells the timer function to ignore calls to it temporarilly, however killing and recreating the timer would probably be a better way to handle this.
Neville Franks, Author of ED for Windows. www.getsoft.com
|
|
|
|
|
Maybe you can use Sleep() somewhere in your code.If you use WM_TIMER you can use it to do some pausing.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Hi, I am in the process of writing a Microsoft DirectShow filter tolay back vedio from a SGI server. The Directshow environment requires the "_stdcall" calling convention while the SGI requires the "_cdecl" calling convention. How do I resolve this error. One of the errors I get when having the _stdcall convention is
asyncflt.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class MBMovieLib::Movie * __stdcall MBMovieLib::open(char const *,char const *,class MBMovieLib::StreamSpec *,unsigned long,class MBStreamDefs::NameValuePairs
Any help in resolving this problem will be greatly appriciated as I have been trying different things for about a month now.
Thank you.
|
|
|
|
|
Is that MBMovieLib::open class function in one of your own classes or in the third-party library? Did you declare it somehwere else as beeing _cdecl?
--
Daniel Lohmann
http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there )
|
|
|
|
|
The program compiles fine. It's when it reaches the linkage stage that VC++ 6.0 linker reports the reason it cannot do the linkage is because it, "Cannot open Debug/MySampleApp.exe for writing" even though the file is not opened or being used somewhere else (or any of those things).
If I were to use Windows Explorer and go to the directory (etc.) where the file is located and delete it, then go back and recompile it, everything would go through fine. No problem!
Does anybody know why this happens? This is not the first time the compiler has done this. It seems almost something at random.
Is there something in Project->Settings->Link I should set or change to prevent this?
Thanks.
William
|
|
|
|
|
Check if the file is made read-only, for whatever reason.
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
Good suggestion! But if that was the case, then every time I do a compile and link, the same situation would occur; that's not happening. It's like a random thing.
William
|
|
|
|
|
If you are running Win9x/ME and the .EXE wasn't closed normally then this can happen. It typically happens if VC++ crashes. You need to restart Windows to get things back to normal. This doesn't apply to W2K/XP.
Neville Franks, Author of ED for Windows. www.getsoft.com
|
|
|
|
|
Would you know, it's Win2K that I'm using!
FWIW, Win2K is about the most stable platform MS has ever produced, which is why I don't suspect an OS issue here.
OTOH, I've been using VC++ from it was version 1, and have continued with it throughout the different versions to where I am, currently. It's only because of a very bad experience I had with XP that has caused me to freeze installing anything beyond what I already have (VC++ 6.0 SP5, and W2K SP2) and wait for any new product from MS to be out on the market for at least 3 years before I install a version upgrade.
With regards to the problem I'm reporting, it seems almost like a random thing because it is NOT every time the situation occurs (which is what makes it tough).
I also appreciate your NOT advising me to call MS about the problem. Doing that would only exacerbate the situation. Besides, I don't have time to waste and money to give away at the same time, ending up with NOTHING worthwhile!!!!!
William
|
|
|
|
|
Are you using threads? If so, it may be because one of your threads still works (even though your application is closes); and this causes your application to remain in the memory.
Mustafa Demirhan
http://www.macroangel.com
Sonork ID 100.9935:zoltrix
<nobr>They say I'm lazy but it takes all my time
|
|
|
|
|
Good suggestion!
I hadn't thought about this, but will check into it the next time the situation occurs.
Thanks!
William
|
|
|
|
|
William, give http://codeguru.earthweb.com/system/TaskManagerEx.html a try. It should reveal what is going on. I've found this to be very usefull in the past.
There is also a program around which I thought was on CodeGuru called WhoIsLocking or something like that, but I just had a quick look and couldn't find it.
Neville Franks, Author of ED for Windows. www.getsoft.com
|
|
|
|
|
I'm using the IWebBrowser2 interface to automate Internet Explorer. However, I don't see a method in the MSDN library that allows you to start IE maximized. I don't want to run full screen (I see a method for that), but rather in maximized mode.
Does anyone know of a way to do that? I guess I could manually set the size to the desktop rectangle size, but the sizing frame would still show up. Not a big deal, but I want to do this the right way...
Any ideas? I'm puzzled!
Thanks!
Jonah Bishop
|
|
|
|
|
Hi,
Lets say I have a grid with edit controls in it. I want the up and down arrow keys to move up and down between rows. Now lets say I'm using SHAutoComplete to auto-complete paths typed into said edit controls.
If the combo box drop list is active, I want up and down to move between items in the list. If it isn't active I want default row movement to occur.
My question is: Is it possible to tell whether the drop list of a combo is active at time of keypress so I can return TRUE or FALSE appropriatly in my PreTranslateMessage so that the desired behaviour occurs?
Auto-completion isn't essential for this project so "Give up, too hard" is a perfectly acceptable answer for me...
|
|
|
|
|
Take a look at the funcition CComboBox::GetDroppedState(). It should do what you need.
Roger Allen
Sonork 100.10016
I think I need a new quote, I am on the prowl, so look out for a soft cute furry looking animal, which is really a Hippo in disguise. Its probably me.
|
|
|
|
|
|
yes.
i do and have had no problems at all.
-c
"To announce that there must be no criticism of the president, or that we are to stand by the president right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public."
-- Theodore Roosevelt
|
|
|
|
|
|
i had vc6 and i installed vc7 and everything simply worked - MSDN works in both cases, no problems.
-c
"To announce that there must be no criticism of the president, or that we are to stand by the president right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public."
-- Theodore Roosevelt
|
|
|
|
|
Pavel Sokolov wrote:
Can I install VS.NET after VS.60 ?
What about MSDN?
They use seperate MSDN's. VS6 uses October 2001 (or earlier).
VS.NET uses Jan2002 or later
I've been running with both on my machines for months and have had no problems.
Michael
Time flies like an arrow. Fruit flies like a banana
|
|
|
|
|
Hi there!
Michael P Butler wrote:
They use seperate MSDN's. VS6 uses October 2001 (or earlier).
I have one machine which has MSDN Jan 2002 and VC6.0 (I know, no good idea...) and now, i don't have any usefull MSDN on that machine, cause seems to be that there is no way back and the help doesn't work anymore (neither old nor new one..)
Olli
I feel like I'm diagonally parked in a parallel universe.....
|
|
|
|
|
I have them both installed on my machine. Each one is using their own MSDN collection. The only problem is that VS.NET becomes the default program that opens the .cpp, .h, .dsw, .dsp etc., so you may consider being careful when double-clicking one of them.
Best regards,
Alexandru Savescu
|
|
|
|
|
Right-click the file and choose "Open MSDEV"
Concussus surgo.
When struck I rise.
|
|
|
|