I'm creating a VS2008 installer script for my project.
I want to add a value to HKCU\Software\Microsoft\Windows\CurrentVersion\Run to run my EXE at start up.
Is there a way I can specify a reference to my executable ("Primary output from Project"), so that the installer script inserts the correct value into the registry when it runs?
...
Based on my co-worker's code, he is passing HTML attributes into his form declaration in the view using BeginForm and the resulting HTML looks like:
<form action="/Reviewer/Complete" ipbID="16743" method="post">
How can I obtain the ipbID in my Controller code? I've trying
HttpContext.Request.QueryString["ipbID"]
... and ...
Req...
Hey guys,
I have a struct I have written which is supposed to represent an entire UDP packet, with the ethernet header and all. Here it is:
#pragma pack(1)
struct UDPPacket {
// an array to hold the destination mac address of the packet
unsigned char dstmac[6];
// an array to hold the source mac address of the packet
un...
I suspect this could be posted elsewhere but it seems to only be an issue with VS 2008 - I haven't experienced this before and it is frustrating me. I run VS 2008 on my dev box (Win 7 Ultimate, core i7 processor, 9GB RAM) and noticed that recently when I run a particular app I'm developing out of the debugger, VS then becomes the frontm...
Hey.
I've got VS2008 professional edition installed and can't find Dotfuscator. I also can't find anywhere to download the community edition. It seems that Dotfuscator should already integrated into VS2008, but I only have other tools visible such as Reflector. Is there a way to download Dotfuscator separately?
Thanks
...
Note: My situation has slightly changed, so I removed all my previous edits and added a new paragraph. However the basic question listed below is still accurate.
I am trying to publish my ClickOnce VSTO application and have generated a certificate to sign the manifest. The problem is that on the target computer, of course the certificat...
While working within C++ libraries, I've noticed that I am not granted any intellisense while inside directive blocks like "#ifndef CLIENT_DLL ... #endif". This is obviously due to the fact that "CLIENT_DLL" has been defined. I realize that I can work around this by simply commenting out the directives.
Are there any intellisense opti...
I have a .NET app that I would like to install on a VM for remote debugging purposes.
The app uses a native VC++ DLL which links to MFC and the MSVC runtime libraries via DLL.
When I run depends on the VM, it says that the DLL needs the following DLLs:
mfc90d.dll
msvcm90d.dll
msvcp90d.dll
msvcr90d.dll
msjava.dll
Also, it reports...
When I try to build my solution, I get the following error:
Visual Studio cannot start debugging because the debug target 'c:\target' is missing. Please build the project and retry, or set the OutputPath and AssemblyName properties appropriately to point at the correct location for the target assembly.
My output path is set correctly...
I want to use UrlRewriter.Net as described in this blog by ScottGu.
In the example below, page.aspx should display a page text stored in the database based on the title= URL parameter.
After a couple of tweaks the only remaining issue seems to be that
a final dot in the URL causes a 404
a sequence of two dots in the URL causes a 400...
WCHAR* someString = L"SomeString\n";
WCHAR s1[MAX_PATH];
// I'm sure this is right code.
StringCchCopyW(s1, _countof(s1), someString);
// But I'm not sure about these example.
StringCchCopyW(s1 + 100, _countof(s1) - 100, someString); // Is it right?
StringCchCopyW(s1 + 100, _countof(s1), someString); // Is it right?
// How about these...
Getting this error "This server version is not supported.Only Up To Microsoft SQL server 2005 are supported" after I create a data connection in Visual Studio 2008 SP1 and SQL server 2008 R2. Any ideas would be great.
No other version of SQL server Installed.
The error occurs after I select server, then database.
Just as I click OK I ...
I imported the following and the problem couldn't be avoided
Imports Oracle.DataAccess.Client
Imports Oracle.DataAccess.Types
An error occurred creating the form. See Exception.InnerException for details. The error is: The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception.
...
My VS2008 is crashing whenever I close it, if I have changed how windows are arranged (e.g. docking the Output window somewhere else). I have switched off all plugins etc. I suspect that the settings file for the layout is corrupted or something. Where is it, and would delteing it possibly help?
...
We using a mixture of C++ (MFC) and C# within our software, and include the usual copyright spiel above our classes and wish to include it automatically.
I've updated my C# Class Template file in C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class.zip
Question is does anyone know how to do the ...
I have an ASP.NET project and want to include an XML file inside the project to store some relatively static data. To do this I selected "Add File" from the solution context menu and picked my XML file. Having added this to my project, I then wanted to load the XML from within code. I tried the following:
XmlDocument xmlDoc = new Xml...
I'm using VS2008 Pro and as such my c# project includes a bunch of Unit Tests written in the MS bundled unit test framework (sorry I have no idea what its official name is!). I would like to be able to run these unit tests as part of my build process.
Is it possible to get Nant to automatically run these Unit tests during a build?
...
I have a (VS 2008) C# project that needs to use a 3rd-party COM object. For that, I'm told, I need to register the COM objects's tlb file. So I do
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regtlibv12.exe blahblah.tlb
which gives me
Registration of FREngine.tlb successful.
But then I can't add a reference to it in the C# p...
For the site my coworkers and I are working on, we used the dataTable format from www.dataTables.net and we have to use Server-Side processing because of how much the tables grow. Here's the view:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<script type="text/javascript" charset="utf-8">
$(document).ready(f...
I have a .NET application that is developed with Visual Studio 2008 which uses a C++/CLI DLL named xVJob.dll.
I am getting SideBySide errors when I try to run it on a test VM. The VM is running Windows Server 2003 SP2.
I can run and debug everything fine on my development machine, but when I try to run it on the test VM, it throws an ...