CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: rmirani

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    745

    Running an application on multiple CPUs

    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...
  2. Replies
    5
    Views
    1,049

    Re: Table of contents when using ::Serialize()?

    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:


    ...
  3. Replies
    5
    Views
    1,049

    Table of contents when using ::Serialize()?

    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...
  4. Replies
    0
    Views
    744

    Change CView color (Dark mode)

    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...
  5. Re: Is it safe to locally use arrays, vectors and calloc when multi-threading

    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...
  6. Is it safe to locally use arrays, vectors and calloc when multi-threading

    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...
  7. Replies
    1
    Views
    3,829

    SSE instruction: float -> unsigned short

    Hi,

    I'm looking for an SSE instruction for converting float <-> unsigned short.

    So far I've already managed to find unsigned short -> float...
  8. Replies
    5
    Views
    1,058

    Re: Looking for SSE instruction

    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.
  9. Replies
    5
    Views
    1,058

    Looking for SSE instruction

    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]...
  10. Replies
    2
    Views
    1,149

    Read file with chinese characters

    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...
  11. Re: How to stop Windows from auto-saving to AppData

    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:
    ...
  12. How to stop Windows from auto-saving to AppData

    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...
  13. Replies
    2
    Views
    831

    Re: Port Windows project to Mac

    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...
  14. Replies
    2
    Views
    831

    Port Windows project to Mac

    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?...
  15. Replies
    16
    Views
    3,764

    Re: Saving/loading files from within program

    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,...
  16. Replies
    16
    Views
    3,764

    Re: Saving/loading files from within program

    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?
  17. Replies
    16
    Views
    3,764

    Re: Saving/loading files from within program

    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...
  18. Replies
    16
    Views
    3,764

    Re: Saving/loading files from within program

    Ok, wonderful.
    Thank you!
  19. Replies
    16
    Views
    3,764

    Re: Saving/loading files from within program

    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...
  20. Replies
    16
    Views
    3,764

    Re: Saving/loading files from within program

    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...
  21. Replies
    16
    Views
    3,764

    Saving/loading files from within program

    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...
  22. Thread: Linker errors

    by rmirani
    Replies
    4
    Views
    689

    Re: Linker errors

    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...
  23. Thread: Linker errors

    by rmirani
    Replies
    4
    Views
    689

    Re: Linker errors

    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...
  24. Thread: Linker errors

    by rmirani
    Replies
    4
    Views
    689

    Re: Linker errors

    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...
  25. Thread: Linker errors

    by rmirani
    Replies
    4
    Views
    689

    Linker errors

    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...
Results 1 to 25 of 117
Page 1 of 5 1 2 3 4





Click Here to Expand Forum to Full Width

Featured