Inconsistent RPC error connecting to Out-of-Proc COM server
We have a desktop application implemented as Out-of-Proc COM server (MyApplication.exe). The COM server registers successfully. This application is mostly written using C++/MFC. We also provide the...
View Articlecannot add variable to static text
Windows 7, 64 bit, Visual Studio 2008, MFC, C++, Dialog application, no Unicode. static dll.I am working on a project, add a couple of buttons to do things, test them ok, and add a static text control...
View ArticleCalling c++/CLI function from c#
Hello,I have a problem calling a VC++ method from a C# application.The function I am calling is a wrapper to C library files. Within the C++ function i am calling some functions in the C lib files.The...
View ArticleUse of DUMPBIN tool with x64 executable
Hello,I am trying to get the load configuration directory information for an x64 (64 bit) executable using the below command. The command gets executed without any error. However the dump information...
View ArticleVisual Studio 2013 - C++ Installer Fail
I'm trying to make an installer in C++ for a Windows Forms application, and I've discovered 2 minor/major bugs.Trying to view the HTM files directly makes the graphics look messed up.Trying to start...
View ArticleWhat does the Character Set property do?
In Project Properties -> Configuration Properties -> General; there is a properties options named Character Set. The choices are Unicode, Multi-Byte, and Not Set.I understand the two character...
View ArticleDebug Assertion Failed
{ float x, y, z, sum; float total; printf_s("Enter first amount of drinks:"); scanf_s("%f", &x); printf_s("\nEnter second amount of bread:"); scanf_s("%f", &y); sum = x + y; printf_s("\n Total...
View ArticleATL CAxWindow::QueryHost returns E_FAIL
I have a standard MFC MDI app and I am trying to use an ATL window to create a WMP ActiveX control. But, things are failing before I get that far. In my code, I create a typical CWnd window. In't...
View Articlecustomize the appearance of the tabbed pane caption
Hi all,I'm currently using CDockablePane::DrawCaption to customize the appearance of the caption of my docking pane. However DrawCaption does not get called if 2 panes are attached toguether, creating...
View ArticleCRichEditCtrl problem with SetDefaultCharFormat
I'm working on a (seemingly) small change to an old legacy application that my company developed years ago, and it involves casing issues in a RichEditCtrl. For whatever reason, back when this...
View Articlefatal error in visual c++ 6.0
i m facing the error , fatal error in visual c++ 6.0 LINK : fatal error LNK1104: cannot open file "Debug/afa.exe" Error executing link.exe. what should i do ??
View ArticleCoCreateInstance() Hung
I have a 2 COM ourtproc servers. CoCreateInstance() is invoked from UI thread of Server-A to activate Server-B. UI thread of Server-A is initialized as STA. Also main thread of Server-B is initialized...
View ArticleHow to get a handle of a RAWINPUT structure
Hi to allI have build a client-server system in which I am getting raw input from a remote machine and succesfully transmitting the RAWINPUT structure to a local one. What I want to do is to be able to...
View ArticleCannot create a top-level child window + Referenced assembly...
Dear Experts,I have two issues.I'm working in WPF browse application with framework 4.5 and using VB script as well as I'm using sap crystal report1. when I rebuilt project then I'm getting a Warning...
View ArticleDeploy C++ Source / Building without Visual Studio
Hi there, I write and distribute a commercial C# WPF Component and soon we will be including a C++ module (both x64 and x86) to improve speed in some critical areas.Some of my users have bought the...
View ArticleFinding text box handle of text box with keyboard focus
I am trying to find the handle of the edit control/text box that currently has keyboard focus and is a component of the foreground window. So for example if I knew the class name of the edit control I...
View ArticleDll exports function, intellisense sees function, but function not seen in...
This is a bizarre thing that happens, I have a dll that does export function.... See below ( using dependency walker to verify it)SetNameWCS ....I have two applications and they do work , one works...
View ArticleHow to open the following register entry?
The key is "HKEY_USERS\S-1-5-21-1103555628-4237719376-2110276350-1000\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache", I use the following code to open it but...
View ArticleGet pointer to a class method
Windows 7, 64 bit, Visual Studio 2008, C++The goal is to get a pointer so I can call: _beginthread(...). I have it working with a free standing function, now I want to progress to using it for a...
View Articleupnp
Hello all,I am writing a Video and Sound chat room in MSVC to enable people globally to practise minority languages.I have most of it working and I can make a conversation between my own two computers...
View Article