visual-c++

OpenGLES Application (Android, iOS) on Visual Studio

不羁的心 提交于 2020-01-25 20:03:38
问题 I created a cross platform OpenGLES application solution on Visual Studio. I paired Visual Studio with vcremote on my Mac. I can successfully compile the solution. When I switch to XCode and open the project which VS 2015 generated and build it I get the following error: Ld /Users/elodie/Library/Developer/Xcode/DerivedData/iOSAndroGame.iOS.Application-cgfyoibpjigxohbhicqhmkivhjhs/Build/Products/Debug-iphonesimulator/iOSAndroGame.app/iOSAndroGame normal x86_64 cd "/Users/elodie/vcremote/C

error LNK2005 already defined

不想你离开。 提交于 2020-01-25 14:42:05
问题 I am trying to learn C++ in VS 2010 Express. I want to transfer text from one textbox on a form to another when the Execute button is pressed. However, I want to learn how to do this in a different cpp file. In the header file Form1.h, I have the code: private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { this-> textBox2-> Text = returnString(this-> textBox1 -> Text); with #include "String_Copy.cpp" at the top. In String_Copy.cpp, I have: #include "stdafx.h"

error LNK2005 already defined

梦想的初衷 提交于 2020-01-25 14:41:09
问题 I am trying to learn C++ in VS 2010 Express. I want to transfer text from one textbox on a form to another when the Execute button is pressed. However, I want to learn how to do this in a different cpp file. In the header file Form1.h, I have the code: private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { this-> textBox2-> Text = returnString(this-> textBox1 -> Text); with #include "String_Copy.cpp" at the top. In String_Copy.cpp, I have: #include "stdafx.h"

How to read all the numbers in the string one by one into array (c++)

元气小坏坏 提交于 2020-01-25 13:10:29
问题 I have seen a similar question but the answers did not work on my Visual C++ 6. I have a CString (visual C++ String class) with numbers divided by commas: CString szOSEIDs = "5,2,6,345,64,643,25,645"; and I'd like them put one by one into a int array. I tried the stringstream but it gives me only the first int. Can someone help? P.S. This is my failed try: std::string input; input = (LPCTSTR)szOSE_IDs; // convert CString to string std::stringstream stream(input); while(1) { int n; stream >> n

Compiling SQLite RTREE in MSVC?

萝らか妹 提交于 2020-01-25 11:11:28
问题 I need to compile the rtree extension for SQLite from source code. The readme includes these instructions: The easiest way to compile and use the RTREE extension is to build and use it as a dynamically loadable SQLite extension. To do this using gcc on *nix: gcc -shared rtree.c -o libSqliteRtree.so You may need to add "-I" flags so that gcc can find sqlite3ext.h and sqlite3.h. The resulting shared lib, libSqliteRtree.so, may be loaded into sqlite in the same way as any other dynamicly

Compiling SQLite RTREE in MSVC?

血红的双手。 提交于 2020-01-25 11:11:15
问题 I need to compile the rtree extension for SQLite from source code. The readme includes these instructions: The easiest way to compile and use the RTREE extension is to build and use it as a dynamically loadable SQLite extension. To do this using gcc on *nix: gcc -shared rtree.c -o libSqliteRtree.so You may need to add "-I" flags so that gcc can find sqlite3ext.h and sqlite3.h. The resulting shared lib, libSqliteRtree.so, may be loaded into sqlite in the same way as any other dynamicly

Boost.Python tries to link against python27.lib using Visual C++

我是研究僧i 提交于 2020-01-25 10:51:07
问题 I'm trying to build boost python using Python 3.2. I'm linking against python32.lib and libboost_python3-vc110-mt-gd-1_52.lib. I also definied BOOST_ALL_NO_LIB to disable boost's auto link feature. Still I'm getting the following error: fatal error LNK1104: cannot open file 'python27.lib' How to tell boost to use Python 3.2? 回答1: Do you have multiple Python installations on your computer? You probably have to create a user-config.jam file with content like this: using python : 3.2 : C:\Path

Prevent .lib from loading DLL at runtime

孤者浪人 提交于 2020-01-25 08:49:11
问题 How would I prevent an import lib from loading the DLL it refers to at runtime until I call something like, say, LoadLibrary ? 回答1: Maybe you need this: http://www.west-wind.com/weblog/posts/2007/Dec/02/Delay-Loading-a-DLL-with-a-Linker-Switch-in-Visual-Studio http://www.codeproject.com/Articles/273419/Dynamic-Libraries-with-Delayed-Function-Loading 来源: https://stackoverflow.com/questions/12685664/prevent-lib-from-loading-dll-at-runtime

Changing the default compiler in visual studio 2010

江枫思渺然 提交于 2020-01-25 03:30:27
问题 I have the Visual Studio 2010 installed in my system. However, my company has a different central build system and uses the compiler from Visual Studio 6. Is it possible for me to use this compiler for compiling my C++ projects in Visual Studio 2010? If yes, where to configure this? I checked in the project settings dialog, but couldn't find any option for this. I know how to use the old compiler from the command line and I don't want to do that. 回答1: The Daffodil for Visual Studio extension

How can I get the files modified in a directory in a particular period of time using c++?

喜欢而已 提交于 2020-01-25 03:20:09
问题 Hi In a sample App I develop, I would like to retrieve the details of files modified in a particular time period. Or simply... I have a time with me (say june 6th 2011 10:00 AM) and would like to get the list of files in a directory(say C:\MyFolder) which is modified after that partiicular time. I have tried a method.. CFileFind finder; szFile = _T("C:\\MyFolder\\*.*"); BOOL bFound = finder.FindFile( szFile ); CTime fileTime; CTime fileCreateTime; while ( bFound ) { bFound = finder