w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
  Home » VISUAL STUDIO 2010 » Page 1
Visual Studio 2010 - Extracting YEAR from a parameter with date
SELECT st.Name AS Region, st.SalesYTD AS Sales, YEAR(so.OrderDate) AS OrderYear FROM Sales.SalesOrderHeader AS so LEFT OUTER JOIN Sales.SalesTerritory AS st ON so.TerritoryID = st.TerritoryID WHERE DATEPART(YEAR,so.OrderDate)=DATEPART(YEAR,@OrderDate) As suggested by Ian Preston

Categories : Visual Studio 2010

Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack windows app
Use runtime path for loadding report I.e reportDocument.Load(Application.StartupPath + "CrystalReport1.rpt"); Make sure report files are placed in specified folder which is directed by this path. use string str = Application.StartupPath; to be sure that which folder it refers to then place report files in this folder it will work fine. I faced similar problem like you and then I noticed this pat

Categories : Visual Studio 2010

Create and set Registry string with the "App Installed Location Path" value
Create the registry item in the setup project's registry view and use case-sensitive [TARGETDIR] for the value. TARGETDIR is the property associated with that Application Folder, and square brackets cause it to resolve to the actual value.

Categories : Visual Studio 2010

Visual Studio parsing behavior with custom property sheet to set platform tools version
The platform should be set in the very beginning, like described in the link you posted. It is used in the Microsoft.Cpp.Default.props / Microsoft.Cpp.props. The 'v100' you get could come from one of the .user files. Do you really need/have them? I mean, here: <Import Project="$(UserRootDir)Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)Microsoft.Cpp.$(Platform).user.

Categories : Visual Studio 2010

Crystal Reports Does Not Show Data From View
Got it. I didn't update the object in my code which feeds the report. I guess that since the report is attached to the SP, that's why it showed in "Main Report Preview" but not when running in VS.

Categories : Visual Studio 2010

VisualStudio - library project that joins multiple library projects
Since those are your libraries, add a common topmost namespace to all the libraries (or add them to one of the existing namespace) and compile them in one project. Then, reference this aggregate DLL.

Categories : Visual Studio 2010

Get Installation Folder Path string in VB2010 Setup Project
The answer is that you can't because Visual Studio setups don't have that capability. All custom actions, vbscripts, C++, C# or whatever all run after the files have been installed. There is no capability to run code before or during that UI sequence. If you want to get the location from somewhere on the system, setup projects have a search that might work to get the default value.

Categories : Visual Studio 2010

