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

Search:

Type: Posts; User: pdk5

Page 1 of 19 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    1,926

    Re: Help in understanding the legacy code

    I dont have any documents regarding this, so need to go through this and find out whats happening.
    and i was thinking, if they had used vectors it would have been implemented.
  2. Replies
    4
    Views
    1,926

    Help in understanding the legacy code

    Hello,

    Im trying to understand the following legacy code:

    Not sure why the following array indexing is made so complicated.
    Could some experts explain help me understand the logic behind


    ...
  3. Replies
    6
    Views
    2,159

    Re: Display python script output into MFC window

    Just to add some more inputs, when googling i found the following articles: (Not explored them yet). May be if anybody knows about these articles, will be helpful to post here:...
  4. Replies
    6
    Views
    2,159

    Re: Display python script output into MFC window

    Thankyou Victor for looking into this. As of now I have not tried to redirect. But i can try and update.
  5. Replies
    6
    Views
    2,159

    Display python script output into MFC window

    Hello,

    As you already helped me to plot a chart in python calling it in c++.
    the current output is into the console.

    Now I want to explore the option of moving the output plot into MFC window...
  6. Replies
    19
    Views
    5,424

    Re: Calling python from c++ in visual studio

    Hello,
    First of all thanks a lot for this forum, for helping me . Very helpful and much appreciated.

    Just to keep my progress updated, now I can pass the array from c++ to python and plot.


    ...
  7. Replies
    19
    Views
    5,424

    Re: Calling python from c++ in visual studio

    Thanks Arjay, yes I remember i had to debug one module in our project sometime back due to historical reasons. It can still be debugged, except some variables maynot be visible being optimised.
    ...
  8. Replies
    19
    Views
    5,424

    Re: Calling python from c++ in visual studio

    One more good news



    #include <iostream>
    #include "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\include\Python.h"

    using namespace std;

    int main(int)
  9. Replies
    19
    Views
    5,424

    Re: Calling python from c++ in visual studio

    Thankyou very much. Your suggestion was very helpful indeed. Eventhough it is still not working, but is better now. The earlier error is gone.

    The script had to have some indent issues:


    from...
  10. Replies
    19
    Views
    5,424

    Re: Calling python from c++ in visual studio

    Thanks a lot Arjay for the help.

    Actually when i changed the contents of Sample.py to:


    import matplotlib.pyplot as plt

    def fun(): print("Hello from a function")
  11. Replies
    19
    Views
    5,424

    Re: Calling python from c++ in visual studio

    Just to update, I upgraded to python3 and above error is not seen


    #include <iostream>
    #include "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\include\Python.h"

    int main()...
  12. Replies
    19
    Views
    5,424

    Re: Calling python from c++ in visual studio

    Thankyou very much kaud. Im sorry, im asking too many things. I was hoping to finish this today, but it looks like taking more time..


    Actually the issue is resolved when i changed to following
    ...
  13. Replies
    19
    Views
    5,424

    Re: Calling python from c++ in visual studio

    Actually , i want to call the function from a python file.
    By googling, it looks like I need to use the following function.
    I added a "Sample.py" in the same place where the exe is stored for the...
  14. Replies
    19
    Views
    5,424

    Re: Calling python from c++ in visual studio

    Sorry kaud, yes it was my mistake, i had changed to "Python 2"
  15. Replies
    19
    Views
    5,424

    Re: Calling python from c++ in visual studio

    Thankyou very much kaud.

    Now finally it works !!!
    I was using old VS. google told me to install later versions and we can download python with it. So I upgraded to VS2019, and ticked the python 2...
  16. Replies
    19
    Views
    5,424

    Re: Calling python from c++ in visual studio

    Thankyou very much kaud. I also have never used python . But it looked like charts are easy in python. so was exploring.

    I installed python via visual studio installer and I was hoping the visual...
  17. Replies
    19
    Views
    5,424

    Calling python from c++ in visual studio

    Hello,

    I used the visual studio installer to install python. I could run the basic python program.
    Now i want to make a c++ console program and call the python script from there.

    When googling...
  18. Thread: MFC chart plot

    by pdk5
    Replies
    2
    Views
    1,814

    Re: MFC chart plot

    Thankyou very much mesajflaviu for the help
  19. Thread: MFC chart plot

    by pdk5
    Replies
    2
    Views
    1,814

    MFC chart plot

    Hello,

    I have to add a simple chart in VC++ project (x and y ). As we already have MFC, is there any way to do it in c++ Or MFC, without any external tools ?

    thanks a lot
    pdk
  20. Replies
    2
    Views
    534

    do while with find_if

    Hello,



    std::map<int, bool > m_TacToAssignFlag;

    auto itr = m_TacToAssignFlag.begin();

    do
    {
  21. Re: is it safe to use the bitwise XOR for boolean types (in c++)

    Thanks a lot Victor again , I'll check this, very helpful
  22. Re: is it safe to use the bitwise XOR for boolean types (in c++)

    Sorry i meant, i am newbie and learning.

    @Victor: It was so helpful to get inputs and help us think about the issues in depth. Any feedback and help is very much appreciated. I feel so valued and...
  23. Re: is it safe to use the bitwise XOR for boolean types (in c++)

    @kaud: Thankyou very much for the detailed explanation. Very helpful.

    Also thankyou wolle and victor for the inputs
  24. Thread: changing for loop

    by pdk5
    Replies
    4
    Views
    1,013

    Re: changing for loop

    Thanks a lot kaud.
  25. is it safe to use the bitwise XOR for boolean types (in c++)

    Hello

    lets a i have :

    bool a = true;

    bool b = false;

    is it safe to use
Results 1 to 25 of 451
Page 1 of 19 1 2 3 4





Click Here to Expand Forum to Full Width

Featured