|
I don't know special api-calls for this ...
but maybe you can use the Windows command "net send" ???
(translated from a german windows ...)
NET SEND {Name|*|/DOMAIN[:Name]|/USERS} Message<br />
Example:
NET SEND ThomasBoseKenn "Do you need further help ?"
cr97
|
|
|
|
|
thanx...but it should be done through programatically...slect an user name from the dropdown box which displays all the users in one domain,when we click on "Send" button ,string in the edit box should be sent to that user just like a winpopup message(just like NET SEND cr97 "Ya..I need your help?" command works)....
BR
Thomas
ThomasKennedyBose
|
|
|
|
|
And why don't you make a dialog, where the you can select the text and the user ???
And after pressing "SEND" you concatenate all the strings like
<br />
strCall = "NET SEND "+strUserName+" \""+strMessage+"\"";<br />
then you can execute "strCall" ...
is it a solution for you ?
cr97
P.S. Sprichst du deutsch ?
|
|
|
|
|
ya....I have already done that code.....any how I don't leave you ..now you tell me how to get the machine name(like "\\mdpworkstn64")by selecting the username....any APIs??
BR
Thomas
ThomasKennedyBose
|
|
|
|
|
IMHO if you have the user name it is not necessary to know the machine name ...
cr97
|
|
|
|
|
ok ..ok ....sorry for that scenario...actually what I want is I will give the machine number(or name like //mdpwksrnd64)and I want to get the user name who has logged in to that machine...is it possible??
ThomasKennedyBose
|
|
|
|
|
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?
|
|
|
|