I hava a problem to read specific string from file.I am useing CStdioFile class.Code is here
if (file.Open(_T("\\App.txt"), CFile::modeRead | CFile::modeNoTruncate))
In my line is like this
Mr. As 10 Developer
Mr. PC 19 Analyst
Now i want to read Mr. As and Mr. Pc Name only.How can i read this.Plz help me
is there some way to check status of printer(selected from CPrintdialog selection) means either its Ready, offline or unable to connect with server ??
like GetDeviceName() gives name of printer but how to check its status.........
It has returned error code 87. Having been referred to MSDN, i came to know that this error code indicates that one of the functions parameter is invalid. But i am not having an idea about which parameter i am passing wrong.
Any clue?? Your help would be greatly appreciated.
I need to get the name of the local system Administrator (System is in the domain). As that name however appears in the ControlPanel->"UserAccounts" list or ControlPanel->AdministrativeTools->ComputerManagement->LocalUser and Groups->Groups and clicking on "Administrators" Group, I am trying to list out all the users under "Administrators" Group and for this purpose I am using NetLocalGroupGetMembers() and including lmaccess.h file. But I am getting the linker error "error LNK2001: unresolved external symbol _NetLocalGroupGetMembers@32". Doesn't this header file "lmaccess.h" come with Visual Studio?
Using ADSI, I can get the members of an "Administrators" group (local system) , however, that list doesn't include the name of the the local system administrator , who is a member in the domain.
Is there anyother alternative mechanism/function to get the local system Administrator Name?