Save file in Windows 7 [duplicate] - c

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?

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.

Why I can't works whit files in android 10? [duplicate]

This question already has answers here:
Can't create directory in Android 10
(7 answers)
Environment.getExternalStorageDirectory() deprecated in API level 29 java
(13 answers)
Closed 2 years ago.
It's about a week that I upgrade my android version to 10 before that i can work whit files in my app but now I can't do anything such as:
Can't Create Folder
File internal = new File(String.valueOf(Environment.getExternalStorageDirectory().getAbsoluteFile()));
internal.mkdirs();
Can't Delete folder
File internal = new File(String.valueOf(Environment.getExternalStorageDirectory().getAbsoluteFile()));
internal.delete();
Can't Get List of Folders In side It
File internal = new File(String.valueOf(Environment.getExternalStorageDirectory().getAbsoluteFile()));
String[] internalFiles = internal.list();
please some one help me if you know how to solve this problem.
As was first disclosed back in March 2019, you no longer have access by default to arbitrary locations on external storage or removable storage on Android 10+. add android:requestLegacyExternalStorage="true" to your manifest. Then will work.

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

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?

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 to open file using native app in windows phone 8 using phonegap?

I am trying to open a file like a pdf file in local storage using phonegap in windows phone 8 but do not find a way to do it. I have seen one similar question linked below but no code example is provided.
Opening a PDF file in Windows Phone
I would really appreciate it if you could help me with this.

Resources