visual-studio-2008

Use Orca to edit msi from command line?

纵饮孤独 提交于 2019-12-17 17:42:24
问题 I'm using Visual Studio 2008 and have created a setup project for my application. The application has a high-resolution icon (for Vista). There's a bug in Visual Studio, and the installer creates a desktop shortcut with a low resolution icon. I logged this bug in Microsoft Connect (https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=338258) and finally got an answer, which is to use Orca to edit the msi file and replace the icon. That solutions works fine. Now I

Use Orca to edit msi from command line?

丶灬走出姿态 提交于 2019-12-17 17:42:06
问题 I'm using Visual Studio 2008 and have created a setup project for my application. The application has a high-resolution icon (for Vista). There's a bug in Visual Studio, and the installer creates a desktop shortcut with a low resolution icon. I logged this bug in Microsoft Connect (https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=338258) and finally got an answer, which is to use Orca to edit the msi file and replace the icon. That solutions works fine. Now I

VS2008: Unable to start debugging, Remote Debugging Monitor has been closed

て烟熏妆下的殇ゞ 提交于 2019-12-17 17:36:38
问题 I am getting a mysterious error from time to time that I just don't get. I can "fix" it by restarting Visual Studio 2008, but that isn't exactly a solution... It states the following: Error while trying to run project: Unable to start debugging. The Microsoft Visual Studio Remote Debugging Monitor has been closed on the remote machine. I am not doing anything remote, as far as I know... Just running regular debug, F5 style. What does it mean? How can I fix it? 回答1: If you are on a 64bit OS

how to open *.sdf files?

徘徊边缘 提交于 2019-12-17 17:25:16
问题 I used to open sdf (sqlCE) files with visual-studio? or sql-server? I really don't remember. Now I can't open this sdf file. With what program do I need to open it? 回答1: It's a SQL Compact database. You need to define what you mean by "Open". You can open it via code with the SqlCeConnection so you can write your own tool/app to access it. Visual Studio can also open the files directly if was created with the right version of SQL Compact. There are also some third-party tools for manipulating

Visual Studio: Where does it store “Set as startup project”?

佐手、 提交于 2019-12-17 16:42:23
问题 Let's say a single solution (.sln) has 2 (.vcproj) named Proj1 and Proj2. By default, Visual Studio assigned Proj1 to be my startup project. I set Proj2 to be my desired startup project. Then I commit everything to my repository (excluding .suo). I re-check out, and Proj1 is still the default startup project. Does this mean Visual Studio store the startup information in the .suo file? But I dont want to commit that (?) since it's a user-specific file? Or am I doing something wrong? Note: I

XML multiline comments in C# - what am I doing wrong?

时间秒杀一切 提交于 2019-12-17 16:32:29
问题 According to this article, it's possible to get multiline XML comments -- instead of using /// , use /** */ . This is my interpretation of what multiline comments are, and what I want to have happen: /** * <summary> * this comment is on line 1 in the tooltip * this comment is on line 2 in the tooltip * </summary> */ However, when I use this form, the tooltip that pops up when I hover over my class name in my code is single-line, i.e. it looks exactly as if I had written my comment like this:

Change the requested url of WebResource.axd

半城伤御伤魂 提交于 2019-12-17 16:28:50
问题 My web application (http://www.something.com/social/competition/) is currently requesting the WebResource.axd file like this: <script src="/WebResource.axd?d=xxx" type="text/javascript"></script> As we're using urlrewiting in a Netscaler to forward all requests for the "/social" folder onto a seperate server farm containing this app, the "/" root path won't resolve correctly as it will be requesting the resource from the something.com app. Therefore I need to change the url of the requested

Issue with reading an image using “cv::imread” function in OpenCv

和自甴很熟 提交于 2019-12-17 16:28:03
问题 I have got a problem with some basic OpenCV code. Here is my code: cv::Mat src; src=imread("Calibration.bmp",0); if (src.empty()) cout << "Cannot load image" << " "; else cout << src.cols << " " << src.rows << " "; Unfortunatelly cv::imread returns NULL matrix with any kind of input image (I have tried .bmp, .jpg). The filename seems to be working fine (program does not end with error), as using wrong filename generates an error message. I have tried using oldstyle "CvLoadImage" but same

numeric-only textbox as a control in Visual Studio toolbox

倖福魔咒の 提交于 2019-12-17 16:26:38
问题 I would like to make one numeric-only textbox. I'd like to then add that same to the control toolbox within Visual Studio 2008 I've already built the function to allow only numeric. How can I make it available in the toolbox? 回答1: This is how you can create numeric TextBox : public class NumericTextBox : TextBox { protected override void OnKeyPress(KeyPressEventArgs e) { if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar)) { e.Handled = true; } base.OnKeyPress(e); } } 回答2: Call this

how to use gettimeofday() or something equivalent with Visual Studio C++ 2008?

一笑奈何 提交于 2019-12-17 16:21:42
问题 Could someone please help me to use gettimeofday() function with Visual Studio C++ 2008 on Windows XP? here is a code that I found somewhere on the net: #include < time.h > #include <windows.h> #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64 #else #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL #endif struct timezone { int tz_minuteswest; /* minutes W of Greenwich */ int tz_dsttime; /* type of dst correction */ }; int gettimeofday