Ilya
Нифига се сколько тут народу...
Dima
Dima
/report
/warm Abuse
Ilya
Sory Sory
MᏫᎻᎯᎷᎷᎬᎠ
/warm Abuse
I guide others to a treasure I cannot possess
Ilya
MᏫᎻᎯᎷᎷᎬᎠ
Said by someone
X3eRo0
i wrote this crackme using win32 api but when i launch it using a double mouse click then a cmd window also launches along with my application but i dont want that cmd to open up
X3eRo0
and can i do little animation in win32 api
X3eRo0
?
X3eRo0
like a text scrolling through the screen
X3eRo0
how
Dima
using win32 software painting methods
Dima
I forgot the names
X3eRo0
can you give an example
Talula
and can i do little animation in win32 api
I don't know why you have extension cpp because it's written in C
Ilya
i wrote this crackme using win32 api but when i launch it using a double mouse click then a cmd window also launches along with my application but i dont want that cmd to open up
This is the subsystem you assigned to your application during building. It should be Windows subsystem, not console application. And some code changes also should be made , like WinMain instead of main and similar
Talula
both g++ and gcc can compile it so its ccpp
I know but the program is written in C, because for C++ you'll have to use a class like MFC, ALT or OWL.
X3eRo0
i never heard about MFC,ALT or OWL
Ilya
how do i fix it?
I wrote , above
X3eRo0
hey
X3eRo0
there is no main
X3eRo0
its WinMain
Talula
its WinMain
In Windows C, it is always WinMain it's not main.
X3eRo0
oh
Talula
no you don't have to.
Oh yeah you can use 100s of other group of classes, but these are main.
X3eRo0
man i am learning a lot
X3eRo0
i dont understand what you guys are talking about
X3eRo0
can you explaine me in laymans terms
X3eRo0
😅
X3eRo0
wait
X3eRo0
Ilya
wait
Do you have a subsystem assigned to your application in the project set to "Windows"
X3eRo0
i dont think so
X3eRo0
i just opened sublime text
X3eRo0
and wrote this program
Ilya
i dont think so
Then set it to this value
Talula
Use ctrl+escape to run your command and you wouldn't see the command line.
Talula
Or create a short cut on your desktop and click it.
X3eRo0
man
Talula
Right click + drag to desktop and release, create shortcut.
X3eRo0
i have seen other people's programs
Talula
Because there is nothing in your code that displays command line.
X3eRo0
they dont behave like this
Ilya
i just opened sublime text
Do you have /SUBSYSTEM:CONSOLE If you do, change it to /SUBSYSTEM:WINDOWS
X3eRo0
Do you have /SUBSYSTEM:CONSOLE If you do, change it to /SUBSYSTEM:WINDOWS
pls explain me what is this and i am definetly sure its not set to /SUBSYSTEM:WINDOWS
Talula
pls explain me what is this and i am definetly sure its not set to /SUBSYSTEM:WINDOWS
What he is talking about is C++ thing, your program is in C, you don't need to do that... your program should run without command line... it's pure Windows Code.
Ilya
pls explain me what is this and i am definetly sure its not set to /SUBSYSTEM:WINDOWS
While linking your application, you set this command like linker option passed to link command . It is either WINDOWS or CONSOLE, you need WINDOWS to be set.
Talula
He used GCC
Ilya
He used GCC
MinGW you mean?
X3eRo0
yea
X3eRo0
i dont have vc
Ilya
yea
Then possibly it will be impossible to remove this console window. I don't know if MinGW can set other windows subsystem.
X3eRo0
so pls tell me the best env for this stuff
Ilya
Mo I'll google///
X3eRo0
i wanna make some windows apps
X3eRo0
the best development environment for this
Ilya
i wanna make some windows apps
for this it is better to use VC
X3eRo0
visual code and install the stuff it requires for c++ compilation
Ilya
the best development environment for this
https://stackoverflow.com/questions/4441551/how-to-stop-a-program-compiled-with-mingw-g-from-opening-a-console-window-in check this
Ilya
the best development environment for this
The best for this is Microsoft Visual Studio
X3eRo0
that shit is heavy af
X3eRo0
like size
Ilya
that shit is heavy af
The solution to your problem is to add -mwindows to linker flags.
Ilya
that shit is heavy af
It's configurable.
X3eRo0
i added -Wl,-subsystem,windows and it works now