Beginners - September 2023

How to display the number of elements in a dynamic memory allocated array
 
Hi, Please, can someone help with this code? I have been trying to display the number of elements store in a dynamic memory allocated 1D array created using ...
[15 replies] Last: @All Awesome! I learned so much from this interaction especially abou... (by ayoesquire)
by Atom1
DLL Calculation does not agree with Excel (1,2)
 
I'm trying to understand why the DLL built from the code below does not get the same result as Excel. In Excel I get: 0.892857143 From the DLL I get: 0.904762 ...
[20 replies] Last: Array Values Old Method DLL 848 5 4516.72552 0.9981800000 ............ (by lastchance)
by chipp
C++20 import issue
 
i tried to code in C++20 and tried to import header file but it doesn't worked anyone knows why? IDE i'm using is Visual Studio 2022 my code is like th...
[7 replies] Last: but there's no "Latest" option Look at the option below C++20, the o... (by deleted account xyzzy)
make_pair with explicit types
 
Good day! I have problem understanding why my example is not compiling when I explicitly specify the types for make_pair. #include <string> int main()...
[7 replies] Last: Thank you for answers! It became a lot more clear now! @Peter87, Abou... (by Satoshi Yoda)
by Ch1156
Best way to lock a thread mutex?
 
So if I wanted to lock a mutex, could use mut.lock() and mut.unlock(), but the more modern way to do it is to use std::lock_guard<std::mutex> lock(myMutex);, bu...
[3 replies] Last: Awesome thank you both! (by Ch1156)
by Ch1156
Re-validating an iterator (1,2)
 
I wrote a simple program that removes all people from the vector based on age. Normally, when i write a program like this i usually remove only one person, so i...
[25 replies] Last: Thanks for all the info, ill set that up at some point here soon. For ... (by Ch1156)
by Atom1
DLL is not a valid win32 aplication
 
I recently migrated from VS 2019 to VS 2022. When I try to run debug on this code, I get a message box saying dll is not a valid win32 application. I can build ...
[8 replies] Last: Also just a small point. if you want to debug a dll then the dll needs... (by seeplus)
got undefined symbol: _ZTIN9... when run executive file
 
Hello everyone! This morning I have got unexpected error: "undefined symbol: _ZTIN9Fastcgipp3SQL12Results_baseE" when I run the executive file. The program was...
[7 replies] Last: [quote=kigar64551]But keep in mind... Thank you. btw, I hope there w... (by spistol)
  Archived months: [aug2023] [oct2023]

This is an archived page. To post a new message, go to the current page.