visual-studio-2008

Should I cast void** return in Visual Studio

送分小仙女□ 提交于 2021-02-05 06:56:25
问题 I compile some code with visual studio 9.0 (2008). The behave as expected, but when I allocate some 2D array with some hand made functions, Visual-Studio generates some C4133 warning: void ** alloc_2d(int w, int h, size_t type_size); void free_d2(void ** mem); int main (void) { float ** data; /* Here is generated a C4133 warning: "incompatible type from void ** to float **" */ data = alloc_2d(100, 100, sizeof **data); /* do things with data */ /* free data */ free_2d(data); return 0; } I

Raise an event from MySQL and handle it from VB.NET (or something similar)?

孤街醉人 提交于 2021-01-29 19:51:06
问题 I'm working with MySQL 5.1.39 and Visual Studio 2008 and connecting both with MySQL Connector Net 6.1.2. What I'd like to do is once a MySqlConnection object is created, be able to handle the "event raised" when a field in a specific row in a given table is updated. I mean, when that value in that table has been manually changed or modified from any other application, I'd like to receive a signal in my opened VB.NET application. Until now, I do it from opened VB.NET application checking that

Copy a SSIS project/package from Visual studio 2017 to 2008 (partial ease accepted)

梦想与她 提交于 2021-01-29 10:17:16
问题 I have created several packages in Visual Studio 2017 (SSDT) SSIS solution, they are showing target server 2017. This was on my development PC. Now, upon completion of it, I am into a challenge. The Server on which, I am moving my packages, is having Visual Studio 2008. I can understand that downgrading may not be right away possible, but I will still be happy if I can find a way to minimize my work (i can accept package by package or so). Please note I am accessing the other server on the

VS 2008 SP1 can't deploy on MC9200 with Windows CE 7.0

北城以北 提交于 2021-01-29 07:47:58
问题 Whenever I try to deploy solution to above mentioned device I'm getting error: Connection Failed. The RPC Server is unavailable. I tried the solutions from following link, but no help: https://www.auslogics.com/en/articles/fixing-the-rpc-server-is-unavailable-error-in-windows/ Windows Mobile Device Center says device is connected. 回答1: I managed to dig up an old email (June 2012) which gives some instructions I sent to my team: Install Microsoft® Visual Studio 2008 with Service Pack1 (make

Visual Studio 2008 crashes when displaying XAML view. How to get more information?

眉间皱痕 提交于 2021-01-29 07:27:51
问题 I am developing a Silverlight app using VS2008 Express. I have just implemented a new user control and have added it to a Grid. When I try to open a XAML view which contains this control, VS crashes and restarts. Where can I look for more information? Is there an event log in VS? Update I found my problem which was a circular reference causing a ... Stackoverflow. The logs didn't help much - I had to read through the code in another editor and search for my bug. 回答1: First, look in the

Numerical precision differences between VS6 and VS2008 using C++?

淺唱寂寞╮ 提交于 2021-01-29 04:25:04
问题 I've been working on porting a legacy project from Visual Studio 6 to 2008. After jumping a few hurdles I now have the new project building and executing. However, I've noticed that the output from the two versions of the program are very slightly different, as though the floating-point calculations are not equivalent, despite the fact that the code is the same. These differences usually start quite small (<1.0E-6) but accumulate over many calculations to the point where they start to have a

Find Consecutive numbers in an Array

我的未来我决定 提交于 2021-01-27 17:46:34
问题 I need to find consecutive numbers in an array and return a string which tells the range and numbers that don't form a range. I found some of the already asked questions but none of them is in VB.Net: Add to array consecutive numbers If the array of numbers looks like {11,12,67,68,69,70,92,97} then returned string should be of the form 11,12, 67 through 70, 92 and 97 . This is not homework; I need this function for a word document containing statistical data. 回答1: Entered directly into the

Remove environmental variable programmatically

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-27 05:00:12
问题 I need to write a unit test for some C++ code that checks for the presence of an environmental variable. I'm using MSVS 2008 and gtest as my framework. I add the environmental variable using putenv, I check the environmental variable using getevn, but I can't figure out how to remove it so that no other test will see it. I realize this is probably easy, but I can't find the answer on the internet. Thanks 回答1: Calling putenv again specifying "SOME_VAR=" as parameter will delete environment

Why does Visual Studio only allow one link per file in a project?

时光怂恿深爱的人放手 提交于 2021-01-27 03:53:33
问题 I would like to have a file in several different projects of a solution, however, Visual Studio only allows one link per solution to the file. Is there a way around this? What is the issue of having several soft links to a single file within a VS project? Update: I have added the link as described from the comments below, it seems that the issue is on a per project basis. There can not be multiple links to the same file within the project. When I attempt to add the link I receive the

Why does Visual Studio only allow one link per file in a project?

馋奶兔 提交于 2021-01-27 03:53:32
问题 I would like to have a file in several different projects of a solution, however, Visual Studio only allows one link per solution to the file. Is there a way around this? What is the issue of having several soft links to a single file within a VS project? Update: I have added the link as described from the comments below, it seems that the issue is on a per project basis. There can not be multiple links to the same file within the project. When I attempt to add the link I receive the