vsdraCOM causes the codebase path to point to build path
I'm going to expand on Hans' answer and that link info, and it may be more than a comment can hold. That reg file will contain the path to the file and the link article recommends using [TARGETDIR], which is basically wrong if the file is not being installed to the application folder. The path to your file should be written as [#file-key] in the reg file that you import. In a VS setup project th

Categories : Visual Studio 2010

How to set VC++ Directories with CMake
Simply add the following line to your CMakeLists.txt: include_directories(-your-include-folder-) Similarly, add the following line if you want to set the library directories: link_directories(-your-library-folder-)

Categories : Visual Studio 2010

How to build single nuget package for multiple projects in a solution
I don't think you can because Octopus Deploy doesn't seem to support granularity above the project level. If you could deploy a solution in total, what you're asking could work, but the process steps available in Octopus are pretty much leveled out at one project each. I see the allure of one deployment for what is to your way of thinking a single product release with four things in it, but the

Categories : Visual Studio 2010

Linked resources file (resx) with unlinked designer.cs file
It doesn't seem possible to have a local designer.cs But there's a workaround : Open the .csproj of the project holding the link Rename the Designer.cs file everywhere, for example MyResource.Designer.cs -> MyResourceWPF.Designer.cs In the original folder copy the MyResource.Designer.cs file to MyResourceWPF.Designer.cs In the project holding the link open the .resx file and modify it (for examp

Categories : Visual Studio 2010

pdcurses creating the library for visual studio 2010 fails (cannot access)
Launch a Visual Studio 2010 command prompt. This sets your environment properly, so that nmake.exe is in your PATH on Windows. Next, "cd" into the "win32" subfolder that was created when you extracted the compressed tar distribution of PDCurses3.4. Now, you are ready to build PDCurses using Visual Studio's compiler using this command: To perform a "clean" build target: nmake -f vcwin32.mak DE

Categories : Visual Studio 2010

Visual Studio 2010 Weird Bug?
This is usually caused if you're using some kind of "broken" extension. Try running VS in safe mode (http://msdn.microsoft.com/en-us/library/ms241278.aspx) without extensions. You can also try /ResetSkipPkgs (http://msdn.microsoft.com/en-us/library/ms241276%28v=VS.80%29.aspx) flag. If the problem occurs then try re-installing VS

Categories : Visual Studio 2010

Aligning controls using the Visual Studio 2010 Resource Editor
Guides aren't created automatically for you, you have to set them yourself. This is done by clicking inside the rulers to the top (for vertical guides) or to the left (for horizontal guides) of the dialog: Once set you can move guides around as desired by clicking on the arrow inside the ruler area. To remove a guide, simply drag an arrow outside the ruler area.

Categories : Visual Studio 2010

SSIS File Watcher task on Server 2012
The short answer is yes. SSIS does not come with an in-built file watcher task, so it sounds like you installed something like this: http://www.sqlis.com/post/file-watcher-task.aspx. In order for the server to be able to execute the package it will be looking for the file watcher ell in the GAC. The task I noted here has an msi file which will take care of the installation process. If the task

Categories : Visual Studio 2010

Cmake - Differentiating symbols among targets
When you want to specify defines for an individual target, use target_compile_definitions

Categories : Visual Studio 2010

CMake and Visual Studio 2010 and Additional Library Directories
By using link_directories(), I was able to update "Additional Library Directories" field in the "Linker" section of the Project properties. find_package(Boost 1.55.0 REQUIRED COMPONENTS system filesystem) if(Boost_FOUND) set(Boost_USE_STATIC_LIBS OFF) set(Boost_USE_MULTITHREADED ON) set(BOOST_LIBRARYDIR stage/lib) include_directories(${Boost_INCLUDE_DIRS}) link_directories($

Categories : Visual Studio 2010

Visual Studio 2013 always opens Properties window in Category sorting
Something is broken on your machine if this does not persist between VS sessions. Always hard to guess what that might be, you'll need to look for the reason that the current settings are not getting saved on your machine. There is one specific file that gets updated every time you exit VS, it records the value that you care about. You'll find it in C:UsersYourNameDocumentsVisual Studio 2013Set

Categories : Visual Studio 2010

VisualStudio 2010 - How do you display only YEAR in a chart?
There are a number of ways to achieve this. The easiest, is to calculate a year value directly in your dataset, and then use this field in your chart. This is a simple matter of adding the following code to the select part of your dataset: select ... s.OrderDate, YEAR(s.OrderDate) AS [OrderYear], -- This is the new field s.TotalDue from ... Alternatively, you can create a

Categories : Visual Studio 2010

Can't configure git to ignore Visual Studio files
Git Ignore only works on files that haven't already been added to source control already. You'll need to remove them manually and then they will be properly ignored. Stop tracking and ignore changes to a file in Git

Categories : Visual Studio 2010

How to expand command-line arguments when debugging in Visual Studio?
If you are invoking visual studio as such: devenv /debugexe 'myprogram' *.txt then yes, args[] will contain '*.txt' and you will need to parse and respond to that in your program. (Just the same as if you'd launched the program without the debugger).

Categories : Visual Studio 2010

'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior' could not be loaded
I am not sure whether this was because I used Windows Update and forgot to restart or because I simply didnt restart after the IIS installation and deploy. One way or another the answer was to reboot the server.

Categories : Visual Studio 2010

'ORDER BY' total for location on an SSRS graph in VisualStudio2010
go to series group properties and change the sorting by total "Z to A" see screen shot for your reference ...

Categories : Visual Studio 2010

How would you manage security and setup this on TFS
Follow the link on TWA for your project http://servername:8080/tfs/collectionName/masterProjectName/_admin/_versioncontrol then click the source control directories of the projects. On the right side you can add your teams and give the permissions seperately to the directories.

Categories : Visual Studio 2010

Telerik AppBuilder extension for Visual Studio does not have UI Designer
If you want to use the Kendo UI visual Designer, you can use the AppBuilder in-browser client or the native Windows client. You can initiate a project with either of those tools, sync the code with your source control provider (git-based), and then continue development with Visual Studio.

Categories : Visual Studio 2010

visual basic difference in dates between two lines in text file
I guys I have worked it out I have done this by reading the text filed line by line in a loop at the moment I have not put any validation in to show people who have forgot but the basics are there Dim FILE_NAME As String = "times8.txt" Dim start As DateTime Dim finish As DateTime Dim total If System.IO.File.Exists(FILE_NAME) = True Then Dim objReader As New System.IO.St

Categories : Visual Studio 2010

Ogg vorbis crash
Never mind, i solve this. It seems OggVorbis is touchy when it comes to Windows and use of ov_open due to some linking issues with stdio.h and fopen. Documentation says it clearly: WARNING for Windows developers: Do not use ov_open() in Windows applications; Windows linking places restrictions on passing FILE * handles successfully, and ov_open() runs afoul of these restrictions [a]. Se

Categories : Visual Studio 2010

What caused my Entity Framework database context to fail to generate?
The change of the start-up project was caused by the modified .suo file. This Solution User Options file stores personal settings concerning a specific solution, among which the start-up project. This information is not stored in the .sln file. I'm not aware of any .suo settings that could affect the code generation form an edmx file, but it could be related. The lesson to learn here is: never c

Categories : Visual Studio 2010

Working with HBitmaps
I figured it out. In my code above there were two mistakes (of which I'm aware of). First, the memory DC must be deleted after use, so ReleaseDC must be replaced by DeleteDC. Second, one must know that an object that is selected into a DC cannot be selected into another DC. Hence it is important that after operating on an object in the memory DC, the object must be unloaded by selecting the DC's

Categories : Visual Studio 2010

Correct syntax for the WHERE by date
You don't mention where you will specify the day and month, so to get a specific D/M: SELECT bene_records.*, Day([b_date]) AS MyDay, Month([b_date]) AS MyMonth FROM bene_records WHERE (((Day([b_date]))=1) AND ((Month([b_date]))=11)); You can replace the hard-coded date/month with your own criteria.

Categories : Visual Studio 2010

"Invalid License File" while using CMake with Visual Studio Express 2010
This problem is caused by AVR Studio (and possibly) other products installing a "devenv.exe" in the folder C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDE. By default, CMake will attempt to use "devenv.exe" and fall back on "MSBuild" if it is not found. MSVC Express 2010 does not use a "devenv.exe", but instead has its own executable. To fix this problem, rename the "devenv.exe" fil

Categories : Visual Studio 2010

How Object(.obj) files generated in Visual Studio
Object files contain relocatable machine code that is generated from your source code. Visual Studio creates one .obj file per each .cpp file. Then depending on the project (executable, static/dynamic library) you can get relocatable or non-relocatable code. If code is relocatable then the symbols (function calls, variables) that are not available at the compilation time are marked as unresolved a

Categories : Visual Studio 2010

How to create a dynamic Infopath form?
Deploy your InfoPath form as a site content type. Modify the definition of the list created dynamically by your webpart so that the default content type for the list is the one created when you deployed your InfoPath form. Then, when a user creates an item in the list, the default content type will be used and the InfoPath form will be displayed.

Categories : Visual Studio 2010

"opencv_core220.dll is missing"?
It should be under path OpenCV-Path uildx64 or x86vc10 or vc11in p.s.: Use x64 if you compile your project under x64, and x86 for Win32. Use vc10 for VS2010 and vc11 for VS2012. To make it work, you should do one of the following steps: Add this path to Path environment variable. Add this path to your project's Debugging Environment. Copy opencv_core220.dll to the output folder of yo

Categories : Visual Studio 2010

MASM errors on Build in VS10
It looks that your asm source is a RosASM source code and you will have no chance to compile it under MASM / Visual Studio. RosASM is a win32 assembler that used a quite original design that let it store the source code inside the compiled executable (in a dedicated section) and many other features like an integrated IDE, integrated debugger, some powerful macros, a resource editor, a dialog edit

Categories : Visual Studio 2010

Static build with PCL and OpenCV in Visual Studio 2010
The precompiled vtk libraries you are using from PCL must have been compiled using /MD flag (Multithreaded DLL) in Visual Studio. You need to recompile them using the /MT flag (Multithreaded static link).

Categories : Visual Studio 2010

VS2010 Premium 'Connect To TFS' window not staying open
It looks like XP mode is interfering. Not all applications are supported and I have never seen or used visual studio in this manor. You would be better either running VS2010 on your local Windows 7 or running it in a VM (Not in XP mode).

Categories : Visual Studio 2010

REGISTRY issue in Visual Studio SETUP PROJECT
This solution works for me! Please note the one and only comment in the article: http://blogs.msdn.com/b/cristib/archive/2012/09/28/10354108.aspx Not deleting the question in case other people encounter this problem. :)

Categories : Visual Studio 2010

Calling user defined functions in Package Manager Console in Visual Studio
PowerShell needs to load the type first before it can call it. Add-Type -Path c: estClassLibrary1.TestClass.cs [ClassLibrary1.TestClass]::Replace("testx","x","y") You could also put the add-type call into your NuGet_profile.ps1, and load your DLL if there will be multiple classes you need to call.

Categories : Visual Studio 2010




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.