Quantcast
Channel: Visual C forum
Browsing all 15302 articles
Browse latest View live

CDialogBar

I am trying to work with CDialogBar. I followed the  instruction on the following link to change the base class from CDialog to CDialogBar:  However when I execute the code the DialogBar does not show...

View Article


[Visual C++] Crash when using _vstprintf_s. Is there a bug?

Hi Guys,I'm facing with issue in function _vstprintf_s.I has written a simple program like below:#include "stdafx.h" #include <stdio.h> #include "afx.h" CString TestVSPrintf(const CString...

View Article


c# to c++ equivalent code?

string[] separator = new string[] { "(---)" };string[] trimData = data.Split(separator, StringSplitOptions.None); anyone know a similar function in c++ to do this? or how to do this in c++?

View Article

Opening Remote media failed with standard user token

I have a COM exe which is starting along with Remote Desktop Connection(mstsc.exe). COM exe is used to receive notifications when a drive is added to the system or when removable media is inserted into...

View Article

CRT initialization during explicit linking of dll using LoadLibrary

I have an intermittent issue,  when our dll is loaded (explicit) by the customer Application , it sometime throws the “Failed to initialize the CRT error R060” As a fix, I am have put the following...

View Article


CRecordSet and DEBUG output messages

HiMe again. Hope you don't mind! :(I have had this code for years:            strQuery = _T("SELECT * FROM [Public Talk Categories] WHERE [Category]='NS'");...

View Article

C++ question

Write a program by A program language (Any Language) to calculate Simple Interrest (SI) Maturity Value (MV):Formula1: Simple Interest (I) = Principal (P) x Rate (R) x Time (T)Formula 2: Maturity Value...

View Article

visual studio 2013, MBCS and mfc

Does microsoft realise the consequence of depreciating MBCS in mission critical software? The consequence of every change from chat to wchar-t has to be examined. Is it no wonder that there are some...

View Article


InterlockedIncrement not found when using /clr and Windows 8.1 SDK in MFC dll...

I have a MFC DLL project in Visual Studio 2012 C++ that I am in need of using the /clr switch as the project uses a hybrid mix of native and managed C++ and calls into C# reference class libraries....

View Article


mfc unicode

Hi,I am using VS2013, MBCS is defined.I have a txt file, the encoding is UTF8. There is ascii and Cyrillic text in the file. When I use fgetws, the ascii text is read fine but the Cyrillic text comes...

View Article

Internal compiler error

Hello,I have a small problem. I am getting Fatal Error C1001: An internal error has occured in the compiler. (C++/CLI)What now ? 

View Article

Protected member issue

I thought I understood "protected" but I am getting an error I don't understand.I have a class with members declared as follows:class EventBase { protected: typedef std::map<const char *, EventBase...

View Article

Is OpenMP 2.0 maintained in VisualStudio 2013

Is OpenMP 2.0 maintained by Microsoft in VS2013?Thanks,Peter

View Article


how to block CDockablePane being resized

I've tried to use CDockablePane and overriding member function IsResizable, make it always returning FALSE, but causing assert error.I have also tried define a new class deriving from CPane, but failed...

View Article

launching dialog from Command line is going to background in MFC application

I have an MFC application. Which can display the dialog using systemtray menu and command lne option. When i am openieng the dialog from systemtray it is always coming into foreground. But when  iam...

View Article


Why WPF Designer not in VC++ 2013?

I like to use ribbon UI control in VC++ project which already exists and started redesigning it.But WPF designer is available for C# and VB, but not for VC++ in Visual studio 2013 pro. So is there any...

View Article

VS2012 Tracker.exe can't find midl.exe

Hi,I've got a dynamic library project with an idl file and compile is failing with the following errorTRACKER : error TRK0005: Failed to locate: "midl.exe". The system cannot find the file specified.I...

View Article


vc++ 6.0 code migration in to VC++ (VS2010) not compile. typedef not work...

template<class _Ty, class _A = std::allocator<_Ty> >class ABCVector { public: typedef ABCVector<_Ty, _A> _Myt; typedef _A allocator_type; typedef _A::size_type size_type; typedef...

View Article

How to Display multiple images in same Window using win32api and c++

I successfully Displayed Images in a Viewer Window following this procedureSteps in Displaying a bitmap--   0. Get a DC with BeginPaint()    1. Create a memory device context with CreateCompatibleDC()...

View Article

Getting error 'operator !=' is ambiguous in VS2010

Hi,I have a old C++ project which is building successfully with vs2008, but when i migrate it to VS2010 it is giving below errorC:\Program Files\Microsoft Visual Studio 10.0\VC\include\vector(609):...

View Article
Browsing all 15302 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>