I'm looking for function that Open window explorer in C language. I have found this [answer](How can I open Windows Explorer to a certain directory from within a WPF app?), but this is C# language. C can't have these features? I use VS 2010.
I'm a beginner of C. So my question may seem ridiculously easy. But if you give me the answer I really appreciate it. Thanks :)
The simplest way to open a certain directory in an explorer (here c:\program files) may be:
system("start \"\" \"c:\\program files\"");
Try using SHOpenFolderAndSelectItems() function, which can open files in windows explorer.
https://msdn.microsoft.com/en-us/library/windows/desktop/bb762232(v=vs.85).aspx
Given the stslib.h library contains the system() function that let's you run shell commands, you should be able to run the command to open a new windows explorer window using the same command you would use in the terminal window.
A guideline: http://www.programmingsimplified.com/c-program-shutdown-computer
Related
I installed Visual Studio 2019 and I want to create a C project.
Not C++ and not C#
There is no option for a C solution
But the doc says VS is both a C and a C++ compiler.
I see no option for a C solution.
There is a doc on the net explaining how to create C project in console from command line. But I want to create a "normal" project.
What should I do ?
I'll summarize what was explained in the video someone linked under your question, as I was able to reproduce the steps and create a working C project in Visual Studio. Kudos to the video creator and kiner_shah for sharing.
As a precondition, you shall be able to create C++ project in VS, so make sure you have the right extensions installed.
Create a new project (Shift+Ctrl+N), select Visual C++ and Console App. This will create a new console app with a default c++ main file. Remove that file and put in a main.c file. This can be compiled, and works just fine.
You should be able to set up the environment by simply adding a ".c" extension to your code.
Additionally, you can manually change your environment by opening your file in VS, clicking on the language displayed at the bottom (which should display "Select Language Mode" and choose C.
C++ can already run C code. So just change the extension from *.c or *.i to *.cpp and it should work. It's not a GUARANTEE, but 95% of the tome it works.
Select File > New > Project, then select C++, Windows, Desktop, then select empty project in the new project menu. Then click on the folder called "Source" and press Ctrl+Shift+A, then in the new item selection, find the box at the bottom of the dialog, then name it .c.
How can I create a GUI program using batch programming. How can I program the mouse? I tried installing mouse.com file and the mouse worked in DOS. How to make such stuff using just batch or other programming languages.
Using batch is totaly wrong for such tasks. You should take a look at AutoIt (https://www.autoitscript.com/site/). It's an easy to learn script language that can be compiled to exe files and allows you to work with GUI, simulate mouse and keyboard actions etc.
Besides using visual studio or other Windows GUI tool,
i'm not sure if this can be done from batch file directly.. :/
there seems to be no command for GUI in batch script..
so, in other words, Batch file cannot create GUI..
Maybe i'm wrong..
I want to decompile CHM file to HTML format . Is it possible using c or c++ ? Is there any c or c++ library to do this.
It is possible using C++. If you use Windows, you can do it using COM. An example you can find here. This article is about C#, but it is done using COM interfaces and you can easily do the same in C++.
The open source 7-zip file manager can browse and extract content from a .chm file. Right-click and select Open Inside. Download is here.
There's CHMlib, which has the libCHMxx binding for C++ ; it seems it could run both on Linux and Windows.
I'm new to Windows development, having messed around in Linux for a while. I need to access console functions and am having trouble getting a comprehensive list of console text attributes off the web. I would like to read wincon.h and windows.h to get the info, but I can't figure out how to get at them. Help please!
Windows does not come with these by default. If you are looking for them, you need to install the Windows SDK and dig around in the %PROGRAMFILES%\Microsoft SDKs\Windows directory.
They're normally stored along with the other SDK headers. Assuming you're using Visual Studio, the easy to look at them is to create a file, add a line to #include the file you care about, right click it, and click on the open document <whatever.h> line in the pop-up menu.
You'll have to install the Windows SDK to get the header files. Windows doesn't come with the software development tools out of the box and depending on which compiler you're using, they might not come with the compiler either.
I would try looking up the console function listing on MSDN
i am looking for obfuscator tool to secure the assembly. and i need to do reverse enginnering on that obfuscated assembly to invoke methods.
right now i tried with dotfuscator tool which is integrated with VS 2005,2008.
and i follow following steps.
1. Make obfuscated assembly using GUI tool.
2. Import in reflector.
3. i am able to see converted methods and variable name in reflector.
4. After that i try out to access methods using converted name and its working fine.
i need to secure assembly even user can see method name using reflector but developer can do re-engineering on opfuscated assembly.
Is there any tool available to make secure assembly ???
and i want to run obfuscator tool from command line witout opening GUI application.
Check the Command Line Option Summary in the PreEmptive Dotfuscator Documentation.
To run Dotfuscator without opening Visual Studio, you need to purchase it. The Community Edition requires Visual Studio be open.