Hi,
I writing a MFC which has a listview control. When the user right clicks any item , I am generating a dynamic menu item with that text that is selected in listview. Everything is displaying properly, but I do not know how to add a message map to that dynamic menu item.
Any help?
void CMyListDlg::OnRclickList(NMHDR* pNMHDR, LRESUL...
I have a console app that is calling a WCF app hosted in IIS.
Up until now everything has been fine and I am able to debug the app - step through it without any problems...
Until I added my dev pc to a domain.... now every time I get step into the code hosted in IIS, a popup comes up asking if I would like to attach to this process.....
I'm trying to drag a listitem from a listbox onto a picture box.
The list item is a persons name. The value member of the list item is the ID of the people listed.
When I drop the list item onto the picture box I want to use the persons ID to query a photo and load that photo.
I can't seem to access the value though, only the name te...
Hello.
I wonder what can be a cause for the non-apparition of custom/user controls in the Visual Studio Toolbar.
Thanks.
I have a solution with some projects and a lot of custom controls. Normally, these controls should appear in the toolbar automatically after the solution (re)build...
(I use VS2005, but this problem appears also in...
In visual studio 2008 you have the navigation bar with Class Name combo box and Method Name combo box.
What is the shortcut to get inside any of these combo boxes from the code window?
...
I have encountered an unexpected Access Error while running a project I've built using two different versions of Visual Studio. My general configuration is as follows:
LibA is a static lib, static runtime linkage, msvc 8.0
LibB is a static lib, static runtime linkage, msvc 9.0
My target project for integration is a msvc 9.0 COM dll,...
I have a style template (below) that does not update some my custom control properties.
...
<Style x:Name="KeyboardButton" TargetType="Controls:KeyboardButton">
...
<Setter Property="ArrowDirection" Value="Right" />
<Setter Property="ArrowBeginColor" Value="Red" />
<Setter Property="Template">
...
ArrowBeg...
I am using a master page...
Then there is an .aspx that uses this masterpage..
what i want to use is the ajax NumericUpDownExtender but i am getting an error from the start when i put this in my masterpage
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
<%@ Register Assembly="System.Web.Ex...
I have just started using WiX for the first time.
I added a WiX Votive project to my existing C project.
To automatically select the correct source folder for the binaries add used the following:
<Directory Id="INSTALLLOCATION" Name="Trapeze Capture For Objective" FileSource="$(var.CaptureForObjective.TargetDir)">
That results in th...
I am using Visual Studio 2008. While opening some of the .resx file, it is giving me error that "The operation cannot be completed. Invalid Pointer". What can be the possible problem and solution?
Thanks in anticipation.
...
I'm working on a 100% C project for which the windows port is compiled using visual studio 2008 express edition. My project uses a couple of linux libraries which I was able to statically compile using MingGW.
I'd like to know if it's safe to link my project to those libraries and what were the possible trouble I might encounter.
I cou...
I want to attach to a process(a.exe) as soon as it is spawned, is it doable with VS? I only know the name of the process. Actually what I want to accomplish is set a breakpoint in c# code, but the code is belonging to another executable which will be launched by current running application(c.exe). The code is inside the initialize period...
I'm looking for a code navigation addin for Visual Studio 2008:
Press a keyboard shortcut to invoke a popup window that shows a list of methods of the current .cs file.
In the popup window the input focus auto sets to an input box where you can filter the method list as you type.
Press to jump to the selected method.
That's all. Whe...
I want to improve the roundtrip time when doing TDD. I guess the total compile time for the solution will be longer, but that is not important.
Background:
When I watch the output window during compiling when I wait for my unittest to run, I see that some time is spent only verifying that depended projects does not need to be build.
St...
Given this directory tree:
src/MyLibrary/MyHeader.h
src/file.cpp
file.cpp:
#include "mylibrary/myheader.h"
...
Compiling file.cpp works with VS, fails in gcc.
What does the standard say?
If the path is case sensitive, why is this wise?
What's the best practice, keep all file/folder names lowercase and thus do the same when includi...
I've currently got a C# code base that is compiled into a library. I have two clients each requiring only a selected sub set of the methods available and management are concerned that they may share files to get access to other methods they have not paid for (paranoid).
To reduce complicating the project I've created two Setup projects ...
Hello.
There is a lot of disassemblers witch allows seeing the internal structure of .NET base assemblies.
Is there a way, add-in or similar for Visual Studio that will permit debugging through the disassembled code?
By example I have a user control I set the Width = 100 but the width always remains to 200. After a half on hour I rem...
We all use and like that to handle click event for button we can just click it and write a handler with server code in C# or vb.net.
But if we want to handle client event, javascript comes for help. And I wonder, how can we add designer ability to generate client handlers with javascript or some popular library like jquery.
So how I s...
I've done something wrong in defining my class which is causing Microsoft's implementation of the hash_multimap to "miss." Here is my class:
class TimeParameter {
public:
TimeParameter(int _year, int _julianDay, int _hour) : m_Year(_year),
m_JulianDay(_julianDay),
m_Hour(_hour){}
int GetHour() const {re...
Hi
I looking for example of program, that modify string inside his exe.
I work with C++, Visual Studio under Windows.
I searched in internet for working examples in Windows, but I doesn't find any working code.
I need simple code, that will ask user for string:
string strTest = "";
(if strTest != "")
{
cout << "Modified: " << str...