visual-studio-2012

Debugging VB6 Code From Visual Studio 2012

99封情书 提交于 2021-02-04 10:51:12
问题 We have a .NET application using a lot of legacy components written in VB6. We were able to debug the VB6 code using native code debugger and generated pdb files in Visual Studio 2010. After upgrading to the VS 2012 (including Update 2) we cannot do this. The module window shows following message: Binary was not built with debug information. You can also find following message in the output window: Module was built without symbols. When I try to load symbols manually, I get following message:

how to generate pdb files for Release build with cmake flags?

我的未来我决定 提交于 2021-02-03 06:46:49
问题 I am generating a visual studio solution using cmake. And now I want to generate pdb files for a Release build. (Why? because I want to have the symbols in case that the user found some bug) I tried by setting the following flags without succeed: set(CMAKE_CONFIGURATION_TYPES ${CMAKE_BUILD_TYPE} CACHE STRING "Build Types" FORCE) IF(WIN32) set( CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_BINARY_DIR}/Release") set( CMAKE_EXE_LINKER_FLAGS_RELEASE "/debug /INCREMENTAL") set( CMAKE_SHARED

how to generate pdb files for Release build with cmake flags?

孤街醉人 提交于 2021-02-03 06:43:53
问题 I am generating a visual studio solution using cmake. And now I want to generate pdb files for a Release build. (Why? because I want to have the symbols in case that the user found some bug) I tried by setting the following flags without succeed: set(CMAKE_CONFIGURATION_TYPES ${CMAKE_BUILD_TYPE} CACHE STRING "Build Types" FORCE) IF(WIN32) set( CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_BINARY_DIR}/Release") set( CMAKE_EXE_LINKER_FLAGS_RELEASE "/debug /INCREMENTAL") set( CMAKE_SHARED

how to generate pdb files for Release build with cmake flags?

隐身守侯 提交于 2021-02-03 06:43:48
问题 I am generating a visual studio solution using cmake. And now I want to generate pdb files for a Release build. (Why? because I want to have the symbols in case that the user found some bug) I tried by setting the following flags without succeed: set(CMAKE_CONFIGURATION_TYPES ${CMAKE_BUILD_TYPE} CACHE STRING "Build Types" FORCE) IF(WIN32) set( CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_BINARY_DIR}/Release") set( CMAKE_EXE_LINKER_FLAGS_RELEASE "/debug /INCREMENTAL") set( CMAKE_SHARED

Visual Studio auto generated function only when class has pointer member

▼魔方 西西 提交于 2021-01-29 04:20:31
问题 I was playing around with DIA SDK today, trying to print all the functions in a .pdb file generated by VS(2012). In the output I noticed a function called __autoclassinit ( with an unsigned int as a parameter ) was generated for one my test classes (the only with with a pointer member). Google failed to return any results so I ask you: what does this function do? and why isn't it used for references too? 回答1: First google hit for "__autoclassinit" blogs.msdn.com... ...compiler will generate a

Find place where some macro was #define-ed

淺唱寂寞╮ 提交于 2021-01-28 20:19:57
问题 The bottom line: building with VS2012, there's a macro (WIN32_LEAN_AND_MEAN) defined in my project I can't find #define-ed anywhere: not in C/C++ --> Preprocessor, not inherited from parent or project dependencies (microsoft.cpp.props), not in the command-line. It is not mentioned anywhere in the vcxproj. Compiling a single source/header in the project, I find it is defined already on the first line of the header. Putting this at the top of my header: #pragma once #ifndef WIN32_LEAN_AND_MEAN

How to show Chinese character in visual studio 2012

杀马特。学长 韩版系。学妹 提交于 2021-01-28 12:23:53
问题 I have a problem when showing the Chinese character in vs 2012. When I try to show them, they only show  (square symbol). How can I show it it visual studio 2012. Thank you so much!!! 回答1: Set up font in studio that has chinese symbols. 回答2: You can use applocale, download it from here: http://www.microsoft.com/en-us/download/details.aspx?id=13209. This is an old app but works well on Win7 and Win8 (tested). When installing, simply make sure to run it as admin. Then later on, run devnev.exe

Include external dependencies in a .lib project

徘徊边缘 提交于 2021-01-28 11:59:54
问题 For example I have a solution containing three projects a Core, Editor and Engine. both the Engine and Editor projects are dependent of the Core. Currently I'm bulding the core as an .lib then the Editor and the Engine include the .lib. Which is working perfectly. But the core depends on third party libraries I can't seem to include any external dependencies due to that the linker tab disappear when changing Configuration Type to Static Library(dll) on the Core project. How should I address

Console APP with Timer not running

岁酱吖の 提交于 2021-01-28 11:02:31
问题 I did this first into a WinForm project, now I've changed the application type to "Console application", I've deleted the form1.vb, changed the startup object to this "Module1.vb" but now I can't run the app. well the app runs but the timer tick is doing nothing, the code is exactly the same, I only did one change for the sub main/form1_load name What I'm doing wrong? PS: I've tested if the error was in the conditional of the lock method and all is good there, the problem is with the ticker

Empty #define in .vsarduino.h (Visual Micro)

不羁岁月 提交于 2021-01-28 07:32:31
问题 I'm using Visual Micro to write code for an Arduino (Nano in this case) in Visual Studio 2012. I have a compile error in the generated .vsarduino.h file, an empty #define is being generated and I'm not sure where it is coming from: .vsarduino.h #ifndef _VSARDUINO_H_ #define _VSARDUINO_H_ //Board = Arduino Nano w/ ATmega328 #define __AVR_ATmega328P__ #define #define _VMDEBUG 1 回答1: Sorry we missed this question. Hopefully it was answered in the Visual Micro forum. The vsarduino.h is not