none
Visual C++ 4.0 RRS feed

  • Question

  • Hello,

    I am working with a Visual C++ 4.0 MFC application and want to accomplish a simple task. It has a basic MS Access database on the backend. We are moving the location of the program directory from a network directory to a different network directory.

    I need to analyze the source code and check to see the application has hard coded values to the network directory or if the application writes to any directories in it's current location. 

    In a nutshell, we are worried that moving the location of the program directory might break the application for our user base.

    Are there specific C++ constructs that I should be looking for? Any special directives or functions that I should keep my eye out on?

    Thanks,

     

    Thursday, November 14, 2019 11:57 PM

All replies

  • I need to analyze the source code and check to see the application has hard coded values to the network directory or if the application writes to any directories in it's current location. 

    In a nutshell, we are worried that moving the location of the program directory might break the application for our user base. 

    Search through the source code looking for some mention of:

    1. Your network path.

    2. "cwd" (for _gtcwd), or GetCurrentDirectory.

    3. GetModuleFileName (to get the path to the program's EXE).

    Ultimately though, you'll just have to test it.


    • Proposed as answer by Guido Franzke Friday, November 15, 2019 6:54 AM
    Friday, November 15, 2019 12:22 AM
  • Hello,

    Do you resolve the issue? If you resolve the issue, please "Mark as answer" or "Vote as helpful" post to the appropriate answer, so that it will help other members to find solution quickly if they face similar issue. If not, please feel free to contact us.

    Best Regards,

    Suarez Zhou


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, November 22, 2019 3:13 AM