|
Ok... Graus... whatever, I would like to hear you just saying my name in right spanish XDDDD
Whatever... PLEASE POST THIS ON THE LOUNGE XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
|
|
|
|
|
:-OI want my application to run as soon as the system starts and should always remain in the memory. Do I have to make it as a service ???
This application has to interact with user OS and I/O .
OS on which it will run: Win 98/NT/2000 and XP
|
|
|
|
|
You should create your application as service.
Note: Win9X does not support services! Only Windows NT based Operating Systems!
A. Riazi
|
|
|
|
|
Hello,
I'm making a server/client program, and i want to sent a message map from my connection thread towards my main program if data has been received. how can i do this?
thanks,
Willem
Visual C++ N00P
|
|
|
|
|
Sir, how is it possible to terminate a hanged application from another VC++ application ?
C.R.Naik
|
|
|
|
|
Use this employed technique from this article[^] to find your hanged process then use process API function to kill it.
|
|
|
|
|
Note that in some instances it's actually impossible to kill a process, even on NT!
Some kernel calls are implemented in a way that they can hang (around) in kernel mode almost indefinitely. Trying to kill such a process is futile - it simply won't die. Also note that this design (though I'd personally call it a very serious flaw) prohibits you from even logging out - Windows wants to kill the process, which can't be killed. The only way to get out of this mess (except for waiting 365 years or so) is, really, a hardware reset.
|
|
|
|
|
I'm trying to write some html help for my app and have got stuck with the table of contents.
2 files seem to get generated by the compiler, a CHM and a CHI. Opening the CHM requires the CHI to be present as well, otherwise the table of contents is missing.
But of course, most apps only distribute a CHM. Am I missing something? How do I merge the TOC into the CHM file?
he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed)
NEW: Awasu v0.7[^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Hi,
CHI stands for Compiled HTML Index and require for showing Table of Content.
A. Riazi
|
|
|
|
|
Yeah. I'm cool with that.
My question is how do I merge the CHI file into the CHM? Other apps only distribute a CHM but still have a table of contents. So how do they do that without distributing the CHI as well?
he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed)
NEW: Awasu v0.7[^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Hi all!
I need to do a little program in VC++ (I prefer to use MFC, since I'm more familiar with it), that needs to detect the default gateway in the machine where it is run, ping that IP and be able to detect whether the ping is responding or not.
Also I need to be able to detect the OS (Windows) of the machine.
Any ideas?
Thanks....
-- narada
|
|
|
|
|
|
Thanks so much. That's real helpful.
If anybody has any ideas about the gateway....
Thanks!
-- narada
|
|
|
|
|
Depending on the OS version this information is stored in various places in the registry. Fortunately they are different in almost each Windows version
You must write code for W95/98/CE/ME/NT4/W2k/XP/.NET which reads the corresponding registry keys.
A good start is
...\CurrentControlSet\Services\Tcpip\Parameters\Adapters (NT5)
...\CurrentControlSet\Services\Tcpip\Parameters (NT4)
Holy Sh*t! I'm speechless. (hey, that's a first) Marc Clifton, The Lounge
|
|
|
|
|
Hi there,
I'm about to create a custom control for an application. This control should have 4 Buttons, 2 Textfields and about 10 LED's (some kind of changing bitmaps). I'm not able to put these buttons in my custom control. The LED's are easier to impelement, but I think these Buttons are little bit tricky.
I want to put these things in a custom control, because i have to instanciate about 32 of them (maybe at runtime)
Is anybody able to help me?
Thanks a lot for helping me
greets, Ingmar
|
|
|
|
|
is your app MFC ? (Probably not, but one never knows... ).
~RaGE();
|
|
|
|
|
It is an MFC app...
|
|
|
|
|
Hi,
Create a new class derived from CWnd (your custom control). Declare your member variables (LEDs, Bitmaps, Edit controls,...). Use Create member function of member variables to create, size and justify them.
You can also use some handy utility for managing layout of child controls.
It's better that you create a dll as host of your custom control and use it in your application whenever you want.
A. Riazi
|
|
|
|
|
I have to apply a message handler for my Button (on_click) or something.
so I need a new ID which is applied to the new created Button. How can I do this
without doing it statically in the resource file?
greetings, Ingmar
|
|
|
|
|
Hello All,
I have written a driver which retreives the RTC value. I have used WRITE_UCHAR_PORT and READ_UCHAR_PORT macros. They operate on port 0x70 and 0x71 respectively to get the RTC value. They are run in a loop of 12. I get the value properly if run once. But when the values are retreived continously , over a time it gives all the values as ff. i.e. the date and time value which are retreved are all 'F's. The driver does not give any error. I.e. the driver is correctly binded and everything seems to be properly executiong apart from the fact that the values reteived for date and time is all 'F's. Can it be the case that RTC is busy updating some registers (at the time of giving error values - all F's ) so invalid values are retreived by the driver.
The driver is able to retrieve correct values for once or twice but only during a long run it gives problem. Could there be some problem in the hardware or am I missing something.
I am running the driver in Windows XP home OS and on Intel chipsets.
Can you please suggest as to what could be the problem.
Any help would be highly appreciated.
Thanks and regards,
Sandeep
|
|
|
|
|
Sandeep Shetty wrote:
Can it be the case that RTC is busy updating some registers
Anything is possible when dealing with PC hardware.
But I'd more worry about the possible implications of you emitting e.g.
out 0x70, 2 /* minute */
then your driver is interrupted by Windows itself wanting to access the RTC (which I presume it assumes it has exclusive access of), emitting e.g.
out 0x70, 0
out 0x71, 0 /* set seconds to zero */
and voila, your driver fails. For all I know, the RTC might even have deadlocked at this point.
Coming to think of it, is even 0x70-0x73 shared? (you have successfully claimed the address range, by e.g. IoAssignResources?)
|
|
|
|
|
Hello!!
Thank you for your answer.
But I am not using statements like "out 0x70, 2". I am using the macro WRITE_UCHAR_PORT and READ_UCHAR_PORT and pass 0x70 and 0x71 as parameters.
I do not think we have to claim addresses and the macro does require on its own.
I cam across a small article at site http://www.pcprofile.com/timepiece.HTM#overview
There is some problem in chip set INtel 810. Can you please on this?
Hope I am on the right track.
Please give your suggestions.
regards,Sandeep
|
|
|
|
|
Sandeep Shetty wrote:
But I am not using statements like "out 0x70, 2".
I understand that. I just used that as syntax to keep down on the writing.
I do not think we have to claim addresses
Is think really a good word to use when dealing with stuff like this?
But it also seems you have to check whether an update is in progress before trying to read anything. Have a look at this for example.
I still don't think you are allowed to do this without either disabling interrupts (which I'm quite certain you may not on NT) or claiming the resources you access - even more so since the built-in "System CMOS/real time clock" device already have claimed this I/O range.
|
|
|
|
|
Friends, at some point of my program execution, i want the memory consumption of my program (same value that we read from task manager). Any API solution that also work for Win 98 do tell me please ?
|
|
|
|
|
Shah Shehpori wrote:
i want the memory consumption of my program (same value that we read from task manager). Any API solution that also work for Win 98 do tell me please ?
Since when did Win98 get a Task Manager?
Whatever. Try GetProcessWorkingSetSize .
|
|
|
|