Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Browsing all 3029 articles
Browse latest View live

Display python script output into MFC window

Hello, As you already helped me to plot a chart in python calling it in c++. the current output is into the console. Now I want to explore the option of moving the output plot into MFC window dialogue....

View Article


Can't get libzippp working in 64 bit

I'm looking for Zip libraries and libzippp looks to be what I want so I'm trying little POC console apps. This is the first, which works fine in x86 but when I try to compile in x64 I get 'Unresolved...

View Article


Help in understanding the legacy code

Hello, Im trying to understand the following legacy code: Not sure why the following array indexing is made so complicated. Could some experts explain help me understand the logic behind Code:...

View Article

Programming and Software Development issues.

HI Guys there's a Book about Beginner's step by step coding that i believe would benefit anyone Having issues . $5 for a 7day trail Here's the link -https://amzn.to/3cH0x6i

View Article

LARGE FILE (?) build ??

Not needed now - but can't figure out how to delete a thread :cry:

View Article


How to convert CString to wstring_view?

Hi, I'm just starting, Can i convert CString to wstring_view like this? CString s= L"abc"; wstring_view x{ (LPCTSTR)s }; Thanks you!

View Article

toolset selection

hi, Is it possible in visual studio 2012 mfc project to select vt120, vt100, v90 by using a #ifdef?. like, #ifdef _VC2008 build using vt90, etc.

View Article

sendMessage from MFC DLL to calling MFC application

hi, need an example code or project on sending message (sendmessage) from a MFC DLL to its calling MFC application?.

View Article


Image may be NSFW.
Clik here to view.

MFC how to display corner icon?

Hi, I want to decorate the mfc a bit, How I can set this icon at corner? I see this icon appear when I use IFileOpenDialog. Is it available for mfc? Thanks you! Attached Images  

View Article


Image may be NSFW.
Clik here to view.

Routing messages from CView to CDockablePane

I have a MDI app, with CView based on CEditView, and in CMainFrame, I have a CDockablePane where I stretched a CRichEditCtrl. Everything goes well, except that messages from CMyDockablePane is routed...

View Article

How to Add new sheet to the end?

Hi, I have searched a lot of post but still haven't found an answer, the code I use is as follows: HTML Code: Excel::WorksheetsPtr ws = Worksheets->GetItem(Worksheets->Count); <<-- last...

View Article

wcscpy_s problem

What am I doing wrong here..? Code: // Needed for wcscpy_s #include <string.h> // Later in the code  wcscpy_s (some_destination, L"Hello World"); The above code gives me error C2660: 'wcscpy_s':...

View Article

Image may be NSFW.
Clik here to view.

Unable to compile

hello I have a question about the compilation I compiled the attached code without any problem up to two/three updates ago, after the last two or three updates if I try to compile the code again I got...

View Article


Building a DPI aware app in VS2019

Configuration Properties->Manifest Flle->DPI Awareness can be set to 3 x different values. Let's forget the Per Monitor setting for the moment 'cos that one's a bit complicated. So basically, the...

View Article

Unable to compile

I am having a similar problem with Visual Studio 2013. Yesterday after windows 7 update when I try to compile any project I get: "Error 2 error C1041: cannot open program database ''; if multiple...

View Article


Can't CreateProcess application?

Hi, I use the following code to launch excel: HTML Code:   STARTUPINFO Start;     PROCESS_INFORMATION ProcInfo;     ZeroMemory(&Start, sizeof(STARTUPINFO));     Start.cb = sizeof(Start);...

View Article

How to get instance Excel2016?

Hi, My computer is installing 2 versions of excel10 and excel16. I use the following code to get the running excel instance but it only recognizes excel10. Code:     LPWSTR pszExcelPath =...

View Article


[RESOLVED] Unable to compile

I am having a similar problem with Visual Studio 2013. Yesterday after windows 7 update when I try to compile any project I get: "Error 2 error C1041: cannot open program database ''; if multiple...

View Article

exporting Library functions to some Apps

In VS MFC DLL, what is the best way to export my functions so that others using .Net or similar can import them without any run time failures?. for returning arguments use by reference, by pointer or...

View Article

How to fix Compile Wrong datatype on vs2019?

Hi, I have created 4 methods as follows: Code:           void Range::WriteValue(CStringW value)           {                           }           void Range::WriteValue(int value)           {...

View Article
Browsing all 3029 articles
Browse latest View live


Latest Images