|
Hello All,
I've made a service in which i monitored whenever the user logs off or logged on system, How can i retrieve user details before shell is created, I need user details when user logs on to system, For this when i use "NetWkstaUserGetInfo" , It gives me error 997 which is "Overlapped I/O operation is in progress. " , Can someone guide me to right direction..
Regards
Ashish
|
|
|
|
|
gothic_coder wrote: I need user details...
Such as?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Such As, User name, Domain name..
|
|
|
|
|
Problem with Activex control property pages. when any of the properties are changed and next property page is clicked using tabs and oncancel button is clicked of the property sheet the properties are saved.
When property page is changed onapply is getting called automatically and DoDataExchange function is gets called and properties gets updated even after oncancel button.
Inorder to avoid this wht needs to be done.
sreenivas003@yahoo.co.in
|
|
|
|
|
hi,
1- do i create an event for a windowless project (for example, a dll project)?
2- how do i use event of an ActiveX control in my project, without using control(hwnd) of ActiveX? my project is a windowless project (it is a dll). i create object of this activeX:
myActiveX.Create(NULL, NULL, CRect(0,0,0,0),cw.FindWindow(NULL,NULL), 0);
thanx all
Zo.Naderi-Iran
|
|
|
|
|
|
Can anybody tell me how can we hook a process creation event. Basically I want to get the trigger in my application when a new application is created. So I think hooking the CreateProcess will do it for me. Can anybody show me the code snippet
Thanks in advance
Regards
Rajmohan
|
|
|
|
|
|
Yes. Thank you so much for the response
Regards
Rajmohan
|
|
|
|
|
Hi Gurus,
I used two combo boxes in a dialogue, it seems that the two combo boxes interference each other. When I tried to retrieve the value from one combo box, I got value from the other Combo box selection.
The response to SelectChange to other Combo box. How to make sure retrieve the correct value from the Combo box A, prevent from interference from Combo Box B.
What is the code to call to retrieve the value from a Comb Box selection?
Thank you
|
|
|
|
|
According to MSDN, CBN_SELCHANGE gives combo box ID in wParam. I think you can use this id to distinguish between combo boxes.
|
|
|
|
|
You add two variables for the two comboboxes.
from class wizard add the two different CBN_SELCHANGE handlers.
|
|
|
|
|
Dont bore of this 80's question...please excuse me for this...
question is very simple...
Why empty class's size is one Byte in C++???
Answer 1:suppose in case of creating array of objects of this empty class, then to distinguish them atleast 1 byte is required ... mE fedup of this answer
My Doubt for this answer : If this reason is valid then why hell in C, empty structure's size is zero... Here also anyone can create the array of objects of this empty structure.Here no neeed to distinguise. Is It ????
Answer 2: Since in C++ provides function members so like
class test
{
};
this is also empty class but by default every class has some default member's function...
test tObject1=test();
test tObject2(tObject1);
or
class test
{
public:
void fun();
};
test obj;
obj.fun();
so to call this function it may required size atleast 1 byte...
BUT I M NOT SUTE FOR WHAT REASON IN C++ THEY HAVE TAKEN 1 BYTE FOR EMPTY CLASS AND ZERO BYTE FOR C....PLEASE U CAN SHARE WHAT'S EXACT REASON????
Truth Can'nt be changed
|
|
|
|
|
asadullah ansari wrote: THEY HAVE TAKEN 1 BYTE FOR EMPTY CLASS AND ZERO BYTE FOR C
C++ != C and a C++ class is not a C struct
the C++ standard requires that all class objects have a "nonzero size".
see page 149 : http://www-d0.fnal.gov/~dladams/cxx_standard.pdf[^]
|
|
|
|
|
offcourse C != C++ ...Here offcourse C++ standard requires it so it's there
But my question is why they have made like this... Some reason should be for this...
Truth Can'nt be changed
|
|
|
|
|
asadullah ansari wrote: Some reason
because same pointers should imply same objects (and same types), different pointer values different objects.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
The reason is very subjective.
In the below posts you can find the link to Stroustroup site, and his "official" answer.
The interesting thing is that the argumentation he provides are good for C as well.
IMHO, I think it was just a different "taste" between K&R and B.S.
In C a struct is just a "bouch of bytes" and and address is just a "place in memory".
In C++ a struct is an "object" and an address is an "object identity" (and two objects must not have the same one).
Of course we can discuss if C++ classes and structs are "real" object or just tools to assemble them ... but it is still another matter of "taste".
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
that is what ++ in C++ means: add 1.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
reallly funny ...gud
Truth Can'nt be changed
|
|
|
|
|
|
Not being the creator of the language I can't answer definitively so I'll just refer you to the "Design and Evolution of C++" by Bjarne Stroustrup.
I hope you won't be disapointed by the answer!
Cheers,
Ash
|
|
|
|
|
to call a function you need a memory address for the function pointer. So you need the size of a void*. Typically 4 Bytes.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi,
Does anyone know of any free c++ matrix class libraries? In particular, I want to be able to search the matrix for values, obtain min/max values for each of the columns, be able to add/delete columns on the fly, etc.
The more matlab "like" it is the better.
Thanks,
|
|
|
|
|
b-rad311 wrote: Does anyone know of any free c++ matrix class...
Like a multi-dimension array?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|