visual-studio

Removing incomplete P Tags (using REGEX or any other method)

hi, my problems is a bit case specific , first of all, Its only for <p>tags not for any other tag.So you need not worry about any other tag. I am having html document which is a output of one software ,but it has some errors like unclosed <p> tags. eg. I have taken all document in a string my document is like .. <html> .....

Listing all referenced assemblies

How to list all referenced assemblies? (referenced assemblies from referenced assemblies...) and there targeting framwork (.NetCF2.0, .Net 2.0)? Are there any apps (or Reflector plugins) ? My problem is that when I deploy a CF application in VS2005 some Assemblies from the full .Net framework are deployed. But I don't know why... ...

Is it possible to get the size of a variable in Visual Studio?

While debugging a C program in Visual Studio 2008, is it possible somehow to get the size of variables (in bytes)? P.D. Of course I can print sizeof(var) for each of them ...

Is it possible to estimate the size a call function will need in the stack?

Hi, I am trying to understand a C code from another programmer. Sometimes I get segmentation faults and I think it could be due to stack overflow. I wonder whether in Visual Studio (or another way) is it possible to estimate in an easy way, given a call to a function, the size it will need on the stack when creating variables. Thanks ...

Redirect stdout to Visual Studio output window from native c++ dll

I have a c# windows app that calls a managed c++ dll, which, in turn, calls a native c++ dll. There seem to be some performance issues in the native c++ code, so I'm doing some simple profiling. I'd like to dump the results of the profiling so that the Visual Studio output window picks it up. I thought that printf would do the trick, but...

C++ resource syntax error

I have a resource: IDC_MYMENU MENU BEGIN POPUP "&File" BEGIN MENUITEM "E&xit" END POPUP "&Stuff" BEGIN MENUITEM "&Go" END END On the first END it says there is a syntax error, I don't understand why. Anyone know? :( ...

Is it possible to know which lines of the source code were executed?

Hi, I am debugging a C code with Visual Studio. There is a loop called 10000 times and in one of the interactions, at the end of the loop, there is an error, as the program tries to access the N+1 value of an array of length N. I want to go back and debug the origin of the error and I wonder if somehow Visual Studio, in debugging mode, ...

vs2003: build issue with very large solution

My VS2003 , C#, solution has close to 230 projects. Building this sln takes a long time. What would you recommend that I do to build it more efficiently. What are the best practices to effectively isolate issues as I encounter while building. Plus, I just work here and can not simply upgrade to VS2010. ...

vs2003: project not getting built

Hi, I have vs2003 c# solution with multiple projects. It seems like project1 in sln file is not getting built and is not producing the desired DLL. Project2 depends on project1.dll and is getting build errors. How do I insure that project1 gets built. Do I have to change some sort of build property like Debug vs Release. The DLLs are sup...

create and restore a mysql db using a setup project (installer) in VS.Net

What is the best practice for creating an installer for a winform application. The application is supposed to install the following without connecting to internet. .Net Framework 3.5sp1 MySQL Server My SQL Connector Restore Mysql db Update Config file with the MySQL uname/pwd. I have all the msi files for installing the above mentio...

Can VS 2010 check/update header files automatically?

Hello! That's pretty much my question: can VS 2010 check and update header files in C++ code automatically? And can VS 2010 automatically generate a cpp file from a header file, saving you the time to copy the function definitions from the header file? I mean, can it figure that there's no implementation for some method and generate an ...

Debugging in multi-project under one solution in vs 2010

I have multiple projects in one solution. Project A (the starting project) starts Project B using Process.Start. All the debugging methods work fine in project A, however after A starts B, not only do breakpoints not work, but also the output from calls to System.Diagnostics.Debug.WriteLine is not displayed. Does anyone know how to de...

How to adjust a FlowDocuments fontsize relative to its container ?

I have a FlowDocument inside a FlowDocumentScrollViewer. The size of the container changes. So does the size of images in the FlowDocument: <Paragraph> <Image Source="/InnovationsforumInfoterminal;component/res/wohnzimmer.jpg"></Image>--> </Paragraph> The text-size however always stays the same: <Paragraph FontFamily="Arial"> ...

C++ visual studio libraries

Hello! Is there any way to make static libraries built in Microsoft Visual Studio independent from used CRT (with debug support / without it)? I mean like, for simple C library it is possible to generate code using gcc and then use the same static library in visual studio. The resulting library.a file is completely independent from /MT...

Increase debug item count in Visual Studio

I routinely have to look at byte [1024] and longer in the debugger (VS 2008). At least by default, it shows 15 items. I have 23" widescreens that could display 3 or 4 times that vertically. Does anyone know how to get more items to display (if it is possible)? Clarification This is primarily for C# code and I am mostly interested in t...

What are the major pros and cons to developing .NET Web Apps on Windows Server 2008 R2 vs. Windows 7?

My question is in the context of ease of development with MS development tools and IIS. What are the pros and cons to developing directly on Windows Server 2008 R2 instead of Windows 7? ...

vs2003: how to stop build at the first error

Hi all, So as I attempt to build a huge solution with about 200+ projects.. How do I stop the build at the very first error instead of waiting till the whole build is finished. Where do I read the log of the build or the output of the build? If I am able to stop the build at first error, where is the file located so I could read that...

.NET - How to determine which Model3DGroup has been clicked on?

I've got a bunch of Model3DGroups and want to determine which one has been clicked on. Here's an example of how they look like: <Model3DGroup x:Name="Linie04OR23"> <!-- Linie04 (XAML Path = (Viewport3D.Children)[0].(ModelVisual3D.Content).(Model3DGroup.Children)[8]) --> <Model3DGroup.Tran...

Building a Visual Studio Package based on another one

I want to add my own project type based on IronStudio. So, I downloaded the source for and compiled the latest version of IronPython, then I created a new Visual Studio Package. I added the Templates\Projects\MyProject folders, and added a file to it, and set its property "Include in VSIX" to true. Then modified the main Package cla...

What is the best arhive lib for VB?

I am looking for a good arhiver lib (DLL)for VB? A fast DLL that can pack and unpack file fast and easy! If possible to be able to pack in .rar & .zip format tnx! ...