visual-studio-2010

The application was unable to start correctly (0xc000007b) Visual Studio C++

▼魔方 西西 提交于 2020-01-11 12:03:03
问题 I have a simple hello world c++ program which links sqlite3.dll (64 bit version). I have added sqlite3.h and sqlite3.dll correctly in the respective paths. The projects compiles for 64 bit architecture. The compilation and linking goes fine. The problem arises when I try to run the exe. I have seen many questions here that suggest to use dependency walker. I am putting the screenshot here: I don't understands why it fails since the sqlite3.dll is in the exe's folder. And if I understand well

The application was unable to start correctly (0xc000007b) Visual Studio C++

谁说胖子不能爱 提交于 2020-01-11 12:02:08
问题 I have a simple hello world c++ program which links sqlite3.dll (64 bit version). I have added sqlite3.h and sqlite3.dll correctly in the respective paths. The projects compiles for 64 bit architecture. The compilation and linking goes fine. The problem arises when I try to run the exe. I have seen many questions here that suggest to use dependency walker. I am putting the screenshot here: I don't understands why it fails since the sqlite3.dll is in the exe's folder. And if I understand well

Can I selectively disable packages from loading into VS2010?

怎甘沉沦 提交于 2020-01-11 11:06:28
问题 Continuation question from: VS2010 loads slowly. Can I profile extensions' respective startup time? After looking at the log file, it turns out there are a few packages that I'm not using much (I think): (load time) (package): (2s) (Microsoft.VisualStudio.TeamArchitect.DesignersCommon.DesignersCommonPackage, Microsoft.VisualStudio.TeamArchitect.DesignersCommonPackage, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) (4.2s) (Microsoft.VsWizards.ImportProjectFolderWizard

Can I selectively disable packages from loading into VS2010?

你。 提交于 2020-01-11 11:03:50
问题 Continuation question from: VS2010 loads slowly. Can I profile extensions' respective startup time? After looking at the log file, it turns out there are a few packages that I'm not using much (I think): (load time) (package): (2s) (Microsoft.VisualStudio.TeamArchitect.DesignersCommon.DesignersCommonPackage, Microsoft.VisualStudio.TeamArchitect.DesignersCommonPackage, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) (4.2s) (Microsoft.VsWizards.ImportProjectFolderWizard

bison.exe cannot find file m4sugar.m4 which is required by an MSBuild in VS2010

左心房为你撑大大i 提交于 2020-01-11 10:40:08
问题 I am trying to compile QGIS in Visual Studio. I used OSGeo4W to download the packages, added Flex.exe and Bison.exe to my environment path. Downloaded QGIS Release 2.0, and launched a CMake-GUI with the option "Visual Studio 10". Then I configured my paths using the GUI tool. Then I hit configure and generate, and it worked. I looked in my directory and there were Visual Studio Solution files available for me. Then I hit "Build All" and I got the following output in the "Output Window"

Member function of a C++ object as a CUDA __global__ function

☆樱花仙子☆ 提交于 2020-01-11 10:33:29
问题 I have a base class: template <class T> class A{ public: // some data T data; //some functions like constructs etc. ... // one virtual function virtual void evaluate() = 0; } and a derived class: template <class T> class B:public A<T>{ public: // some functions like constructors etc. virtual void evaluate(); __global__ void function2(); // **** error message } Also, I have template <class T> void B<T>::evaluate() { dim3 grid(1);dim3 block(1); void function2<<<grid,block>>>(); } and template

How do you convert a 'System::String ^' to 'TCHAR'?

岁酱吖の 提交于 2020-01-11 10:25:32
问题 i asked a question here involving C++ and C# communicating. The problem got solved but led to a new problem. this returns a String (C#) return Marshal.PtrToStringAnsi(decryptsn(InpData)); this expects a TCHAR* (C++) lpAlpha2[0] = Company::Pins::Bank::Decryption::Decrypt::Decryption("123456"); i've googled how to solve this problem, but i am not sure why the String has a carrot(^) on it. Would it be best to change the return from String to something else that C++ would accept? or would i need

How to call a private function via friend function?

℡╲_俬逩灬. 提交于 2020-01-11 09:56:06
问题 Hello I am trying to access a private member function is Gtest . The code looks somewhat similar to this. So, how can I access static void Pri_fun ? using namespace std; class test{ }; class abc{ public: friend class test; private: static void Pri_fun() { cout << "private fun called \n"; } }; int main() { abc ab; test *abd; abd->Pri_fun(); } 回答1: Since it's a static function, you should access it via the class name: abc::Pri_fun(); You should make a caller function though, or call it from the

RDLC expression resulting in #error

一笑奈何 提交于 2020-01-11 09:49:08
问题 I have two decimal fields, profit and revenue. They are displayed in a tablix control, each has their own column. In a third column, I want to divide profit by revenue. The result when either of those fields is zero is #error, this I'm guessing is due to the dividing by zero. I came up with the following expression to solve this: =iif(Cint(Fields!revenue.Value) = 0 orelse cint(Fields!profit.Value) = 0 ,"",FormatPercent(Fields!profit.Value / Fields!revenue.Value,2)) That expression still

Input string was not in a correct format

我怕爱的太早我们不能终老 提交于 2020-01-11 09:48:14
问题 I'm new to Visual Studio 2010 and MySQL. I'm creating a form where I can Add the Employees. However, when I click the Add Button I got an error stating "Input string was not in a correct format." This is the Screen shots: Code: private void button_adduser_Click(object sender, EventArgs e) { string MyConString = "SERVER=localhost;" + "DATABASE=timekeeping;" + "UID=root;" + "PASSWORD=admin;"; MySqlConnection connection = new MySqlConnection(MyConString); MySqlCommand command = connection