visual-c++

What's the use of .map files the linker produces?

What is the use of .map files VC++ linker produces when /MAP parameter or "Generate map file" project setting is used? When do I need them and how do I benefit from them? ...

string inserting error c++

WordChosenDuplicate.insert(0,WordChosen.length," _ "); cout <<WordChosenDuplicate<< endl; I get the following error when I try to run this code error C3867: 'std::basic_string<_Elem,_Traits,_Ax>::length': function call missing argument list; use '&std::basic_string<_Elem,_Traits,_Ax>::length' to create a pointer to member c:\docum...

What can be done in VC++ (native) that can't be done with VC#?

What can be done in VC++ (native) that can't be done with VC#? From what I can tell the only thing worth using VC++ native for is when you need to manage memory yourself instead of the CLR garbage collector, which I haven't seen a purpose in doing either (but thats for another question to be asked later). ...

MFC like easy to use tool for Linux

When I used to write test tools in Windows, I use MFC for creating the front-end GUI. This made development of GUI development very fast, and I always used to concentrate on the back-end. Recently I moved to the console based Linux-world. Where most of the things are just console based. My question: Is there any easy to use equivalent o...

Using asynchronous RPC pipes without APC callback

Microsoft RPC has a mechanism called asynchronous pipes. The only sample for handling it I've seen so far (in MSDN) involves using APC (asynchronous procedure call) callbacks. Is there a way to implement client and server side pipe handling without APC - for example, with some wait functions? What are the key steps to doing this? ...

Cannot edit labels in a CListCtrl

I'm building a project with MFC Feature Pack. Is this project I have a window which includes a CView, which includes a CListCtrl-derived object. The object includes the LVS_EDITLABELS flag. Somehow I cannot edit the CListCtrl icon labels by two-time clicking (not double-clicking) on the icon label. After I select the item with a single ...

How can I add a ribbon menu to an existing MFC application?

Microsoft Visual C++ 2008 Feature Pack has ribbon menu support. Is it possible to make use of that in an existing MFC application that was not created with a ribbon menu? ...

What does the /DISALLOWLIB message mean in VC++ linker output?

I'm in the process of tracking down a linker error with a VC++ 2005 application. When I switch on verbose linker output, I notice a ton of these messages: Processed /DISALLOWLIB:nafxcwd.lib What exactly does the /DISALLOWLIB switch mean? ...

Visual Studio 2005 C++ runtime new exception

I have a VS 2005 C++ project with both Debug and Release builds. I've attempted the following 4 things: Build a Debug executable through Visual Studio, and run it through Visual Studio. Run the executable built in (1) externally via command line (Cygwin) after cd'ing to vstudio/debug. Build a Release executable through Visual Studio, ...

Problem linking when using stl in VS2005

I just added STL usage to some code, and I'm getting this link error: error LNK2019: unresolved external symbol "public: __thiscall std::_Lockit::~_Lockit(void)" I must be missing something in the link, I've done this before - and googling has not helped so far. hmm...... Here's the code snippet: #pragma once #include "Observer.h" #i...

Visual C++ - Linking plugin DLL against EXE?

I'm in the process of porting a large C++ application from Linux (gcc) to Windows (Visual C++ 2008) and am having linker issues with plugins. On Linux this wasn't an issue, as .so supports runtime symbol lookup, but dll does not seem to support this. Some background information: The application (the host), which hosts a scripting enviro...

How to move controls to the middle of an MFC form?

How to move controls to the middle of the form in a VC++ 6.0 MFC project? Say I added an EditBox(m_editcontrol), how to move this control to the middle of the form? ...

Using c++ library in c#

Hey guys, I'm trying include c++ library (DLL) in my c# project but every time I do that I get following error message in VS2008, any suggestions?? EDIT: It's a C++ MFC DLL Microsoft Visual Studio A reference to 'C:\Users\cholachaguddapv\Desktop\imaging.dll' could not be added. Please make sure that the file is accessible, and that ...

Regarding Latency In Ping

What is meant by latency which is returned by ping ...

Bandwidth from Latency

DUPE: http://stackoverflow.com/questions/729146/how-to-programmatically-check-internet-bandwidth-in-vc Can we find the bandwidth from the latency of ping .If yes how is it done ...

How to Use Timers in Windows

What are the various ways that a timer can be set up using the Windows API. What are the pros and cons of each method? I'm using MS DevStudio's C++. ...

Show tooltip outside of current Window

Hello, I have .NET WPF application and one of requirement is that user may select and copy text outside of my application. My application has to respond to clipboard event. Look up word from dictionary and next to selected text show tooltip with word's translation. As I understand this has to be accomplished using calls to Windows API...

.NET get selected text position cordinates from another window

Hello, I have .NET WPF application, that sits in background, and responds to user selecting text for example in Microsoft Word. After user selects text I need to draw window next to selected text. My question is: How it is possible to get selected text coordinates in currently active application? As I understand it has to do with Int...

creating txt file

In my MFC application project during runtime i want create a txt file and i want store some data in that i dont want to create the notepad file in any Hard drive. It must be in application only. when i click a IDC_BUTTON1 then it must open.then the user must decide wheather the txt file has to save in hard disk or not. So how to create ...

ListView_SetBKImage is scrolling the back ground image also. Want a fixed back ground image and the contents should scroll over.

ListView_SetBKImage is scrolling the back ground image also. Want a fixed back ground image and the contents should scroll over. I am setting Backgroung image in LisTView by this code. LVBKIMAGE bki= {0}; bki.ulFlags = LVBKIF_SOURCE_URL | LVBKIF_STYLE_NORMAL; /* | LVBKIF_TYPE_WATERMARK | LVBKIF_FLAG_ALPHABLEND*/ bki.pszImage=szBmpP...