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

[RESOLVED] Visual C++ 20

The new "beginners" book I bought uses examples from C++ 20 and C++ 23 but I'm using MS Visual Studio 2022 which doesn't support those standards. Is MS going to support the 20 and 23 standards in the...

View Article


dump a large c arrays of short and float type

Hello, Im pulled into some new work, where i am asked to dump a large number of c arrays (some are float, and some short) to text file. All of them have same size. Ive written following code. Not sure...

View Article


malloc in c++ class, is it getting deallocated

Hello, I am trying to update a test program class, to my program In that, I can see a buffer is allocated with malloc. But doesnot call free anywhere !. It looks like going to be memry leak. Am i right...

View Article

VS2022 Default #include folders

I'm sure there's a setup window somewhere that'll allow me to add a folder to the VC compiler's list of default #include folders. I'm not talking about adding folders for a particular project - but a...

View Article

LoadLibrary returns 0

Hi, I'm trying to generate a DLL that is just a simple timer like routine for activating when a System DLG box pops up. I am unable to get anything but 0 from the library. I have checked the code, but...

View Article


[RESOLVED] LoadLibrary returns 0

Hi, I'm trying to generate a DLL that is just a simple timer like routine for activating when a System DLG box pops up. I am unable to get anything but 0 from the library. I have checked the code, but...

View Article

[RESOLVED] DLL using GetProcAddress no exporting performed in DLL

HI, I am creating a very simple DLL, and I have the LoadLibrary problem temporarily fixed, I now face an issue where GetProcAddress does not find any exported functions. Not sure what the DLL defines...

View Article

[RESOLVED] Proper way to call a function in a DLL

Hi, I have been struggling with a dll for VBA, but now I'm closer to the finish line, thanks to all the help here. Now my issue is that I can't determine the proper way to make the function call to the...

View Article


Application.ontime not working, compiler does not recognize application

Hi, I'm going to use Application.ontime, but the compiler does not recognize it and gives errors. What header do I need to include for this to run? Here are the current headers I have listed in the...

View Article


[RESOLVED] Application.ontime not working, compiler does not recognize...

Hi, I'm going to use Application.ontime, but the compiler does not recognize it and gives errors. What header do I need to include for this to run? Here are the current headers I have listed in the...

View Article

Program crashes after call to StopTimer (Sleep?)

EDIT: OK this method won't work.... Is there a timer routine that will return control back to VB once it is called? One where I can start it running and then stop it from running? Need a different...

View Article

Good reference to C++

Hi, I used to be pretty good with MFC, 25 years ago, but now there does not appear to be MFC any longer. I'm working with VS 2022. So since I had to never deal with the message pump and starting the...

View Article

Process info display

Hello, I need to display the information of a process in c++. (ie number of threads in c++ , belonging to a process etc) in windows I am not system level programmer , coming from linux user level prog....

View Article


Timer function in multithreading

Hi, I create a new process from parent process. Now I need to print the process info on the child process, every 5 mins. Im thinking of using the windows timer functionality with the call back. Is this...

View Article

[RESOLVED] Hide and Show an IDC_STATIC_PIC5 Picture Control

I have a CFormView with Picture control that displays a bmp image. I want to hide that control and later re-show it. I used m_pic.ShowWindow(SW_HIDE); to make it disappear. But nothing will allow me to...

View Article


Proper way to print - think C++ 23+

I'm curious - What is the proper way to print in a modern C++ program. Don't think about how you've aways printed with the simply using cout like this: Code: #include <iostream> int main() {...

View Article

Image may be NSFW.
Clik here to view.

creating child dialog from the parent handle

Hello, In the legacy code, I have a diaglog opening up. But I want to open another window on top of that. So I had written following code on branch for sometime now. When I test the child window pops...

View Article


Trying to run Excel - can't create dispatch (Visual Studio 6 C++)

Hi there! :) It seems I forgot some nuances in my own old code - take a look please: ... // Excel app initialization _Application oApp; oApp.CreateDispatch("Excel.Application"); if (!oApp) {...

View Article

VC++ & ODBC, MS Acces database w/ multiple tables

Hello, Regarding VC++ based tools w/ ODBC Access .mdb's. Recently discovered that, upon executing VC++ New Project Wizard, & pointing it to an .mdb source, that that same .mdb source can have...

View Article

Time related

Hello, Im trying to come up with code for measuring the total time. If a pixel takes lets say a 1 millisec to do some calculation, whatabout the n pixels. But I want to display that in the format of,...

View Article
Browsing all 3021 articles
Browse latest View live