|
I hope I understood your problem correctly.
If you are doing a lenghty process in your application, you can write & call the following function in between the lenghty process, so that the window getts refreshed.
void ProcessMessage()
{
MSG msg;
if(::PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ))
{
::TranslateMessage(&msg);
::DispatchMessage(&msg);
}
}
However the best way to avoid these problems, I feel is by creating thread for the lenghty process.
Prashanth
|
|
|
|
|
please help how i prevent my vc++ appliaction to kill from taskmanager.if it not possible then i have senn application when i killed they again restart how.
Ibrar Ahmad
Softare Engr.
Comcept PVT LTD.
Islamabad
abrar_@yahoo.com
|
|
|
|
|
I had the same problem. For that I made a service, that test the applications that are running. If I detect that one application of my list is killed, I restart again, the application. didn't find another solution...
Best Regards...
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
u can solve it by writing a service and when u r processs is killed by os just create another instance...i think there is some other ways to prevent ur program in the hand of os..
just tr the first one
best luck..
renjith
|
|
|
|
|
Righty I have the source code to a MFC IRC client using the Document architecture....Mainframe() crap etc. I want to do the same thing but have it on a dialog app cos I hate the windowed based programs...here is the link:
http://www.vchelp.net/source/irc_class.zip
if someone can make this into a dialog based app I would be most appreciative and ill give them hosting, email address @ settlers.net...anything (bar my girlfriend )
Thanks
Ashley 'Ashman' Rowe
www.settlers.net
And no i cannot do it myself as i am incompetant
thanks
|
|
|
|
|
Hi,
I´ve seen that some apps, like Babylon, can trap a key, or combination of events ( shift + right mouse), even if the application has not the focus.
How can be this thing done ?
Thanks, Bye !
Braulio
|
|
|
|
|
Dear Braulio,
did u get any thing regarding this issue
thanks in advance.
Suhail
|
|
|
|
|
See SetWindowsHookEx with parameters WH_KEYBOARD, WH_KEYBOARD_LL, WH_MOUSE, WH_MOUSE_LL.
|
|
|
|
|
Thanks !
I will try that, Bye !
Braulio
|
|
|
|
|
I want get the string when mouse move to the area.
How to do this ? Plz give me some hints.Thx.
|
|
|
|
|
Try SetWindowsHookEx()
BTW: come to #CodeProject on DalNet (mIRC)
|
|
|
|
|
in process A, got a HWND of dialog that in process B, and how get the string in this Dialog that in the process B?
|
|
|
|
|
Use EnumChildWindows to get all the child windows of that dialog.
Once you find your edit control use GetDlgItemText to get the text on it
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Try getwindowtext...
|
|
|
|
|
Hello,
I am new to .NET and have some questions.
1. What is the differenes between .NET Framework SDK and Visual Studio?
2. I am currently learning standard ansi c++, and I am wondering whether I should learn VC++ 6 or VC++ 7 next.
3. If I were to take the VC++ 6 Desktop Apps Certification exam would it be worth it or wait for Vc++ 7.
4. Is VC++ 7 compaitable with ANSI C++?
5. Who here actually likes Visual studio 7 or .NET ?
thanks,
vinuk
|
|
|
|
|
1. The framework SDK is a set of classes/functions to program for the .NET environment. Visual Studio is just an integrated development environment.
2. Sure. Go ahead.
3. Not sure about that.
4. Not fully
5. Most people including me.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Does .NET used of VM classes ? like Java programs ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Visual Studio is an Integrated Development Environment (editor, debugger, wizards, etc..) that also includes compilers for various languages.
.NET Framwork SDK is simply a software development kit. It doesn't include an IDE or any of that stuff.
VC7 is more standard compliant than VC6, but it's still not 100% and is missing a few key (but advanced) features.
Chances are, there won't be a VC7 certification for a while yet... so you might as well take the vc6 ones.
VC7 rocks.
--
Where are we going? And why am I in this handbasket?
|
|
|
|
|
vinuk wrote:
1. What is the differenes between .NET Framework SDK and Visual Studio?
Visual Studio is an IDE, while .NET Framework SDK is a development kit. You can make .NET programs without VS, but not without SDK.
vinuk wrote:
2. I am currently learning standard ansi c++, and I am wondering whether I should learn VC++ 6 or VC++ 7 next.
There is not such a big difference between VC6 and VC7, if you don't count Managed C++.
vinuk wrote:
3. If I were to take the VC++ 6 Desktop Apps Certification exam would it be worth it or wait for Vc++ 7.
I think you should wait for Vc++7.
vinuk wrote:
4. Is VC++ 7 compaitable with ANSI C++?
Almost
vinuk wrote:
5. Who here actually likes Visual studio 7 or .NET ?
I like VS7 very much, but I'm not quite sure about .NET
I vote pro drink
|
|
|
|
|
|
Try PostMessage(WM_CHAR, ...)
|
|
|
|
|
Please read below article ...
It mean i can't use inp and outp on NT ?
So, what i can use instead inp() and outp() functions ?
Help me !
DOC: Port I/O with inp() and outp() Fails on Windows NT
ID: Q112298
--------------------------------------------------------------------------------
The information in this article applies to:
The C Run-Time (CRT), included with:
Microsoft Visual C++, 32-bit Editions, versions 1.0, 2.0
--------------------------------------------------------------------------------
SUMMARY
Attempting to use the port I/O (input/output) functions such as inp() and outp() from within an application for Windows NT running in user mode causes a privileged instruction exception to occur. The sample code provided in the OUTP.C online help sample for the outp() function and related functions can be used to illustrate this behavior.
The documentation regarding the compatibility of the port I/O functions is incomplete. Win32-based applications that call inp(), outp(), and so forth can be successfully compiled and linked. However, these applications will generate the privileged instruction exception because the port I/O functions cannot be called from code running in user mode.
Do not call the following functions from within a Win32-based application executing in user mode:
_inp()
_inpw()
_inpd()
_outp()
_outpw()
_outpd()
NOTE: This documentation error has been corrected for the Visual C++ 4.0 Books Online. The descriptions of the various port I/O functions do not list "Win NT" in the Compatibility section.
MORE INFORMATION
According to the documentation provided with Visual C++ 32-bit Edition, inp(), outp(), and the other port I/O related functions are Win32 and Win32s compatible. However, executing code that uses these functions causes a privileged instruction exception on Win32 on Windows NT. The code that uses inp(), outp(), and so forth will execute correctly on Win32s.
The inp(), outp(), and other I/O port related functions map to privileged processor instructions. For example, on Intel processors, the inp() and outp() functions end up calling the IN and OUT instructions. The privileged instruction exception occurs when these instructions are executed because typical Windows NT applications execute in a nonprivileged (user) mode. Only code executing in kernel mode has the necessary rights to execute privileged instructions. Kernel mode code is typically found in device drivers.
For more information on user mode and kernel mode in Windows NT, refer to the Microsoft Press book "Inside Windows NT" by Helen Custer. For an example of a kernel mode Windows NT device driver that allows user mode applications to access hardware ports, refer to the GENPORT sample provided with the Microsoft Windows NT Device Driver Kit (DDK).
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
|
Thanks for your helps,
Your helps is useful for me, always
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
The article you reference tells you what to do.
"For an example of a kernel mode Windows NT device driver that allows user mode applications to access hardware ports, refer to the GENPORT sample provided with the Microsoft Windows NT Device Driver Kit (DDK)."
--
Where are we going? And why am I in this handbasket?
|
|
|
|