visual-studio-2005

What's a quick way to trace the entry and exit of functions in a Visual Studio 2005 c++ multithreaded program?

送分小仙女□ 提交于 2020-02-24 05:53:06
问题 I have intermittent crashes occurring in my ActiveMQ libraries due to the way I'm using the activemq-cpp API. It'd be much easier to debug the issue if I could observe every function being called leading up to the crash. Are there any quick ways to trace the entry and exit of functions in a Visual Studio 2005 c++ multithreaded program? Thanks in advance! 回答1: Use a Tracer object. Something like this: class Tracer { public: Tracer(const char *functionName) : functionName_(functionName) { cout

How to fix a linker error with PKEY_Device_FriendlyName

痞子三分冷 提交于 2020-02-12 05:01:05
问题 Upon using PKEY_Device_FriendlyName, I'm getting the following errors: Error 1 error LNK2001: unresolved external symbol _PKEY_Device_FriendlyName DefaultAudioDeviceCPP.obj Error 2 fatal error LNK1120: 1 unresolved externals C:\Users\srobertson\Documents\Visual Studio 2005\Projects\DefaultAudioDeviceCPP\Debug\DefaultAudioDeviceCPP.exe What's a very simple way to clear these errors? I'm including functiondiscovery.h and functiondiscoverykeys.h. Also the path in Project->Properties...-

How to get a webserice to serialize/deserialize the same type in .net

只愿长相守 提交于 2020-01-25 02:47:50
问题 I want to use typed parameters in the web methods. But when visual studio 2005 creates the web reference on for the client it automatically creates it's own types. I am using a .net web service and a .net client. For example: < WebMethod > _ Public Function Foo() as ServerNamespace.Bar ... End Function at the client the method becomes WebServiceInstance.Foo() as ClientNamespace.Webservice.Bar returning a different type. I started writing my own serialization helper class to convert the type,

Switching to Release Build causes runtime error in Web Reference

﹥>﹥吖頭↗ 提交于 2020-01-24 15:56:07
问题 I've got a problem with a SOAP Web Reference that was generated by Visual Studio 2005 (.NET framework is v2.0.50727.42) - it works fine under the Debug build configuration (and has for months) but now that I want to go live and have compiled using the Release configuration, it has stopped working. Exceptions are raised at runtime whenever I call a method on the Web Reference. The most common exception is: System.InvalidOperationException: There was an error generating the XML document. --->

What plugin would you really like to have for Visual Studio 2005/2008 [closed]

我是研究僧i 提交于 2020-01-23 09:24:05
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . In a brilliant world what would you love to have a plugin to do in VS2005/2008? One answer per post please, and use voting to agree

How to add multiple recipients to mailitem.cc field c#

大城市里の小女人 提交于 2020-01-23 05:01:12
问题 Oki, so im working on outlook .msg templates. Opening them programmatically, inserting values base on what's in my db. ex. when i want to add multiple reciepients at "To" field, instead of doing as following, mailitem.To = a + ";" + b + ";" + c; i do whats below, which is simpler, especially when i'm doing it in a loop. mailitem.Recipients.add("a"); mailitem.Recipients.add("b"); mailitem.Recipients.add("c"); My problem is, i also want to add multiple recipients at "CC" field and the function

Evaluating expressions using Visual Studio 2005 SDK rather than automation's Debugger::GetExpression

一世执手 提交于 2020-01-23 04:19:56
问题 I'm looking into writing an addin (or package, if necessary) for Visual Studio 2005 that needs watch window type functionality -- evaluation of expressions and examination of the types. The automation facilities provide Debugger::GetExpression , which is useful enough, but the information provided is a bit crude. From looking through the docs, it sounds like an IDebugExpressionContext2 would be more useful. With one of these it looks as if I can get more information from an expression --

Unable to attach to the process

廉价感情. 提交于 2020-01-22 23:07:07
问题 I am trying to debug a service in VS 2005 running. Service is running under SYSTEM username. I have opened VS as administrator. The error I am getting is: Unable to attach the process. The system cannot find the file specified I am running on Windows Vista. 回答1: Maybe the program you are trying to debug is using admin privileges but visual studio doesn't have admin rights. run visual studio as administrator, even if you are logged in as administrator it doesn't automatically have admin

How do I embed version information into a windows binary?

痞子三分冷 提交于 2020-01-21 11:59:27
问题 You probably know that Windows has that option where you can view the properties of a binary and it will display information about the author, the version number, the company etc... We would like to put this into our automated compilation system. Getting this version information into the binary after the binary is compiled is preferable, but any information on how this is done would be helpful. And of course, this needs to be programmatic; we can't be bothered to manually enter the

How do I embed version information into a windows binary?

為{幸葍}努か 提交于 2020-01-21 11:59:06
问题 You probably know that Windows has that option where you can view the properties of a binary and it will display information about the author, the version number, the company etc... We would like to put this into our automated compilation system. Getting this version information into the binary after the binary is compiled is preferable, but any information on how this is done would be helpful. And of course, this needs to be programmatic; we can't be bothered to manually enter the