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 =…
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…
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…
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…
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…
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…
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…
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…
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
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…
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…
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…
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 =…
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…
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.
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...
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
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…
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…
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…