-
Can you guys teach me how to hack?
Anonymous
Ok
Anonymous
I have a question, how connect web cam with my software in c++
Oluwaseyi
Hello, please I need help on how to use c++ program that will output the state of a fan. If 4 is input, it should output high, And if 2 it should output medium, 1 for low and 0 to output off.
Anonymous
GCC mirror by NetGull: get GCC sources in archive formats http://www.netgull.com/gcc/
Max
what fan? you have connected a fan to PC?
Anonymous
Can you guys teach me how to hack?
Not a hacking group ffs
Max
Can you guys teach me how to hack?
yes I can.you want to be a hacker?
Max
*hold on, don't ban me kekeke*
Max
Can you guys teach me how to hack?
https://youtu.be/CGM1VsTQoQg
Oluwaseyi
You mean you want to regulate the fan using c++?
No, it just a program... It will tell the user the state of the for with output statement
Gushmazuko
Hello
Gushmazuko
Can you help me pls?))
Gushmazuko
how can I do CreateProcess in C?
Gushmazuko
Exemple i have next code: #include <stdlib.h> int main() { system("notepad.exe"); return 0; }
Gushmazuko
How i can add CreateProcess function into?
Oluwaseyi
I will try it
Anonymous
How i can add CreateProcess function into?
Do you want to define a function and call it?
Gushmazuko
i want execute system("notepad.exe"); in new process
Anonymous
see it on https://msdn.microsoft.com/en-us/library/ms682425(VS.85).aspx or man manual on linux
Gushmazuko
man for WinApi?)
Anonymous
so easy
Anonymous
Just a normal function, give proper param and this function works
Gushmazuko
for this code: #include <stdlib.h> int main() { system("notepad.exe"); return 0; }
Anonymous
yeah, please hold on one second, and I am first using this function
Gushmazuko
okay!
Anonymous
boii that was quick
Anonymous
left before marie could even send the welcome msg
Gushmazuko
yeah, please hold on one second, and I am first using this function
#include <windows.h> int main(void) { char szPath[] = "C:\\WINDOWS\\system32\\Calc.exe"; PROCESS_INFORMATION pif; //Gives info on the thread and.. //..process for the new process STARTUPINFO si; //Defines how to start the program ZeroMemory(&si,sizeof(si)); //Zero the STARTUPINFO struct si.cb = sizeof(si); //Must set size of structure BOOL bRet = CreateProcess( szPath, //Path to executable file NULL, //Command string - not needed here NULL, //Process handle not inherited NULL, //Thread handle not inherited FALSE, //No inheritance of handles 0, //No special flags NULL, //Same environment block as this prog NULL, //Current directory - no separate path &si, //Pointer to STARTUPINFO &pif); //Pointer to PROCESS_INFORMATION if(bRet == FALSE) { MessageBox(HWND_DESKTOP,"Unable to start program","",MB_OK); return 1; } CloseHandle(pif.hProcess); //Close handle to process CloseHandle(pif.hThread); //Close handle to thread return 0; }
Gushmazuko
I have succes with this code 😉
Anonymous
better 😆
Anonymous
u can also use @haste_bot works well
Gushmazuko
better 😆
👍🏻 very good service
Anonymous
yeah currently works better than hastebin as pastes stay for way longer
Gushmazuko
Gushmazuko
Thanks to all. Nice group.
Anonymous
The_Ben
Which other IDE is good for C/C++ programming, apart from codeblocks and netbeans?
Anonymous
Hi
Anonymous
I'm from Uzbekistan
Anonymous
I don't know English
Anonymous
I need know English
Anonymous
⚛ Hz
Stanislav
it can work not only with qt, i think qt guys need to change the name
1
thanks
Stanislav
qt creator has some issues with latest visual studio compiler when you using clang analyzer
Igor🇺🇦
Which other IDE is good for C/C++ programming, apart from codeblocks and netbeans?
Visual Studio is the best one in my opinion, Eclipse is good too. On my daily job I use mostly in VScode
Igor🇺🇦
@crackedmind Who said something about cross platform ? The question was about good C/C++ IDE. Visual Studio is good ( in my opinion the best) IDE for C/C++.
Igor🇺🇦
@crackedmind That's your opinion.
Stanislav
visual studio is very big in size
not very big, 3-4 gb with full C++ compiler with Visual Studio
Stanislav
latest vs 2017 community
Igor🇺🇦
@joker_bat98 The minimum installation size, if you just install the Visual Studio Core Editor, is 600MB. And if you select everything to install, the max installation size is 82.58GB.
Igor🇺🇦
@crackedmind https://blogs.msdn.microsoft.com/techtalks/mvp/installation-size-of-different-visual-studio-2017-workloads/
1
i asked for packages in visual studio not materials to read ,thanks though😅
Igor🇺🇦
@joker_bat98 Visual studio c++ , without any additional libraries for Windows developemnt, office, UWP, etc ... Don't know the size for that.
1
thanks man
Igor🇺🇦
@joker_bat98 You can read more general instroduction for C++ development in VS2017 here - https://blogs.msdn.microsoft.com/vcblog/2017/03/07/visual-studio-2017-for-c-developers-you-will-love-it/