3,532 questions with C++-related tags

Sort by: Updated
2 answers

How get internet filename

Hi I using following code to get a file information from url, but GetFileName() method not return pure filename! it just returns part of url including trailing numbers! CInternetSession sess; CHttpFile* pfile =…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-17T05:51:14.887+00:00
drjackool 956 Reputation points
commented 2021-08-26T08:43:52.973+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
0 answers

Is it possible to use Web Control in VC6.0 when IE support is discontinued?

Hello, I am currently developing a product using VC6.0. It is impossible to upgrade the development tool version. If IE support stops next year, I wonder if the web control (webbowser2) being used in 6.0 can still be used. Or, I wonder if there…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-26T05:20:23.67+00:00
치치쨩 1 Reputation point
commented 2021-08-26T08:17:00.277+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
0 answers

Implement module (.cppm) in separate file (MSVS2019 Community, c++20)

I've got compilation errors when I am trying to implement module in separate file. However compilation is successful when I implement module in .cppm file. What's wrong here? Is it due to experimental features or I should configure something in project's…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-23T13:51:15.107+00:00
Fakhriyor Otamirzaev 1 Reputation point
commented 2021-08-26T07:45:50.973+00:00
Fakhriyor Otamirzaev 1 Reputation point
1 answer

DirectShow filter to queue samples and pass them downstream when needed

I am writing a custom filter that helps in buffering samples (the number of buffered samples can vary depending on the resolution of recorded video) then do some modifications on these samples, later pass these samples to downstream filters. Is there…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,423 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-25T14:47:58.463+00:00
Madhu 1 Reputation point
answered 2021-08-26T06:42:42.39+00:00
Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor
1 answer

WinUI 3(C++/WinRT): "NavViewCompactModeThresholdWidth" not found

According to the sample code of the the document in Microsoft Learn, I wrote almost the same code, but it cannot be compiled. There is an error, "NavViewCompactModeThresholdWidth": is not a member of…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
726 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,423 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-25T13:42:38.613+00:00
XiaoLi8848 1 Reputation point
answered 2021-08-26T03:18:02.72+00:00
Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor
1 answer

CDHtmlDialog

Hi, I am using windows 10 and VS2019. I am loading a html page in MFC CDHtmlDialog. I am using HTML Select tag for dropdown list. Whereas when I try to open same HTML page from IE 11 and MIcrosoft Edge browser directly, the dropdown…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-23T11:02:40.847+00:00
abc abc 351 Reputation points
commented 2021-08-24T21:34:45.173+00:00
Castorix31 81,726 Reputation points
0 answers

I ask if it is possible to replace VC6.0 Active X control.

Currently, I am using a product developed using VC6.0 ActiveX control. I wonder if it's possible to use existing controls if IE is deprecated next year. Development tool version upgrade is not possible. If it is not possible to use it, I wonder if a…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-24T05:38:37.267+00:00
이수지 [esgurdl] 1 Reputation point
commented 2021-08-24T06:52:02.177+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Visual Studio 2019 desktop GUI application how to get console output at the same time

Here's a link to the tutorial this post is about. It's four very short files under the heading Event Propagation. https://zetcode.com/gui/wxwidgets/events/ I've included all of the code at the bottom of this post. There are only 2 very short header…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-23T16:15:20.46+00:00
Jana Cole 26 Reputation points
accepted 2021-08-23T18:31:52.58+00:00
Jana Cole 26 Reputation points
2 answers

Static control displays 16x16 icon as 32x32 if created at design time???

Hi Visual C++ dialog designer All question in title, How solve this problem? I have problem to design and arrange the controls because the static icon is not displayed on 16x16 and overllaped it's right static text. Thanks

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-22T17:17:13.21+00:00
drjackool 956 Reputation points
commented 2021-08-23T15:36:38.1+00:00
RLWA32 40,471 Reputation points
0 answers

Remembering view mode when changing view mode using IResultData->SetViewMode() in MMC snap-in

Hi, I want to achieve similar functionality of mmc view menus detail,list,filter in MMC result view html page. In html page when I click on dropdown with views(list,detail,filter), I need to change view mode. By using IResultData->SetViewMode() I…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-23T15:14:01.63+00:00
abc abc 351 Reputation points
2 answers

Transparent Child WIndow

