Use the Win32 API GetComputerName: TCHAR pBuffer[61]; DWORD dwSize = 60; GetComputerName( pBuffer,&dwSize);
L
Liu
@Liu
Posts
-
Getting machine name in vc5 -
Q: Sending an e-mail programatically?You HAVE to set up the client machine (configure an e-mail profile) at least once before you can use MAPI to send e-mail. Actually, before doing that, you HAVE to add the an e-mail account for this client to the exchange server that is processing the e-mails. If you have done the above, the rest (sending e-mail from a program) is easy. I have sample code (a simple ActiveX control) if you are interested.