ANTICHAT

ANTICHAT (https://forum.antichat.xyz/index.php)
-   Общие вопросы программирования (https://forum.antichat.xyz/forumdisplay.php?f=206)
-   -   C++ / ShellExecute (https://forum.antichat.xyz/showthread.php?t=1377439)

underpl1g 28.01.2021 18:39

help! Пытаюсь открыть страницу на свой вк при неверном значении. Но фигня происходит. Ошибка ниже код тоже. Буду благодарен кто поможет.

https://forum.antichat.xyz/attachments/27658397/

code:





[CODE]
#include
#include
#include
#include "Windows.h"
#include
#include
int
main
(
)
{
setlocale
(
LC_ALL
,
"Russian"
)
;
std
::
string nickname
{
""
}
;
while
(
nickname
==
""
)
{
std
::
cout
>
nickname
;
std
::
string password
{
""
}
;
while
(
password
==
""
)
{
std
::
cout
>
password
;
if
(
nickname
==
"underpl1g"
)
{
// проверка на логин != underpl1g = crush
std
::
cout


underpl1g 28.01.2021 18:53

Цитата:

Сообщение от withay

ShellExecuteA
или
L"open", L"vk.com/agag"
или
в настройках проекта ставишь "использовать многобайтовую кодировку"

с ShellExecuteA помогло, но почему то страничка не открывается ;)

underpl1g 28.01.2021 18:57

UPD:

C++:





Код:

ShellExecuteA
(
0
,
0
,
"chrome.exe"
,
"http://google.com  --incognito"
,
0
,
SW_SHOWMAXIMIZED
)
;



Время: 01:52