this is my first post on this website,
Anyway, I recently started trying to make a win32 app, and its been going well so far. Then I wanted to add aero to my app (as in not just the borders). So I looked it up online and one tutorial said I have to include dwmapi.h. This is in the Windows SDK. I don't know how to add this to Code::Blocks. By the way, I am using MinGW as my compiler. Also I tried using the MSVC 10 (VS2010) compiler in Code::Blocks, but I got a bunch of errors when I tried to use it, relating to the compilers/linkers not being found.
Any help would be great.
Unless you want to do custom drawing of controls and theme interfaces, all you need to do to support the visual themes is to add the appropriate manifest.
If you want to extend Aero Glass into your client area, look at DwmExtendFrameIntoClientArea () and family.
There are various articles and tutorials online about how to use it. I don't know specifics of using it with Code::Blocks though.
Never Mind, I figured it out. I updated to the nightly build of Code::Blocks and it had an easy preset to help me set up the SDK.
Related
Let me preface this by stating I have vision problems so I have to magnify my screen upwards of 400% minimum to read most things including code - even when I am using a dark theme as I do when I code.
QTCreator has an issue where it moves the view on me with most keystrokes & actions - usually to the top left corner by the project file listing. I've posed questions to QT Support and even cloned the source for QT Creator looking to see if I could identify a relatively easy fix - to no avail. So now I'm trying to find a free (as in no financial cost) alternative to QT Creator so I can keep programming using QT Creator in C++.
I've tried Visual Studio Community Edition (2017 and 2019) and had problems getting things to build. It seemed like I had to rebuild the entire framework libraries for MSVC or else it wouldn't work. Additionally it seems it finds compilation errors in even the framework source - which doesn't even look wrong to me or I'd try to repair it.
I tried Eclipse (as I'm a Java engineer for my job so I'm familiar with Eclipse for Java and it does not have the problem that QT Creator has. The QT plugin - when I try to put a simple line of #include - It claims "QApplication" is unresolved. I've looked for this and all the answers say about Project->Properties->Paths and Symbols but as of 2019-12 and 2020-03, there are no options in settings for paths and symbols unfortunately.
A colleague suggested CLion from JetBrains but unfortunately it appears you have to pay for that. I have no intention of paying for a compiler or IDE.
Any thoughts on how I can get around this view changing problem or an alternative to QTCreator that doesn't cost money? If there's a setting in one of the applications I may have missed, suggest it with the version of the appication and I'll look for it and reply if it doesn't exist for whatever reason or accept your answer if it does and fixes the problem.
Thank you!
If you are familiar with Eclipse but have issues with the plugins and you intend using it for C++ I recommend checking out Cevelop (https://www.cevelop.com/) it's basically Eclipse but only for C++ and has some optimizations.
If that doesn't work for you technically you should be able to use any code editor like VSCode or Atom, but I do not know how well that works with the Qt library.
CLion is free for students but I think that doesn't apply for you.
NetBeans (https://netbeans.org/) is also free and cross-platform.
(https://netbeans.org/kb/74/cnd/qt-applications.html)
It should be possible to use Qt within the IDE.
This has probably been asked/answered dozens of times, but even after going/reading through many of these questions, i still can't figure out what to do...
Anyhow: I'm trying to write a standalone X86/32-bit C++ Windows console application using Visual Studio 2017 Community Edition (under Windows 10 x64) that runs some CMD.exe commands.
The problem: When trying to run the application on Windows 7, a dialog box pops up with a message saying that a required runtime library couldn't be found.
As i happen to be fairly new to developing/coding, you can probably understand how overwhelmed i am/was when going through Visual Studio's (project) options.
The goal to reach: I would like to know if there's a way (and how) to make my C++ console application work on Windows 7 and onwards, while ONLY using the operating system's built-in/default shipped libraries (if possible without requiring the .NET framework to run the program).
The application's purpose is really simple and is meant for learning the basics of Visual Studio development.
Hopefully someone can help me out. I know i'm supposed to uncheck any recent SDK's in the Visual Studio Installer, but at the same time it appears that the .NET framework seems to be a required component for writing/compiling CLI applications :S
I don't even know why you mention .net for C++. You only need the C++ runtime. That can be statically linked.
Well guys (i assume?), i've returned with some good news.
I'm also answering my own question since i have found a solution that gave me everything i asked/hoped for.
Code::Blocks IDE gave me both a very small program/exe of ~10kB, and it even worked without any additional/extra runtime libraries (i've tested this under a fresh/clean virtual OS # VMware Player).
Thank you all for the given support, you've been really helpful :-)
After switching from Visual Studio 2012 with latest Visual Assist to XCode 5 for C++ development I feel very unhandy. I cannot find the comfort of doing such things:
renaming
finding usages
switching back and forth between definition and declaration
changing function signature
inserting code snippets such as #ifndef A #define A /*here come header file*/ #endif
But I am sure that there are lot of C++ developer on Mac and of course there should be handy tools for them. Please advice what I need to install. What is the standard arsenal of C++ developer on Mac?
You can switch back and forth between definition and declaration with ⌘+Click on a function name.
You create Code snippets by dragging selected code to the right pane with snippets.
Here's better explanation: http://nshipster.com/xcode-snippets/
Unfortunatelly renaming only works with ObjC and C.
I didn't use VS so I don't know if my suggestions are what You've asked.
There really isn't a lot.
However, if you have to use Xcode, start here with a plugin manager:
http://alcatraz.io/
Personally I use the autocomplete plugin and the vim emulation to make my life better. Both installable via alcatraz.
Unfortunately the C++ refactoring totally sucks. I have Visual Studio installed via parallels and I'm popping back to that to do anything automated.
Top tip: Use Command-Shift-O for finding a file.
This also looks interesting (and is also installable via alcatraz):
http://codepilot.cc/
I have created a simple window using the Win32 API with C++. The window shows up fine, however, there is no styling to it and thus all the buttons and such on the window appear in the Windows 95/Me Style as oppose to the modern windows 7 look. So, how can I get this modern look?
I have tried using the xml ways stated in this (http://msdn.microsoft.com/en-us/library/windows/desktop/bb773175%28v=vs.85%29.aspx) microsoft documentation but the program does not compile. I believe this to be because I am using the MinGW compiler as oppose to the VC++ compiler but I could be wrong. In addition, I am now trying the SetWindowTheme function but I am unsure as to how this works and how to include.
Some Notes that may be causing the issue:
I am not using any IDE, Just a MakeFile
I am using the MinGW Compiler
The manifest file must be incorporated as a resource in your executable. That's something VS does almost automatically for you; it is possible to do with MinGW too, it's just a little more convoluted. Take a look at this tutorial, in the section "Enabling Visual Styles".
Although the tutorial shows a winxp look, don't worry; once visual styles are enabled, they'll show up as the native theme of your machine.
Can anyone help me out, I need a cross platform way to detect if browsers are installed e.g. Is Firefox installed, Is Safari installed etc.
I am using wxWidgets for my GUI libary if this helps.
I can check the registry on windows but am unsure on how find out browsers for Linux and Mac. Would prefer one clean cross platform way rather than several
If(windows)
then search registry
If (Mac)
then do something else
etc.
Thanks
What's wrong with http://docs.wxwidgets.org/2.6.3/wx_miscellany.html#wxlaunchdefaultbrowser?
And why not using several ways of detection? This functionality could then be implemented in wxWidgets itself. After all, wxWidgets does exactly this and just abstracts it away using function with platform specifics hidden behind.