Anyway, wcout fixed it
wchar_t username[UNLEN +1];
DWORD username_len = UNLEN + 1;
GetUserName(username, &username_len);
wcout << username <<"\n";
Thanks
Type: Posts; User: Arhaikos
Anyway, wcout fixed it
wchar_t username[UNLEN +1];
DWORD username_len = UNLEN + 1;
GetUserName(username, &username_len);
wcout << username <<"\n";
Thanks
Well I tried this one as well:
wchar_t username[UNLEN +1];
DWORD username_len = UNLEN + 1;
GetUserName(username, &username_len);
cout << username<<"\n";
Still isn't...
Hello,
I tried the code as follows:
#include <windows.h>
#include <stdio.h>
#include <Lmcons.h>
#include <string>
#include <iostream>
Thanks for the links!
When I had a forum in the past, I was experiencing some "down" times which is clearly up server's fault.
Yes I agree, this free tutorial is far from the best that exist on the internet on C++. Good job!
Have you tried making a new project with the same code to see if that happens again?
Also is codeblocks compatibility available for your version of win8? I haven't really checked code::blocks...
I would check the links that forum members provide above on the sticky and make a big google search.
Thanks for the links ;)
Very useful, thanks
Thanks!
I'd go with Joomla, looks and feels more proffesional
How about this:
#include<iostream>
#include<string>
using namespace std;
int main()
{
string s = "qwert\byui";
cout << s << endl << endl;
Just a little boost:
#include <iostream>
using namespace std;
void fun(const int b[], int n)
{