
- Home
- Activity Stream
Activity Stream
New Activity ()
Please reload this page to view the 200+ new activity items that have been created.
-
Older Activity
-
Yesterday, 03:11 PM
Hello Everyone,
nowadays I am learning Cpp. and I am confused between C++ ideas like Code Blocks, Dev C++, Visual Studio Code.I Have Searched this...
0 replies | 45 view(s)
-
Yesterday, 08:31 AM
Bback in the good old days of VC8, if I was editing a project (i.e. not in compile mode or debug mode etc) the bottom bit of my edit window used to...
0 replies | 62 view(s)
-
Yesterday, 08:10 AM
John, please don't ask different questions in the same post. It's better to start a new post for each new question.
3 replies | 74 view(s)
-
3 replies | 74 view(s)
-
Yesterday, 07:29 AM
The assert is correct even if reserve is used. All reserve() does is to allocate memory (which MSVC does). It doesn't add any elements. If you just...
3 replies | 74 view(s)
-
Yesterday, 04:34 AM
This actual object type is more complicated but I still see the problem, even with a simple int -so here goes:-
std::vector<int> vect;
int...
3 replies | 74 view(s)
-
Yesterday, 04:15 AM
NO. Don't do it. Don't use a std::string (or any non POD type) in a union. If you want these three types, use a std::variant with C++17.
I know...
19 replies | 267 view(s)
-
March 1st, 2021, 08:15 PM
If you haven't used an Object Relational Mapper (ORM) before you may want to check it out. I see a few available for c++. If they are anything like...
19 replies | 267 view(s)
-
March 1st, 2021, 02:58 PM
You can create a union of these 3 types using std::variant. If you declare a variable of that union type, you can check which of the types is stored...
19 replies | 267 view(s)
-
March 1st, 2021, 02:53 PM
Thx.
19 replies | 267 view(s)
-
March 1st, 2021, 02:38 PM
OK I'll delete your new thread.
19 replies | 267 view(s)
-
March 1st, 2021, 02:34 PM
Sorry, I just reposted it in the other forum.
Please either delete the new posting or put this back and close it.
Thank you and sorry for the...
19 replies | 267 view(s)
-
March 1st, 2021, 02:32 PM
Visual C++ Programming forum]
19 replies | 267 view(s)
-
March 1st, 2021, 02:30 PM
Please, don't do it!
I'll just move this thread...
19 replies | 267 view(s)
-
March 1st, 2021, 02:26 PM
Hi,
Yes, that is what I will do.
I will create a posting in the other forum.
Thank you.
19 replies | 267 view(s)
-
March 1st, 2021, 02:21 PM
Then sorry! :sick:
However, in such a case you should have posted this question in some other C/C++ forum, NOT in the Visual C++ one!
19 replies | 267 view(s)
-
March 1st, 2021, 02:14 PM
Hi,
Never try to write something too fast and expect a good answer. And never write it when you are about to fall asleep. ;-)
I want a...
19 replies | 267 view(s)
-
March 1st, 2021, 02:06 PM
Since you get your data from a database then it is a good reason (as 2kaud already pointed out) to use the VARIANT (or the classes that encapsulate...
19 replies | 267 view(s)
-
March 1st, 2021, 01:31 PM
Hi
Yes, everything is just a set of characters.
I think that is what I will do.
Except that if the DB contains the number - it will be...
19 replies | 267 view(s)
-
March 1st, 2021, 06:06 AM
An alternative to what 2kaud suggests is to go for an object-oriented design. In that case, you would replace T with a base class type. Then you...
19 replies | 267 view(s)
-
March 1st, 2021, 04:45 AM
In which case you can't use templates.
If the compiler doesn't know the type at compile time, you're very limited as to what you can do. C++ is a...
19 replies | 267 view(s)
-
March 1st, 2021, 04:14 AM
Hi,
Well, I don't know what type it will be, hence the type field inside the structuyou.
I will know it at run-time when I get the row.
...
19 replies | 267 view(s)
-
March 1st, 2021, 02:13 AM
Hi,
error C3203: unspecialized class template can't be used as a template argument for template parameter '_Ty', expected a real type
...
19 replies | 267 view(s)
-
March 1st, 2021, 02:13 AM
You must specify the typename T of TableRow. Say you want it to be an int you do,
std::vector<TableRow<int>> row;
19 replies | 267 view(s)
-
March 1st, 2021, 01:59 AM
What error do you get?
19 replies | 267 view(s)
-
February 28th, 2021, 11:01 PM
Hi, ALL,
What would be the best solution for the following problem:
Let's say I have a table in the database.
And in my C++ code I have a...
19 replies | 267 view(s)
|
Click Here to Expand Forum to Full Width
On-Demand Webinars (sponsored)
|