You can just use the getenv function of stdlib.h. This will retrieve environment variables of the local computer.
Environment vars that would work are:
- USERNAME
- COMPUTERNAME
I have an application that has to talk to another app that is a COM Automation server. The COM server app provides a TLB file which I am able to extract into a .cpp and .h file using the Import Type Library option. Using these I can access the servers exposed objects.
However there are...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.