Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Stephane Capo

@Stephane Capo
About
Posts
11
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Article section
    S Stephane Capo

    Yeah ! Thanks !

    Article Writing c++ html com algorithms performance

  • Article section
    S Stephane Capo

    Hello, this Tip/Trick article I wrote : An Efficient String to Unsigned int ID Struct[^] was put in the Web Development/HTML section , but it should be in something like General Programming/optimization or Programming Langage/C++. I tried to change tags without effect. Any suggestion ? thanks

    Article Writing c++ html com algorithms performance

  • Problem with pointers memory allocation on the same memory area
    S Stephane Capo

    Hello, I'm not sure to understand how the "serialization" works in your exemple. What is ar ?

    ar >> m_pFont

    m_pFont is a pointer, so in my opinion, there is no allocation here, only a pointer (ar) affected to another pointer (m_pFont). You probably have one instance of your font ( managed by your code or the library, I don't know ) referenced ( pointed ) by several m_pFont.

    C / C++ / MFC help css wpf debugging json

  • Cross Platform development for Windows and Android
    S Stephane Capo

    Hello, if your objective is to share only the math component, then you probably can create a C++ DLL ( for the Windows side ) and .SO ( for the Android side ) and interface your existing C# and Java code (JNI) with this DLL. So only the math component needs to be ported (to C++). If you really want to port everything (both apps) to the same language, then C# (Xamarin) is probably a good choice. I also propose a free open source C++ cross-platform framework ( https://Kigs-framework.org ).

    Stéphane Capo

    The Lounge csharp java android mobile

  • asign to return value
    S Stephane Capo

    Yes.

    C / C++ / MFC question

  • asign to return value
    S Stephane Capo

    So you probably need to return a reference :

    ChartNode& NodeCoord(int x, int z)
    {
    return Chart[z * 10 + x];
    }

    else the NodeCoord(4,4).access = false will assign a temporary copy of your ChartNode struct and not the one in your array.

    C / C++ / MFC question

  • asign to return value
    S Stephane Capo

    Hello, the code itself will work, but will not do what I suppose you expect. Here, Funct returns a copy of the TestStruct S. So Funct().x = 100 will affect 100 in a temporary TestStruct that you can not use after that. I don't know why you want to use a function to access your S structure, but the behavior you look for is probably :

    // Funct returns a reference on S structure.
    TestStruct& Funct()
    {
    return S;
    }

    C / C++ / MFC question

  • implicitly deleted because a base class invokes a deleted or inaccessible function 'CDialog::CDialog(const CDialog &)'
    S Stephane Capo

    Hello, I suppose that this should be better : SiBatchJobUpdateDlg updateDlg(this);

    C / C++ / MFC help

  • To bool or not to bool in C/C++ ?
    S Stephane Capo

    Hello, perhaps there's a confusion with older versions of C language where bool was not a standard type. But in all cases : "when "condition" such as in "if(condition)" evaluates to true, it is binary zero" is false ! cppreference.com[^] : If the source type is bool, the value false is converted to zero and the value true is converted to the value one of the destination type (note that if the destination type is int, this is an integer promotion, not an integer conversion).

    C / C++ / MFC c++ help question learning

  • Use of string class in c++
    S Stephane Capo

    I agree with other messages, we can not guess everything. My best guess is that you are compiling a C file? (not C++)...

    C / C++ / MFC c++

  • Use of string class in c++
    S Stephane Capo

    Hello, some more details would be helpful! Do you mean std::string ? If this is the case did you include ? :

    #include

    then use std::string :

    std::string astring("a string");

    C / C++ / MFC c++
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups