Add new project to opencl amd SDK example in Visual Studio 2010 - visual-studio-2010

I have build their solution and it works but I want to add a new project and I just can't it says
Cannot open include file: 'CL/cl.h': No such file or directory
What seems to be the problem

Best thing to do is to copy all the settings and project properties from the SDK samples and then execute. Or take a sample project and copy it to your workspace and deleted all the unnecessary files.

Related

how to move a cordova project from intel xdk to visual studio

I'm trying to move a project created in Intel XDK to Visual Studio 2015.
I used the file > new > project from existing code ... option to create a new project in VS from the Intel XDK project.
I commented out the script line for the cordova.js file. because i read somewhere that VS creates and inserts for you.
when i go to build i get:
cordova-build error BLD105: The Cordova build did not recognize your working directory as a Corvova-based project. This is often because the "www" directory is not at the root of your project
I have a www directory in the project folder.
I determine that the cause was i didn't have a config.xml file in the root directory. it seems the XDK application creates the config.xml when it calls Cordova to do a build.
I have the following questions:
What is the best way to get a config.xml file?
Is there any other gotchas from moving the project?
The easiest way is to make a new Cordova project, open config.xml by viewing the code instead of in the designer, select all & copying it to your clipboard. Then, re-open your XDK project, add a new item, call it config.xml and drop your clipboard contents into it.
You may need to re-configure a bunch of settings to get parity with what Intel does, but this should unblock the build.
(Disclosure: I work on the Tools for Apache Cordova in Visual Studio at Microsoft. And thanks for using our tools!)

Getting directory of current project, and not visual studio plugin

I am currently trying to write a plugin for visual studio that accesses the bin folder of the currently open project in Visual studio. However, all the solutions I have come across simply return the bin folder and directory of the plugin that is I am writing. For example, I have used the method detailed in the article below, which claims to return the current project's directory.
How to Access Bin Folder of Active Project using visual studio 2010 add in
path = System.IO.Directory.GetParent(Environment.CurrentDirectory).Parent.FullName;
System.Windows.Forms.MessageBox.Show(path);
Is there anything I am missing on how to make this work?
A Visual Studio project can have several project configurations, each one with a different output build folder that is set in the project properties window, Compile/Build section, Build output path. Furthermore, the output build folder can be absolute or relative to the project folder.
The code of this article gets the absolute output build folder for the active configuration of each project of a solution:
HOWTO: Get the output build folder from a Visual Studio add-in or macro
http://www.mztools.com/articles/2009/MZ2009015.aspx

Copy/Move Visual Studio Projects/Solutions To Another Computer

So I have a handful of Visual Studio projects that I need to move to another computer. Is it as simple as a copy and paste or will that mess something up? Both machines will have the same version of Visual Studio installed, so that shouldn't be an issue.
Is there an export function that I've overlooked?
If the Visual Studio version is the same, you can just copy the project folder.
Till the time you are moving your solution file and associated files you should be good.
In case you are using any source control update your solution from there.
Hope you have the same VS version and any addon frameworks you have
You can directly copy the project to the projects folder. This worked perfectly for Visual C++ projects for me (and also some other projects). But when I copied my Cordova App from one PC to the other (Both had Visual Studio 2015), I wasn't able to open the project. Whenever I tried to open the project, trying both the ways - directly from the Project file and the open option in Visual Studio, it at first opened but when I tried to open a file, it just got hung and didn't respond.
This problem may occur because Cordova apps have some configuration files that might be different for different PCs. I am not sure that this is the reason for the problem.
A solution that I used was that I created a new Project and copied the files to the project folders (excluding the configuration files).
Can you save the file to cloud? if so then you could potentially upload the file to cloud and download the file to the new

Copying from existing project

I have some problem in visual studio.Ok here is the scenario
first i add an existing project to my project in visual studio,and after that i tried to compile and run and it works properly...and then i exit the visual studio. and copy the folder or the visual studio solutions into my laptop.after that i open the visual solutions in my laptop after the visual studio loads,the project that i add before is greyed out and empty...can you help me on this please how can i see back my project that i add before.
When you add an existing project to a solution, you're adding a link. You didn't copy the actual project, you just copied the link, which shows as empty on your laptop.
Right-click on the project and look at the properties, you should see the location. This should show you the problem.
You won't be able to recover that project without going back to the source, you don't have the code on your laptop.
-t.
Do you copy the project off your portable drive to your hardrive? Sometimes copying it off external drives has solved that issue for me.

copying the visual studio settings for one project to another

I have a visual studio 2010 project done in VB.net and i have around 45 variables in the application settings. The one you set in the properties.settings. Now i m having a similar project and i wanna copy the settings variables to this project. Not sure how to proceed with this.
what i did is tried to copy the auto generated code for the settings into that project and it didnt work out well. I am not even sure how to google this out and tried the following.
copying application settings from one project to another in visual studio
moving application settings between visual studio projects
Both of this didnt get what i wanted and am actually out of clue on what to search for this.
So is there a way to directly copy the settings from one project to another project.
All I did was grab the physical Settings.Designer.vb and Settings.settings files found in the "My Project" folder of your applicaton (assuming it's a windows App and not web) and copied/replaced the existing settings files in the new project.
Did a rebuild of new project and errors kicked back but that was just the desinger code referencing the old project name. Corrected by replacing the old project name with the new one and voila, worked.
HTH
Dave

Resources