Changing the icon of an exe resulted from building in CodeBlocks [duplicate] - c

This question already has answers here:
CodeBlocks - How to add an icon to a C program?
(1 answer)
How do I add an icon to a mingw-gcc compiled executable?
(3 answers)
Closed 4 years ago.
I made a little program in C (the content doesn't matter) and built it in CodeBlocks (GNU GCC Compiler), thus resulting in an executable file. I want to change the icon of said .exe file but so far I didnt succeed.
I tried Resource Hacker however the 'change icon option' seems unavailable. Also I dont want to change the icon of a shortcut of the .exe, but having the .exe keep its icon if i send it to someone. Any tips?

Related

building a program without needing to .glade source [duplicate]

This question already has an answer here:
Linking glade file with program g++
(1 answer)
Closed 2 years ago.
I am programming something using C and Gtk+ library via Glade
I'm Compiling with a "makefile" methode and everything it is ok
but when I change the application.exe folder (like sending it to my friend) the application doesn't work
my question is there any way to compile it without needing to the glade file in the same folder?
Yes, check out GResource, which lets you embed files such as a Glade file into your executable.

How to hide console while running a batch file on windows [duplicate]

This question already has answers here:
Hide Command Window of .BAT file that Executes Another .EXE File
(17 answers)
Closed 6 years ago.
In my project i am using the btach file to start the exe file. This batch file is triiggered from an external source(may be another exe). It works as expected. But it opens a console. We don't want any conosole to displayed.
Is there any way where we can hide this console.
We tried with -- console suppress, could not get the desired results.
This cannot be done as batch files use the cmd program to execute the desired code. All i can suggest is to make the code as quick and sharp as possible to have it on screen for minimal time, or execute the code using a third party program or a different coding program all-together.

How can I get the "Windows.h" and "conio.h" headers in Xcode to use for a C program? [duplicate]

This question already has an answer here:
windows.h alternative for mac os
(1 answer)
Closed 1 year ago.
I came across some source code for a "snake" game implemented in the C programming language. I am trying to compile this game code in Xcode. However, when I try to compile it, I get an error saying that "Windows.h" and "conio.h" files do not exist. These headers are #included in the C source code.
Where can I get copies of these required "Windows.h" and "conio.h" header files? Why are they not provided already by Xcode? What are the replacements?
windows.h and conio.h are specific to the Microsoft windows operating system . They are not available and make no sense in IOS.

Is there any way to define auto declarations in visual studio? [duplicate]

This question already has an answer here:
Automatic source file preamble in Visual Studio 2010? [closed]
(1 answer)
Closed 8 years ago.
I was wondering, can i define an option (in visual studio) that will include automaticlly a code segment in each and every source code that i will create?
how can i do that?
thanks!
an option (in visual studio) that will include automaticlly a code segment in each and every source code
Assuming "include" as #include and "code segment" to be source code then use option /FL filename.
In VS2010 it's in the project's configuration properties under "C/C++"-->"Advanced" tab.
For reference: http://msdn.microsoft.com/en-us/library/8c5ztk84.aspx

Save file in Windows 7 [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
Save file with C fopen
I'm using C language to same a file in c:\SomeDirectory on Windows 7.
Is there any restriction on saving a file under this directory on windows 7?
I'm having trobles with saving this file on this folder, the Windows 7 doesn't allow me (even as administrator) to save the file.
On winXP the program works perfectly.
Could it be that User Access Control is enabled on your system? If you, can you disable for the specified folder and try?

Resources