the include path for qt project in VS2012 is ($(QTDIR)\include\QtWidgets) and clearly this QTDIR is not defined correctly on my computer...
is there any way of fixing this?
thanks a lot
If you are using the Qt Visual Studio Add-in:
1) You should open "Qt options" window and use "Add" button on the "Qt versions" tab.
2) Right click on your project in the "Solution Explorer", choose "Change project's Qt version" and select the correct Qt version. $(QTDIR) should be used automatically.
If you are not using Qt Visual Studio Add-in (It's unavailable for the express versions of VS), try this solution.
It Seems Qt Visual Studio Add-in is not generating the .user file. We use this addin to genration solution files and project files. So, replacing {QTDIR} with the exact location will solve the issue temporarily because we generally generate the .vcproj files one time.
Related
I just installed WIX 3.10 and I'm using VS 2012 Ultimate. I have then successfully added a WIX setup project to my solution but that's about as far as I can go because the WIX menu is not showing up. The commands buttons that should appear at the top of the solution explorer window does not appear, neither does the shortcut button that appears just below the 'clean' button when you right click the project. I have tried uninstalling and restarting my PC several times but still the same.
snap shot of the solution explorer window.
I'm obviously missing something, but what? Thanks very much.
The designer you're looking for is from a 3rd party commercial product:
https://www.add-in-express.com/wix-designer/index.php
Normally one would write most Wix files by hand. It's relatively simple XML and the documentation isn't bad.
You can install the extension: Tools -> Extensions and Updates
Then in the search box type 'wix' and Enter.
The extension name is 'Designer for Visual Studio Wix Setup Projects':
Hi I'm trying to teach myself c++ but I can't even get the most important feature to work. The build/compile button won't show. Its grayed out. I only want to use visual studios because its what all the devs use in my friends company where I want to work. So, any way to get this thing working? This is Visual Studios 2013, I've tried the profile changing feature in attempt to fix it but it still shows up as grayed out and I can't use it. I have made no other changes since installing it.
Also to start my code I did file> new> file> C++ file
Thanks for any help.
Visual Studio relies on projects, so you need for your source file to be part of a project - this would also hold all the configuration for compilation and linker settings, analogous to a *nix style Makefile.
To create a new project, Do File > New > Project... And choose a suitable template from under the Visual C++ section. Typically, if you're just starting out, and only want to work with the console, then you'll probably want to choose "Win32 Console Application" as the project type.
I'm currently running a latest Xamarin.Android trial installation with up-to-date Visual Studio 2012.
When opening .axml file in visual studio I can see a visual designer and can use it normally, when I switch to the "Source" tab I can see a perfectly fine layout xml with syntax highlighted and whatnot.
The problem is, that auto-complete can only suggest XML comment and CDATA elements, nothing else.
Is there a way to turn android-aware auto-complete in Visual Studio? I recall Xamarin Studio being able to auto-complete layouts, but when opening a solution, which was edited in Visual Studio, Xamarin Studio also fails to auto-suggest.
Any ideas? Thanks in advance.
EDIT: Switched to the paid version and the problem still persists in both Xamarin and Visual Studios.
In Xamarin studio you may simply right-click on axml file and select - "Open with/Source Code Editor"
Unfortunately, i can't check it in Visual Studio.
Actually you can easily add the Intellisense-like feature in visual studio for your android layout.
The step by step tutorial is here https://kb.xamarin.com/customer/portal/articles/1920119-how-do-i-enable-intellisense-in-android-axml-files-
After so many struggles, the only solution, which worked out for me after all, was to use IntelliJ IDEA or Eclipse to edit my android layouts, and writing code-behind in Xamarin Studio. Ditching Xamarin and going back to development with Java worked out even better.
For our project the best solution was to use
- VS to edit cs code
- Android studio to work with styles, layouts,...
How do we work:
Assume the project located in C:\projects\fun
Create an Android project in C:\projects\fun\AndroidStudio
Using bat script bellow create symlinks to resources folder and AndroidManifest.xml
script.bat
mklink /J C:\projects\fun\AndroidStudio\app\src\main\res C:\projects\fun\Resources
mklink /H C:\projects\fun\AndroidStudio\app\src\main\AndroidManifest.xml C:\projects\fun\Properties\AndroidManifest.xml
it doesn't require to use axml instead of xml files, designer works fine, preview too.
The Autocomplete work only on files with .axml extension.
If your file type is xml you can create new file with axml extension and copy the content of the xml old file to the new axml file (sometimes just renaming the file don't work)
Hi there I have installed the krypton toolkit which makes your program look a lot more disgner friendly.
Heres my problem.
I can't use the toolkit i try looking through all of the options but no answer and i look on the internet no answer how can i use the toolkit on vs 2012 because i know it used to work on vs 2010
The Krypton Toolkit works fine in Visual Studio 2012.
You might have to manually add the controls to your toolbox in order to use them in the way you are accustomed to.
Show the toolbox by clicking on the 'VIEW' menu, and then the 'Toolbox' menu item.
Right-click on the toolbox, and click 'Choose items'.
Click the 'Browse' button, and navigate to the Krypton directory. This is usually C:\Program Files\Component Factory\Krypton Toolkit x.y.z\Bin\ where x.y.z is your installed Krypton version. It will be in Program Files (x86) if you are running 64-bit windows.
Select the ComponentFactory.Krypton.Toolkit.dll file (and, optionally, the other Krypton files: ComponentFactory.Krypton.Navigator.dll, ComponentFactory.Krypton.Workspace.dll, ComponentFactory.Krypton.Docking.dll, and ComponentFactory.Krypton.Ribbon.dll).
Click the 'Open' button.
Your toolbox will now be populated with the Krypton controls, and you can use them just as you did with the previous Visual Studio versions.
That's got it. Thanks.
Once OPEN you'll notice them under the name Krypton .... in the "All Windows Forms" toolbox listing.
You also need to browse for it in the menu>Project >> Add Reference and then navigate to the same dll at C:\Program Files\Component Factory\Krypton Toolkit 4.4.0\Bin\ (current version at Mar 2013).
Now you'll be able to declare "using ComponentFactory.Krypton.Toolkit;"
Around 37 controls should appear now in the design screen.
I've enabled openMP using the project settings, but when I do #include I get an error the file doesn't exist. I'm using Visual Studio stadnard edition, not Express... what else is missing? Every page I find simply says to turn it on in project settings and it will work.
omp.h and vcomp.lib is only available in VS Pro editions.
Did you add the directory containing the file omp.h to the list of directory search paths? Go to "tools - options - projects and solutions - VC++ Directories", then "show directories for" "include files". Add the path in here.
The solution for Visual Studio 2008 Express to develop OpenMP on Windows also works with the Standard Edition.
Basically you need to install the Windows SDK for OpenMP to get the libraries and headers. In my case I had to install the patch KB974479 too, but that may not be the case if one enables Microsoft Update for VS2008 (which I forgot to enable for all Microsoft products right after installing Windows).