Search:
Type: Posts; User: 2kaud
Search:
Search took 0.15 seconds.
-
April 8th, 2021, 03:28 AM
Sorry, I've never gone into virtual desktops. I just use virtual machines.
However, Windows does support multiple Stations each with multiple Desktops. Would this be of any help? See...
-
March 30th, 2021, 09:15 AM
As a simple example of use with a text file, consider this. It takes an input file in plain text, encrypts to an output file and then decrypts the output file to the decrypted file in plain text.
...
-
March 30th, 2021, 03:33 AM
As I said in my previous post, TEA operates on 2 32-bit numbers. It takes 2 numbers as input and produces 2 numbers as output. If you want this to operate with text, then for encryption you have to...
-
March 29th, 2021, 11:32 AM
You might find more info here https://docs.microsoft.com/en-us/windows/win32/debug/structured-exception-handling
It seems there are various windows functions that can be used for dealing with...
-
March 29th, 2021, 07:47 AM
I think you're referring to Microsoft SEH - which uses _try _except _finally. The options are set under Code Generation
See...
-
March 28th, 2021, 05:48 AM
So the contents of the input file is as given above? You are expecting the output file to be readable? What are expecting the output file to contain?
decipher() returns 2 32-bit numbers via w...
-
March 27th, 2021, 06:37 AM
There are several issues with the code when using with union. The code below compiles and runs OK with VS2019:
#include <vector>
#include <string>
#include <iostream>
enum {INTEGER_TYPE =...
-
March 26th, 2021, 10:00 AM
Are you sure that ValuueType should be a union and not a struct? A union is a special class type that can hold only one of its non-static data members at a time. but in the constructor for ValuueType...
-
March 19th, 2021, 12:37 PM
Just looked into it. Appears you can't sub-class the windows console. Sorry.
Have a look at:...
-
March 19th, 2021, 09:16 AM
Ah. You might be able to subclass the console window and trap the WM_SIZE message and ignore it et al. Not tried though.
-
March 19th, 2021, 04:35 AM
It will auto-adjust text in the console window between newlines (or begin newline/newline end) to suit the size of the window. This is a 'feature' of the console. If you have say a width of 80 with a...
-
March 18th, 2021, 04:32 AM
class ctest {
public:
ctest(size_t sz) : ptrs(new int[sz]), sze(sz) {} // Constructor
~ctest() { delete[] ptrs; } // Destructor to delete allocated memory
private:
size_t sze {};...
-
March 17th, 2021, 04:23 AM
Currently reading the new best-seller by Rainer Grimm - C++20. Great read! Available from leanpub.com
-
March 12th, 2021, 04:39 AM
You haven't provided a compilable example. Are the 2 sets of code in different compilation units? if yes, is max_price() declared in a header file used by the compilation unit that has main() ?
-
March 10th, 2021, 07:37 AM
There is the c run time (CRT) and what is needed for MFC.
For CRT, if this is statically linked, then the .exe includes the required CRT. For dynamically linked CRT, then the appropriate CRT...
-
March 9th, 2021, 07:28 AM
The standard calling convention for c/c++ programs is __cdecl where the stack is cleaned up by the caller. Windows functions often use __stdcall where the stack is cleaned up by the callee (WINAPI is...
-
March 9th, 2021, 04:56 AM
The Bug has now been reported to the VS team and is now 'Under Investigation'. I'll update when there is more info.
Nice workaround! I'd never of thought of that as that using unused... line...
-
March 6th, 2021, 05:21 AM
The code compiles OK with both gcc and clang as C++17 or as C++20 with a change for unique. See https://wandbox.org/permlink/tfhEOLLXuzGTdh7J
The issue is only with VS. Hence I've moved this to...
-
March 5th, 2021, 05:06 AM
I'd change it to C++17 - and re-compile everything.
This C++17 example code demonstrates the problem:
#include <list>
using LT = std::list<int>;
using func_t = void(LT::*)();
-
March 4th, 2021, 12:01 PM
In VS2019, for the project/properties/general/C++ Language standard
What's the value? Preview means using C++20 which has return values for these functions. C++17 and previous had return void for...
-
March 4th, 2021, 10:51 AM
That's probably the issue. All the lines which now don't compile are those that reference functions that no longer return void, but have a return value - as of C++20! eg for C++20, unique() returns a...
-
March 4th, 2021, 08:52 AM
What version of lua are you using? The latest version is 5.4.2
There's also info on the internet as to how to use lua with C++ and classes as lua seems to be written in C. I've never used it.
-
March 4th, 2021, 08:38 AM
My response in my post #2 is based upon what I remember reading some time ago (MSDN blog post?) about some changes to the way Microsoft implement some class member functions which would have some...
-
March 4th, 2021, 07:38 AM
I think that this is due to changes in the stl implementation that means that some stl class members are no longer 'true functions' ie functions to which an address can be taken. There's nothing in...
-
March 3rd, 2021, 06:54 AM
operator() needs to be declared const
bool operator()(const int* p1, const int* p2) const
|
Click Here to Expand Forum to Full Width
On-Demand Webinars (sponsored)
|