|
At moment i don't know if this s possible but i think so ...
why do you wanna know who is logged in at a special machine ???
cr97
|
|
|
|
|
suppose I want to send personal message to my friend who is supposed to be on that machine...but unfortunately some other person logs in....!!!!in that case first I will check for the logged in user by giving the machine name....hope you can understand the situation..
ThomasKennedyBose
|
|
|
|
|
You can try to send the message to the user ...
NET SEND bob "Hi ... are you online ?"
This sends the message not to a machine but to a user in the network !
In this case it doesn't matter on which machine "bob" is logged in.
Try it at the DOS-Prompt ...
cr97
|
|
|
|
|
))))))
ok ....leave this scenario...I just want to know who has logged in on a perticular machine(I know the machine name)....then how it is possible through program??
ThomasKennedyBose
|
|
|
|
|
Good question ... ähm ... next one ...
Therefore at the moment i don't know a solution ...
maybe you find something in the "google groups" ???
cr97
|
|
|
|
|
older applications like PopUp utility on Win95 use mailslots (Popup creates mailslot named "messngr", and periodically checks if there are new messages in mailslot. when sending messages, it simply writes to messngr mailslot on another machine)
you can also use messenger service on Win2K and later, but i never used that, so i can't go into details (this is what is used when you issue a command like "net send <machine> hi" at command prompt).
|
|
|
|
|
Hello All,
I want to share HBITMAP bitween 2 applications (IPC) using memory mapped files. but i m getting problems.
anybody can tell me how can i share HBITMAP b/w 2 application ?
thanx in advance.
|
|
|
|
|
Hi.
Anyone knows a good book to start learning DirectX from ?
I mean from a beginner level...
Thanks,
Lior.
|
|
|
|
|
Did anyone use
NSExt.Awx: The Shell NameSpace Extension AppWizard v3.1
written by Krishna Kotipalli for namespace extension. When i try to use in app wizard, the message comes
"App wizard failed to load the custom appwizard 'C:\program files\vstudio\common\msdev98\template\nsext.awx' "
Can any body tell me whats the problem
|
|
|
|
|
What is the best Encryption library and where can I get it??
Also where do I find samples on how to use it??
Thanks,
grahamoj.
|
|
|
|
|
Don't know if the best, but it is damn good anyway: Crypto++[^] comes with lots of docs and samples, it is totally free and suffers from none of the export restrictions applicable in the US.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi everyone,
I am looking for a tutorial that discusses GUI component creation in C++ and packaging it as DLL. Can anyone with some experience point me to a good website or recommend a good book for this.
Thanks,
Sincerely,
Pankaj
Without struggle, there is no progress
|
|
|
|
|
Do you want a normal MFC DLL or a COM component?
For MFC DLL, here is one good resource.
http://www.mindcracker.com/mindcracker/c_cafe/dll.asp
Kuphryn
|
|
|
|
|
Hi,
Actually I was looking for a DLL that does not use MFC. Do you know any such component DLL examples?
Thanks for your reply.
Sincerely,
Pankaj
Without struggle, there is no progress
|
|
|
|
|
hi,
I am a novice to Windows programming. I have been mainly exposed to a unix
environment so far. I need to parse a file to generate a C++ header file
that can be used again the C++ code.
Specifically, I have to generate a function to convert a string value to its enum.
So,
enum numbers = {zero,one, two, three};
numbers temp = StringToEnum("zero"); // StringToEnum() should return the integer 0;
I want to maintain one file for the enum (its really big ) and generate a file
containing the function for StringToEnum()). This new file can then be used to compile
other code. Typically, I would do this by writing a shell script in unix followed by
appropriate changes to the makefile.
I am new to a Windows environment.
Can anyone please tell me how to achieve this in VC++ ( what scripting language,
if at all can I use and if there is any way I can set options to generate the C++
file that contains the function on the fly prior to compilation ).
Thanks and regards,
-sharath.
Sharath.
|
|
|
|
|
Hi,
I'm a beginner with VC++ 6.x and I'm becoming crazy. I don't know how to manage several group of radio buttons on the same dialog box... it seems that evey radio buttons are included in the same unique group !
Any ideas ???
thanks !
|
|
|
|
|
In short, radio buttons are lumped together by their WS_GROUP style.
In the old days, you could do something like:
CheckRadioButton (hDlg, IDC_FIRSTONE, IDC_LASTONE, idCheckedOne);
CheckRadioButton (hDlg, IDC_FIRSTTWO, IDC_LASTTWO, idCheckedTwo);
But you would have to make sure you had non overlapping ids. It was also
a pain to find out which button was set in each group.
You can now use
DDX_Radio (pDX, IDC_FIRSTONE, nCheckOne);
DDX_Radio (pDX, IDC_FIRSTTWO, nCheckTwo);
in your CMyDlg::DoDataExchange method.
To associate buttons in a group together, first make sure every control in
your dialog has the group style bit checked. Then set the tab order (ctrl-d)
so that successive radio buttons have successive order. Last but not least
clear the group style bit for all radio buttons except the first in each
group.
Good luck,
Iain.
|
|
|
|
|
That's it ! so hard to find such information in the Visual C++ documentation... it saves me a lot of time !
Many thanks
|
|
|
|
|
someobject *var=new someobject[100];
delete var;
----------------
someobject *var=new someobject[100];
var=null;
---------------
what is the difference betn these two statements?
|
|
|
|
|
I'm not sure, but I think that
someobject *var=new someobject[100];
delete var;
frees alocated memory
and
someobject *var=new someobject[100];
var=null;
changes the pointer to null
|
|
|
|
|
Does that mean, when the pointer is made null,
the memory it pointed to also gets freed.
can "var=null" be used inplace of "delete var;" ?!!
|
|
|
|
|
No, as C++ is not garbage collected var=NULL is probably an error and generates a leak in your application. Nobody will take care of the memory you leave behind undeleted. This doesn't necessarily mean a memory leak if var points to some memory block that is also pointed to by some other pointer, and you properly delete that.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
"var=NULL" is NOT the same as "delete var".
If you imagine that
BYTE *var= new BYTE [100]<pre>
allocates a lump of memory for your use (it may be longer than 100 bytes long) and sets
var to point to it.
<pre>var=NULL;
simply makes your variable point "nowhere". The memory is still allocated.
delete [] var;
frees the memory, but your variable is still pointing to the now freed patch or memory.
You could still use it, but not safely. Note the [] in the delete command as you
are freeing an array.
You should be doing something like:
BYTE *var = new BYTE [100];
...
delete [] var;
var = NULL;
Pointers are one of those things you struggle with for a while then wake up one morning
going "Ahah!"
Iain.
|
|
|
|
|
Thanks guys!!
That was tremenodus response in no time at all.
You're all great.
Life is so much easier with you.
God Bless All.
|
|
|
|
|
Hi, everyone!
I want to implement a mini-TCP protocol that can simulate
TCP's three-time shake hands method and simulate simple
"send" and "recv" method in socket programming. I want to
use raw socket but I am not sure whether there are some
alternative methods.
I just want to get simple implementions to make a concept
proof purpose of how TCP is working. Just for learning purpose.
I want to know whether there are some sample codes of this
topic that I can make a reference? Must I use RAW SOCKET?
Are there some alterative methods or alternative methods?
Thanks in advance,
George
|
|
|
|