|
Roger Allen wrote:
Full-duplex/Half duplex.
In one of these modes you also receive in your input buffer what you send, in the other you do not. I forget which way round it is.
Are you not getting confused with "loop back"?
Full-duplex means that both transmission and reception of data can occur simultaneously.
Half-duplex means that only transmission or reception can take place at any one time.
There is also a form of communication called Simplex which means that only transmission or reception ever occur.
Free
|
|
|
|
|
FreeLancer wrote:
Are you not getting confused with "loop back"?
Hmmm, maybe. I am going by the driver stuff installed for the RS-485 card in my PC. It can have a half/full duplex mode. Your probably right. Its been a long time since I looked at it*.
* Need to get my memory chips upgraded - finally I may have 2K!
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
Hi.
I am making a program in Visual studio 6.0
and I am currently having trouble telling when a thread has ended.
Does anyone know how one can tell when a thread has ended?
|
|
|
|
|
One way is to use a CEvent and signal it when the thread function ends. You can then test this event wherever you need to know if the thread has finished.
Neville Franks, Author of ED for Windows. www.getsoft.com
|
|
|
|
|
|
Thank you both of you for your replies. It was very useful for me
|
|
|
|
|
Hi,
does anybody know, how to create CHtmlView which would be using system independant proxy settings ? I need to use another HTTP proxy in my application, but not change IE proxy settings for whole system.
Thanks
rrrado
|
|
|
|
|
Does anyone know why the NM_RETURN message never works in list controls as it's supposed to?
I create a simple test app using the app wizard with a single form view, plopped on a list control. Then I use the class wizard to hook in the NM_RETURN message to a message handler and set a breakpoint there. Now running the app, clicking on the list control to make sure it has focus, and then hitting the enter key does not hit the breakpoint!
Any ideas?
(I also tried NM_CLICK, but that work no problem)
Much thankx!
swinefeaster
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|
|
|
Thanks, but that's no good as I want to trap the event when the user hits the ENTER key. lbuttondown is easy...
swine
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|
|
Is there a way to get the physical disk number from a logical drive letter?
For example, there are 3 hard disk drives:
IDE 0 Master - the first HDD, containing C:, D: and E: logical drives
IDE 1 Master - the second disk, containing F: and G:
IDE 0 Slave - the third disk, containing H:.
For example I want to determine the physical disk, on which drive F: is located. This should be the Master HDD on IDE 1.
Thanks!
|
|
|
|
|
|
GetDriveType() returns DRIVE_FIXED for all the the logic volumes in the system, because all of them belong to the fixed drives. It doesn't work for me
|
|
|
|
|
unsigned short a;
unsigned long b;
b = 0x987666;
a = b;
Hi! I am using VC6.0, and I notice sometimes the compiler give me the following warning message for the code above, "warning C4244: '=' : conversion from 'unsigned long' to 'unsigned short', possible loss of data",
sometimes(mostly when I added another project to workspace), it gives me nothing even I rebuild all files in the same project, and I can never recover the warning message after I lost it.
Can anybody tell me how to let compiler generate warning messages all the time?
|
|
|
|
|
The project that reports that warning has the "Warning level" set to 4, at other times you must have the "Warning level" set to lower value, the most common being 3.
Open the project goto the Project -> settings on the menu, select the C/C++ Tab, and use the "Warning level" combo-box to set it back to 4 again.
|
|
|
|
|
Thanks!
With the 'Warning level' set to 4, I got the 'type conversion' warning message back plus tons of other warnings.
But surprisingly, in my previous project, the warning level is 3, and I can get some of the 'type conversion' warnings as well, but much less than level 4.
|
|
|
|
|
hi,
i have done word automation using vc++.i am getting the details from the
database and filling the data in the table created programatically by word automation.
i was able to generate the report.But it is taking time(5 minutes for a 35 records)
can any one suggest some steps to increase the speed of generation of reports
using word automation
with reg
magesh
|
|
|
|
|
I want to ask few questions regarding my server side application using Winsock API.
My server accepts new client using accept(). This function returns a new socket descriptor. This socket descriptor has input and output buffers.
1) Can anyone tell me that how much resources this new socket descriptor required. What is the size of its input and output buffer by default and how can we change the queue size of input and output buffer.
2) My server application will run on Win2K machine with 512 MB RAM and 1 Ghz processor. How many connections can i accept, if the work load is low. (Server only calculates factorial of a number and return to client)
|
|
|
|
|
I made a Turkish / English dictionary that can be minimize to system tray. I want to restore my application with a keyboard shortcut. But how can I catch the WM_KEYDOWN message when my application in systray mode. Can anyone help me?
kozlu
|
|
|
|
|
Write a funtion to handle the WM_HOTKEY message. Then assign a system-wide hotkey to use for restoring your app from the system tray.
|
|
|
|
|
Kemal OZLU wrote:
But how can I catch the WM_KEYDOWN message when my application in systray mode. Can anyone help me?
See if this article helps.
http://www.codeproject.com/useritems/nishhotkeys01.asp
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
|
|
|
|
|
Heh, that's the article I used to I learn how to use HotKeys!
|
|
|
|
|
Hello!!
We can enable or disable Hibernate support by using the setting in the control panel-> Power options-> hibernate tab. when this check box is checked the system makes a file hiberfile.sys in the operating system root dir and reserves memory. if the check box is unchecked the system deletes the file. I want to do this programatically. I have used the function NtCallPowerInformation() using SystemReserveHiberFile, but this is not working. Can anyone tell me if it is working at their end and if I am missing something or there is some other method to do this.
Thanks in advance.
|
|
|
|
|
Hello!!
There is a setting in the control panel -> Power Options-> Power schemes tab, for setting Standby and Hibernate time. i.e. after what unit of time the system should go into stand-by state and similar combo box is also present for hibernate state.
I have tried to use the API GetCurrentPowerPolicies(). In this, a structure is filled for POWER_POLICY->MACHINE_POWER_POLICY. In that, according to MSDN, values for stand-by and hibernate should get filled , but it does not.
I am getting the time for disk spindown and video time out and also the Power Scheme, but I am not getting the standy-by and hibernate time.
Can anyone of you tell me how to obtain the standby and hibernate time.
Thanks in advance.
|
|
|
|
|
I HAVE NOTICED WHEN TYPING IN A ENTRY BOX MY CURSOR DISAPPEARS. WHEN I TAB OFF THE CURSOR COMES BACK
THE PROBLEM THAT I HAVE NOW IS IF I TAB FROM AN ENTRY BOX TO A COMBO BOX ( I HAVE SET IT AUTO OPEN)I LOOSE THE CURSOR AND CAN NOT GET IT BACK UNTIL I SELECT AN ITEM FROM THE COMBO LIST. IS THERE A WAY TO BRING THE CURSOR BACK.
THANK YOU.
|
|
|
|