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
    3
    Views
    434

    Re: Reference to outer struct doesnot update

    sorry it was my mistake, they also defined new class in the m_pCurrentService also.. it looks like something wrong in design (it is there in two places)..getting updated one place..accessed somewhere...
  2. Replies
    3
    Views
    434

    Re: Reference to outer struct doesnot update

    Thanks a lot kaud, for looking into this and helping me
    Yes, it is reference (its legacy code)

    FiveGServiceParams& TGService::Get5gParams()
    {
    return m_5gParams;
    }
  3. Replies
    3
    Views
    434

    Reference to outer struct doesnot update

    Hello,

    I have a function:




    void FiveGServiceGeneralPage::SaveValues()
    {
    FiveGServiceParams& fivegParams = m_pCurrentService->Get5gParams();
  4. Replies
    11
    Views
    1,796

    Re: casting pointer to template type

    Thanks a lot kaud, there was function i could call to get the output array. And that i passed and now it works ok !!.
  5. Replies
    11
    Views
    1,796

    Re: casting pointer to template type

    thanks a lot kaud. But the function im calling (RenderNewSimOutput) is legacy

    in my case, iOutIndex will just be "0", as its just one pixel




    bool...
  6. Replies
    11
    Views
    1,796

    Re: casting pointer to template type

    i.e true, because output can be int or float..

    if out is int, rfp.piOut is used
    if float rfp.pfOut is used

    in our case it is float..(not array)
  7. Replies
    11
    Views
    1,796

    Re: casting pointer to template type

    Thanks a lot kaud..

    Im seeing somewhere else in legacy code, (for getting int value)

    int iVal = 0;
    OnePixel<int> iraster(&iVal);

    RenderFuncParams rfp;...
  8. Replies
    11
    Views
    1,796

    Re: casting pointer to template type

    Thanks a lot kaud. Yes, i will check with my collegues about this.

    But now, Im facing issue further on: somehow, the passed reinterpret cast pointer is not able to be written

    Actually, i am...
  9. Replies
    11
    Views
    1,796

    Re: casting pointer to template type

    Thankyou very much kaud !!!. Yes it compiled like magic :)

    I was some short break and now back to work and i feel like i have forgotten little bit c++ i knew..

    thanks a lot again.. i am sorry...
  10. Replies
    11
    Views
    1,796

    casting pointer to template type

    Hello.

    I have another circular dependency issue, so was trying to handle by changing the variable access, to pointer type.

    But the pointer is for templated class.

    Basically i had

    ...
  11. Replies
    14
    Views
    1,626

    Re: New file inclusion problem on legacy code

    Thankyou very much kaud. As per your advice i have used optional now
    (sorry for the delay response,)
  12. Replies
    14
    Views
    1,626

    Re: New file inclusion problem on legacy code

    May be otherway is pass it function param as reference and return a bool (to tell if its valid )!!!
  13. Replies
    14
    Views
    1,626

    Re: New file inclusion problem on legacy code

    @Victor thanks a lot for the response.
    Yes, i.e what was discussed during design. It makes it easier, to check if it is valid, by checking if its null_ptr !
    Also makes it consistent with the...
  14. Replies
    14
    Views
    1,626

    Re: New file inclusion problem on legacy code

    Thanks a lot kaud. I think most probably this issue is now resolved :) . I had included "simulator.h" in the FWAInfo.h. As I had moved all function definitions, into the .cpp, I could remove that .h....
  15. Replies
    14
    Views
    1,626

    Re: New file inclusion problem on legacy code

    Hi Kaud,

    Sorry i didnot have time to look further into this issue. Just to simplify the issue

    I have added a new file called FWAInfo.h which has two classes: FWAPoint and CFWAInfo

    Now in the...
  16. Replies
    14
    Views
    1,626

    Re: New file inclusion problem on legacy code

    Thanks a lot kaud. Btw, I created the FWA.cpp and moved most of functions there. Now this issue is resolved.

    But it would be helpful, if we have any tools to show the inclusion order .. (when the...
  17. Replies
    14
    Views
    1,626

    Re: New file inclusion problem on legacy code

    Thanks a lot Victor and kaud.

    Actually, that function i was adding was not used as of now (so commented out) and moved on. But now facing similar issue.

    I never had this kind of file inclusion...
  18. Replies
    14
    Views
    1,626

    New file inclusion problem on legacy code

    Hello,

    I added a new class in the c++ header file and included in existing file. And it works ok, as expected :).

    I also have #pragma once in the new header file.

    Now I want to include in...
  19. Replies
    4
    Views
    2,219

    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.
  20. Replies
    4
    Views
    2,219

    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


    ...
  21. Replies
    6
    Views
    2,864

    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:...
  22. Replies
    6
    Views
    2,864

    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.
  23. Replies
    6
    Views
    2,864

    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...
  24. Replies
    19
    Views
    7,094

    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.


    ...
  25. Replies
    19
    Views
    7,094

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





Click Here to Expand Forum to Full Width

Featured