|
hi thx,
my process is:
file address.txt includes tens of email addresses
file message.txt contains info for sending
i never use email in c++ before.
open files are easy.
do you have more suggestion in vc to implement email task of mine?
includeh10
|
|
|
|
|
includeh10 wrote:
do you have more suggestion in vc to implement email task of mine?
See here:
http://www.codeproject.com/internet/#Email+%26+SMTP
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I need some guidance, or a pointer, as to where I can find the answer to the question. I'm looking for a way to list all active processes running on a windows computer (2k/xp mainly, but 9x/me if its compatible with that as well), which have an open network connection (or are listening). Now, this much I can do with IPHlpApi.
However, what I want is based on the individual connection/process, I would like to be able to find out how much bandwidth is being used at any point in time.
So if anyone can suggest what I should look into, or a site, or some example code, I'd greatly appreciate it.
One other thing, and this is more of an off-topic interest than something I'd require, is being able to monitor i/o usage for individual processes.
|
|
|
|
|
Will netmon apis help you with that respect ???
I dont have any infromation about it, but then this is a pointer as requested by you.
God is Real, unless declared Integer.
|
|
|
|
|
elizard wrote:
I'm looking for a way to list all active processes running on a windows computer...
See Process32First() and Process32Next() for this.
elizard wrote:
...I would like to be able to find out how much bandwidth is being used at any point in time.
By "bandwidth" do you mean "network bandwidth?" If so, not all processes use the network. In that case, their usage would be 0. Do you means CPU usage instead?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I guess I should have specified, yes I do mean network bandwidth, and its only for processes that do in fact use the network (of course not all do).
Thank you.
|
|
|
|
|
I don't know of any way that ties the two together. That would make the OSI model less effective if the physical layer knew about the application layer (i.e., the process that is sending/receiving data).
If you are interested in just how many bytes/packets are sent through the physical layer, you might want to look at the Performance Monitoring API. Of particular interest are the Network Interface and IP objects.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hello All,
Our project needs to customize the scrollbar of a CListCtrl. We have implemented this by removing the non client area of CListCtrl and painting our own scrollbars using bitmaps. We have taken this approach since from Win XP onwards the system just thows the original scrollbars whenever it sees a non-client area.
Now regarding this whenever we are dragging the thumb, the whole area including the area covered by arrow marks (for either horizontal or vertical) are scrolling. This is resulting in the arrow marks going away. Getting the focus either through change of application or generating the SB_PAGEDOWN etc message, is restoring them. How can we stop this effect. This is happening even after we making sure that we draw the arrows in every drag operation.
Ideally while dragging the thumb, the portion occupied by the left/right up/down arrows should not scroll. I can understand that this is happening due to nc area not being present. But is there a way to stop this effect
Again while resizing the header control, the effect is not coming right during the time when horizontal scroll bar goes from a visible to no HSCROLL stage.
How can we stop such effects, in cases when we dont have the original window scroll bars behind in CListCtrl, similar to our implementation.
Thanks
Rajdeep
|
|
|
|
|
I have an app with 2 threads that run in background.
Now I want to communicate between these threads.
I know PostMessage would help ME.
But I want to send a message from thread1 to therad 2 Pls help me with code snippet.
Regards
YKUTTANUR
Chintu
|
|
|
|
|
if they are really threads , you could use global datas ;
if they in fact processes , use pipes or messages...
TOXCCT >>> GEII power
|
|
|
|
|
ykutanoor wrote:
I know PostMessage would help ME.
But I want to send a message from thread1 to therad 2 Pls help me with code snippet.
are you looking for PostThreadMessage(...)
God is Real, unless declared Integer.
|
|
|
|
|
1. Put this code in both the thread code that is required for the Examining a Message Queue that is associated with a particaular thread.
BOOL fDone;
MSG msg;
// Begin the operation and continue until it is complete
fDone = FALSE;
while (!fDone)
{
fDone = DoLengthyOperation(); // application-defined function
// Remove any messages that may be in the queue. If the
// queue contains any mouse or keyboard
// messages, end the operation.
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
switch(msg.message)
{
case WM_USER1:
case WM_USER2:
//
// Perform any required cleanup.
//
fDone = TRUE;
}
}
}
2. Use the PostThreadMessage(....) API for posting the messages between threads.
Jitendra
|
|
|
|
|
1.
I wanna make a user not to select a cell in DataGrid.
A user's clicking a cell makes that the whole row is selected(highlighted).
2.
How to set the alignment of column header captions in DataGrid
How can I do these?
|
|
|
|
|
why SetLayeredWindowAttribute does not work for child windows , as i want transparency effect for common controls.It looks WS_EX_LAYERED is not supported by child windows.so can anybody tell me a way to do this.
Unmanaged in a .NET world
|
|
|
|
|
I used WideCharToMultiByte to convert it, but got some "????" -_____-
|
|
|
|
|
I dont think it can be done, as the korean script will not fit in 256 char.
God is Real, unless declared Integer.
|
|
|
|
|
I dont think it can be done, as the korean script will not fit in 256 char.
Hhhhhhhhhhh..............;P
u moron
if u don't know the answer don't fcuk around
Chetna BABY
|
|
|
|
|
Every now n then we have morons like you roiting around, i guess this time its you.
God is Real, unless declared Integer.
|
|
|
|
|
ANSI: 죄 (0xC1 0xCB)
UNICODE: 죄(0xC4 0xC8)
I need a way to convert them, help me plz...
|
|
|
|
|
|
Thank u verrrrrrrrrrrrry much!!!!!
It's ok now!!!
btw: The code-page is 949 ^-^
|
|
|
|
|
|
Thx, It's ok now
|
|
|
|
|
Hi
Anyone know how to determine if a file is opened as Read or Write through any of the APIs...
I need to know as currently i using 2 flags to determine from the class.
Any help will be appreciated.
Thankyou
|
|
|
|
|
I am not sure, but you may have a try on GetFileInformationByHandle(...).
Maxwell Chen
|
|
|
|