|
I sent you the project a couple of days ago to the address you specified. Let me know if you need it sent to a different address. Alternatively if you have a small test project you would like me look at you can mail it to (steve . thresher @ ukonline . co . uk) remove the brakets and blanks.
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
i see now your mail for example project but there isn't atachment!
if you can try to resend me i thanks you a lot.
|
|
|
|
|
hi, i want to know how i can get back the data from click event of the list control?
i received a these 2 pointers, (NMHDR *pNMHDR, LRESULT *pResult). i think i need to have a typecast to get back my data.
how can i get the position i click on the list so that i can get back my data from CListCtrl::GetItem() or CListCtrl::GetItemData()?
any help?
thanks?
|
|
|
|
|
You have to call HitTest() function to check which item of List Control is hit. After getting Handle to that item, you can do whatever you want.
You can find Articles here on CodeProject for this. Sorry, I am too tired to search for those. You have to do it yourself.
Imagine that you are creating a fabric of human destiny with the object of making men happy in the end, giving them peace and rest at last, but that it was essential and inevitable to torture to death only one tiny creature..and to found that edifice on its unavenged tears, would you consent to be the architect on those conditions? Tell me, and tell me the truth!
-Fyodor Dostoevsky, The Brothers Karamazov
|
|
|
|
|
Try casting to LPNMLISTVIEW:
LPNMLISTVIEW p = (LPNMLISTVIEW) pNMHDR;
|
|
|
|
|
oh! i solved the problem. thank you very much!
actually, how can u get this?
i can't get any hints from MSDN library.
|
|
|
|
|
Hi there,
I know that it's bad coding practice to have public data members but what if you have a private struct containing about 10 fields. If I create a public struct containing the exact same fields and set each field to something, can I pass that public struct as a parameter to the mutator method to set the private data members to?
Does this fall under poor coding practices category or is it an exception to the rule?
Thanks!
|
|
|
|
|
Hi
I want to know if the entered user is active or not ? I am developing this application on Windows2000 Professional. Using Win32 Console Based Application.
Is there any function which on providing UserName, Password and Domain tells us that given User is Active or not ?
Plz...Can't u do this for me ?
Thanking You
Anonymous
|
|
|
|
|
Do you mean is the user account enabled?
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Take a look at NetUserGetInfo() using level 1. The USER_INFO_1 structure has a field called usri1_flags .
Then do something like
:
if ((usri1_flags & UF_ACCOUNTDISABLE) == UF_ACCOUNTDISABLE)
{
}
:
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
While LOGBRUSH's lbStyle is BS_DIBPATTERN,how to construction a pattern brush?
I read MSDN but can't understand,what's "a packed DIB",How to "fills the memory with the packed DIB"?By the way,what's difference between BS_DIBPATTERN,BS_DIBPATTERNPT and BS_PATTERN?
Who can show me some example of CBrush::CreateBrushIndirect() while lbStyle is BS_DIBPATTERN?
|
|
|
|
|
hi i have a function that is being passed a reference to a vector
the function crashes on an assert. in an area before the vector is even accessed
however if i comment the line where the vector is accessed the function executes no problems
the thing is tho when its not commented it crashes way before the vector is even called
i have stepped through the function an its giving me the assert area basicly when first thing in the function is called no where even near the vector im actualy using the same vector before the function is even called and doing similar things to it in the function before so i know that the vector is valid. and if i rearrange the functions it still crashes in the same function at the same place id paste the code but its fairly large and i doubt it would be much help
can someone please give me some advice
|
|
|
|
|
have you followed the call stack? Often you can find out there were it goes wrong.
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
Is this function exported one from a dll?If it is then try to change the runtime library in the project settings (and look for "STL access violation DLL" keywords in MSDN).
|
|
|
|
|
Where is the assert? Is it in your code or in the STL code for vector?
What is the assert checking?
|
|
|
|
|
Hello Everyone, i got one question about how to get data from excel files. I know the one way - to query to it using ADO. But if the table doesn't have a name - i can't get data from it.I just want to access to excel tabular data as to array. Something like this: CString str = a[3][2]; Is there avaluable sources in the Internet?
Any help would be appreashiated
|
|
|
|
|
Check this link:
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q178/7/81.asp&NoWebContent=1
Imagine that you are creating a fabric of human destiny with the object of making men happy in the end, giving them peace and rest at last, but that it was essential and inevitable to torture to death only one tiny creature..and to found that edifice on its unavenged tears, would you consent to be the architect on those conditions? Tell me, and tell me the truth!
-Fyodor Dostoevsky, The Brothers Karamazov
|
|
|
|
|
Hi there,
I have to develope Network monitor in C++, for which I'll be using Winpcap libraries. This Network monitor will capture packets, display them, find number of packets transmitted by system per second etc. Now question is how I'll scan network using 'IP Address' because I think Winpcap is useful only if you knew MAC address. While I have to develop such software which on getting IP Address, analyze all network data that is transmitted by that computer.
I'll highly appreciate if anyone comes up with any good suggestion.
Thanks.
A Khan
|
|
|
|
|
|
Thanks for reply. But please elaborate how do you think Wnet functions will help. I have gone through MSDN, other resources and my understanding is; We CANNOT retrieve MAC address if we have IP address of any machine in network.... if this conclusion is wrong, then please do identify how can I do the same.
Thanks again.
|
|
|
|
|
i just misunderstand u. i think u need to enumarate network resources: IP, etc.
hm. how to get MAC from ip. what about network utilities, smth like nbtstat...
|
|
|
|
|
The problem you will have here is seeing the network traffic from the other computer.
If the machines are switched to the desktop you will not see the traffic from the other machine unless it is intended for you.
The only sure fire way to see the traffic is to run the capture on the machine in question. I believe that WinPcap does have a remote agent capability, or at least they are planning on adding this capability.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Thanks for reply, but I am still stucked since WinPCAP just cant do this all . I have to show this thing to my boss soon and I just cant figure it out, how I will be able to do this. Do you have any more suggestions, I will be highly appreciative.
|
|
|
|
|
WinPcap works by binding to a NIC in promiscuous mode. This allows the driver to see all packets that the NIC sees i.e. all packets that your computer sees.
In order to see all packets that another computer sees you need to run WinPcap on that machine (at least in a remote agent capacity). It isn't sufficient just to expect your machine to see the packets from the other machine. (See previous reply with regards to switched networks).
If it is proof of concept that you need to show your boss it can be done for the local NIC. The principles are the same for local and remote.
Writing network monitoring applications takes time and understanding of networks. Generally they are not something that can be written in a couple of days (though drivers like WinPcap help speed up development vastly). You may want to look at the RFC's for IP (RFC 791)[^], TCP (RFC 793)[^] and UDP (RFC 768)[^]. This will give you some understanding of the structure of IP packets.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Thanks Antony for your soon reply. I have understanding of these RFCs and protocol headers but I just cant find way to get packets being recieved by other computer, of which I only knew MAC address.
Okay Winpcap is something that is making it impossible for my appplication to do the same... So do you have any idea of some other library that can give me the functionlity I am looking for.
Thanks Again
|
|
|
|