Search:
Type: Posts; User: rmirani
Search:
Search took 0.02 seconds.
-
I have a multi-threaded application, written in Visual Studio C++.
However, I'm told that, when running on a system with multiple CPUs (a server), only a single CPU is used by the application.
Is...
-
March 27th, 2022, 03:47 PM
My apologies, I probably didn't explain myself clearly.
Let's say that I have 1000 objects.
I want to store these objects in a savefile, using Serialize.
The code for this will roughly be:
...
-
March 25th, 2022, 11:40 AM
Is it possible to set up a table of contents when working with ::Serialize()?
For example, I have a savefile that contains 10.000 objects.
The savefile is rather large, and if possible, I would...
-
February 11th, 2022, 07:36 AM
I'm trying to create a dark mode version of my program.
For this, the window itself would need to become dark as well.
See the screenshot below.
Is there some straightforward method of...
-
November 12th, 2021, 03:16 PM
Ok, thank you.
I'm indeed using new/delete rather than calloc/malloc/free, but I forgot to explicitly ask for new/delete in the list of possibilities.
As for the C++ version, I'm using Microsoft...
-
November 12th, 2021, 09:13 AM
Hi everyone,
I have a question about working with threads.
Is it safe to work with locally assigned memory, such as arrays, vectors and memory temporarily created with calloc (or a simillar alloc...
-
November 10th, 2020, 09:47 AM
Hi,
I'm looking for an SSE instruction for converting float <-> unsigned short.
So far I've already managed to find unsigned short -> float...
-
September 22nd, 2020, 08:52 AM
Performance is an issue, however, I will indeed just measure different approaches.
I was just wondering if perhaps there was a dedicated function for this.
-
September 22nd, 2020, 04:37 AM
Hi,
I'm looking for an SSE instruction, which I suspect is available somewhere in its instruction set.
If I have 4 arrays, A, B, C and D:
[A3] [B3] [C3] [D3]
[A2] [B2] [C2] [D2]...
-
Hi everyone,
I'm trying to read a .txt file with Chinese characters.
The file is currently saved with MicroSoft Notepad in UTF-16 LE format.
Is there some way of reading this file to obtain a...
-
July 10th, 2019, 12:10 PM
Ok, I think that I figured it out.
It appears that these files are created by Windows Restart Manager.
This is because in CMyProgrammApp::CMyProgrammApp() the following flag is set:
...
-
July 10th, 2019, 04:14 AM
Hi everyone,
I have an application that for some reason lets Windows automatically store a backup file to C:\Users\Username\AppData\Local
This happens every 5 minutes or so.
Now, in principle...
-
October 29th, 2017, 04:38 AM
No, it's all just standard c++, which is why I'm curious if this can simply be exported to the Mac version of Visual Studio C++. Figuring this out would involve the purchase of a Mac, so I'm rather...
-
October 28th, 2017, 06:00 AM
Hi guys,
I have a C++ project in VS2017 for Windows and am curious how hard it would be to transfer this to a Mac.
Is this as simple as installing VS2017 on a Mac and importing the same project?...
-
September 3rd, 2017, 08:34 AM
Ok, I seem to have finally been able to find this.
To save a file:
CFile theFile;
theFile.Open(_T("myfile.fmt"), CFile::modeCreate | CFile::modeWrite);
CArchive archive(&theFile,...
-
September 3rd, 2017, 06:30 AM
It's a CDocument, however, it's ::Serialize() function is of the form:
void CMyDoc::Serialize(CArchive& ar)
So it' requires a CArchive object.
Where would I get this from?
-
September 2nd, 2017, 04:31 AM
Can you be a bit more specific?
Those are some pretty big classes.
So far I can't seem to find any way to do this, and I'm getting the impression that it's not possible at all.
Is it at the very...
-
August 27th, 2017, 01:06 PM
Ok, wonderful.
Thank you!
-
August 27th, 2017, 12:13 PM
No, I'm referring to regular savefiles; not .txt files.
The ones that users can create by pressing Ctrl+S or by going to "File->Save".
The ones that will lead to a call to ::Serialize().
Is it...
-
August 27th, 2017, 11:24 AM
I should probably phrase my question a bit more clearly.
How can I load a savefile from within my own program (so without the user being the one to open the file himself with Ctrl+O)?
And how can I...
-
August 27th, 2017, 07:07 AM
Hi everyone,
I would like to write a function for a program of mine that processes all the files in a given directory.
This would require the ability to save/load files from within the program...
-
November 13th, 2016, 08:35 AM
Well, I seem to have found the answer here: http://stackoverflow.com/questions/11456159/lnk-2005-link-errors-for-functions-but-not-for-class-in-visual-studio-2010
Apparently function definitions...
-
November 13th, 2016, 07:58 AM
Ok, I have now greatly simplified the situation, and I'm still getting a linker error.
The file with the namespace is now simplified to:
#ifndef MYFILE___
#define MYFILE___
namespace...
-
November 11th, 2016, 06:33 AM
Yes, I probably should have mentioned that.
I have checked all the .h files and they do all have those:
/**
* This code is released under the
* Apache License Version 2.0...
-
November 10th, 2016, 12:00 PM
Hi everyone,
I was previously looking for a way to get files for a compression algorithm to work, namely the ones provided here: https://github.com/lemire/FastPFor
The files involve .h and .cpp...
|
Click Here to Expand Forum to Full Width
|