Hi, I have a child CWnd object. Using SetWindowLong I have set WS_EX_LAYERED | WS_EX_TRANSPARENT. The parent has a map as background. When I create the child I can see the map beneath as expected. When I move the object the initial image is moved…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-12T16:33:03.623+00:00
IDH 21 Reputation points
answered 2021-08-23T12:48:29.927+00:00
IDH 21 Reputation points
0 answers

IMFByteStream become unusable after the IMFMediaSource is shutdown. Playing mp3 playlist using Microsoft Media Foundation

Hello, This is my first question here. I apologize in advance if I make some mistakes. I'm writing a software that call a customer number (audio/voiced) when a button is pressed with as little delay as possible. It's for Windows 10, using C++ on MS…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,423 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-13T07:07:19.923+00:00
Widyo Wicaksono 1 Reputation point
commented 2021-08-23T05:20:13.63+00:00
Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor
1 answer

OpenGL ERROR E0310

default argument of type "const char *" is incompatible with parameter of type "char *" My Code: Shader(char* vertexFile, char* fragmentFile, char* geometryFile = "") { GLuint vertexShader = 0; GLuint geometryShader =…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-21T10:09:34.44+00:00
FaclonDev 1 Reputation point
commented 2021-08-23T02:35:10.773+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
0 answers

LogonUI, PowerShell and Command Prompt windows invisible when using GetDC to capture a screenshot in Hyper-V Server

Hi all, As the title says, I am capturing screenshots of the desktop using GdiPlus through examples found pretty commonly on the internet (GetDC, BitBlt, etc). Combining this with the OpenInputDesktop and SetDesktopThread API even allows me to capture…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,423 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,545 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-20T22:43:07.83+00:00
Adam Bajac 1 Reputation point
2 answers

CMFCPropertySheet progrmmaticaly close

If some processing in CMFCPropertySheet throws an exception, how to close the app from the catch block? PropSheet has one button, Cancel, and OnCommand handler.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-20T18:11:49.483+00:00
George Yaroshevsky 1 Reputation point
answered 2021-08-20T21:58:46.407+00:00
George Yaroshevsky 1 Reputation point
2 answers

Can I use ABI::Windows::Media::Ocr in .Net Framework?

Hi, some one know how can I use <windows.media.ocr.h> library and ABI::Windows::Media::Ocr in .Net Framework? (C++) and yes, I saw the sample on microsoft.docs, but that example is on UWP and I need .net framework...

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-20T09:56:57.78+00:00
sup2MMc 26 Reputation points
answered 2021-08-20T14:34:31.53+00:00
Castorix31 81,726 Reputation points
1 answer

How connect to HTTPS via MFC internet classes

hi to connecting a https server do I need certificate for my app or not? I usehttps flag on OpenRequest and Internetseioon classes but server detect my app as http not https! thanks

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-19T18:58:16.587+00:00
drjackool 956 Reputation points
commented 2021-08-20T08:32:43.94+00:00
David Lowndes 4,711 Reputation points
1 answer

CoreWindow::CharacterReceived event didn't work for Japanese symbols

I'm supporting UWP application and it uses pure DirectX, no XAML at all. Customer reported that he can't work with Japanese symbols. So I did some checking and found that for some reason CoreWindow::CharacterReceived method returns Latin symbols even if…

Universal Windows Platform (UWP)
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-16T16:50:09.033+00:00
Camran Boyle 6 Reputation points
commented 2021-08-20T01:31:56.56+00:00
Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,856 Reputation points
1 answer

delete array of pointer

Hi, Can one of you ( pls only experts) explain which one is true first or second? Because we know that in the background processer, there is no 2D, 3D, 4D... dimension for the memory. That is after we want to create one 2D or 3D dimensional array, it is…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-19T10:07:57.407+00:00
Fethullah SİPAHİOĞLU 1 Reputation point
commented 2021-08-19T23:28:12.37+00:00
Fethullah SİPAHİOĞLU 1 Reputation point
0 answers

Question for xll excel ?

Hi, I'm using these codes from this post xlcall.cpp: What I am doing is getting the address of 1 cell based on row and column position. in the first run the function code works fine. but in the next call, the result appeared cryptic…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
asked 2021-08-19T09:49:38.42+00:00
DangDKhanh-2637 941 Reputation points