Windows 10: MFC App in VS2017 on Win10

Discus and support MFC App in VS2017 on Win10 in Windows 10 Software and Apps to solve the problem; Hello, I've followed the instructions for the MFCAnimationWalkthrough example. VS2017 Community compiled both a Debug/x86 and a Release/x64... Discussion in 'Windows 10 Software and Apps' started by FrankMuir, Sep 4, 2018.

  1. FrankMuir Win User

    MFC App in VS2017 on Win10


    Hello,


    I've followed the instructions for the MFCAnimationWalkthrough example. VS2017 Community compiled both a Debug/x86 and a Release/x64 configuration

    before any changes were made. After all changes were made both configurations failed to compile. 8 errors for the Debug/x86 and 5 errors for the Release/x64 centered on 3 statements in the Animate Method of the MFCAnimationWalkthroughView Class. The code for that method follows and the 3 statements are in bold type

    :

    void CMFCAnimationWalkthroughView::Animate(BOOL bDirection)
    {
    m_bCurrentDirection = bDirection;
    static UI_ANIMATION_SECONDS duration = 3;
    static DOUBLE dblSpeed = 35.;
    static BYTE nStartColor = 50;
    static BYTE nEndColor = 255;
    BYTE nRedColorFinal = bDirection nStartColor : nEndColor;
    BYTE nGreenColorFinal = bDirection nStartColor : nEndColor;
    BYTE nBlueColorFinal = bDirection nStartColor : nEndColor;
    CLinearTransition* pRedTransition =
    new CLinearTransition(duration, (DOUBLE)nRedColorFinal);
    CSmoothStopTransition* pGreenTransition =
    new CSmoothStopTransition(duration, (DOUBLE)nGreenColorFinal);
    CLinearTransitionFromSpeed* pBlueTransition =
    new CLinearTransitionFromSpeed(dblSpeed, (DOUBLE)nBlueColorFinal);
    m_animationColor.AddTransition(pRedTransition,
    pGreenTransition,
    pBlueTransition);
    CRect rectClient;
    GetClientRect(rectClient);
    rectClient.top += nInfoAreaHeight;
    int nLeftFinal = bDirection ? rectClient.left : rectClient.CenterPoint().x;
    int nTopFinal = bDirection ? rectClient.top : rectClient.CenterPoint().y;
    int nRightFinal = bDirection ? rectClient.right : rectClient.CenterPoint().x;
    int nBottomFinal = bDirection ? rectClient.bottom : rectClient.CenterPoint().y;
    CLinearTransition* pLeftTransition =
    new CLinearTransition(duration, nLeftFinal);
    CLinearTransition* pTopTransition =
    new CLinearTransition(duration, nTopFinal);
    CLinearTransition* pRightTransition =
    new CLinearTransition(duration, nRightFinal);
    CLinearTransition* pBottomTransition =
    new CLinearTransition(duration, nBottomFinal);
    m_animationRect.AddTransition(pLeftTransition,
    pTopTransition,
    pRightTransition,
    pBottomTransition);
    CBaseKeyFrame* pKeyframeStart =
    CAnimationController::GetKeyframeStoryboardStart();
    CKeyFrame* pKeyFrameEnd =
    m_animationController.CreateKeyframe(nAnimationGroup,
    pBlueTransition);
    pLeftTransition->SetKeyframes(pKeyframeStart, pKeyFrameEnd);
    pTopTransition->SetKeyframes(pKeyframeStart, pKeyFrameEnd);
    pRightTransition->SetKeyframes(pKeyframeStart, pKeyFrameEnd);
    pBottomTransition->SetKeyframes(pKeyframeStart, pKeyFrameEnd);
    m_animationController.AnimateGroup(nAnimationGroup);
    }


    The errors didn't make any sense to me. They said a ";" was missing before the label nStartColor and that the label was redefind in the last two statements in question. A search of the web found a couple listings of that method which matched mine to a tee. They didn't indicate that there were any errors.


    Any suggestions would be greatly appreciated!


    Regards!

    :)
     
    FrankMuir, Sep 4, 2018
    #1

  2. Toolbox VS2017

    Hi DaveM121, on Vs2013 I have build several desktop appications consisting of VS user interface and Intel DLL's. This was on W7. As I upgraded to W10 its time to renew my tools.

    So, I downloaded VS2017 and a new Fortran compiler.

    As said, opening VS2017 and starting a new solution the toolbox is empty.

    Someone suggested to enable XML in Tools-Options, but I can't find the XML option.

    Then a second one suggest to get them online from within VS, but this options is not in my version of VS2017. In addition the start Page only show the" File Edit Vieuw Team Tools Window Help" selections; i.e. no Build or Debug option.

    So, looking for help.

    Regards

    GerritV2
     
    GerritVerboom, Sep 4, 2018
    #2
  3. Padlocks on files in VS2017 Roaming Folder

    Can anyone please help?

    I have Windows 10 1709 and Visual Studio 2017RC 15.5.2

    When I create an UWP App C# with Roaming Data the created file in the Roaming folder has a little Yellow Padlock in the Icon, it has a File Ownership in context menu and a Right Click shows
    Personal (also with Padlock sign) and in Properties
    General Advanced the Encrypt Contents to Secure Data is Ticked.

    The Files will not roam to other devices I have tried without success to remove these attributes with no success.

    Can Copy file and it displays a message about removing Encryption.

    If I add a file to Roaming Folder manually via Windows File Explorer it picks up the same Attributes.

    UWP Apps created around a month ago work OK and I can manually add a file to their Roaming folder with no issues.

    I cant specifically state when this issue occurred but I have definitely updated VS2017 within this time period of working to not working.



    I have installed VS2017 on a Laptop and it performs fine.



    I looks like a Windows 10 issue but I only see it with VS2017 and it may have manifested itself with an update to VS2017.



    Reinstalled VS2017 and things remain the same I haven't looked into regressing VS2017 but it doesn't look easy and to make investigation more difficult the older working projects will not compile on the new version.
     
    KrisKross81, Sep 4, 2018
    #3
  4. SMhmd Win User

    MFC App in VS2017 on Win10

    VS2017 DLL Built on Windows 10 does not launch

    We have a Windows 32 bit application being build on VS2017. The application utilizes C# and part is in C. The C DLL built as part of the project is xyz.dll. When the VS2017 project is built on Windows 7, the xyz.dll is loaded and the application works perfectly
    on Windows 7 and Windows 10 machines. However when we build on Windows10 with VS2017 with the same project configuration properties, we find that the application fails with a message saying the xyz.dll was not found on Windows 10. It works on Windows 7. We
    can confirm that the xyz.dll is present and in the appropriate path on both WIN7 and WIN10 systems.

    Any insight on this matter will be helpful.
     
    SMhmd, Sep 4, 2018
    #4
Thema:

MFC App in VS2017 on Win10

Loading...
  1. MFC App in VS2017 on Win10 - Similar Threads - MFC App VS2017

  2. Brother printer MFC-6490CW fails to connect after Win10 updates

    in Windows 10 Gaming
    Brother printer MFC-6490CW fails to connect after Win10 updates: I posted this on a printers forum an hour ago but decided here may be more relevant. My apols for parts of this "Printer forum" post that may not be relevant here...This is driving me bonkers :This Brother machine has worked perfectly for years... then suddenly no longer. I...
  3. Brother printer MFC-6490CW fails to connect after Win10 updates

    in Windows 10 Software and Apps
    Brother printer MFC-6490CW fails to connect after Win10 updates: I posted this on a printers forum an hour ago but decided here may be more relevant. My apols for parts of this "Printer forum" post that may not be relevant here...This is driving me bonkers :This Brother machine has worked perfectly for years... then suddenly no longer. I...
  4. Brother printer MFC-6490CW fails to connect after Win10 updates

    in Windows 10 Installation and Upgrade
    Brother printer MFC-6490CW fails to connect after Win10 updates: I posted this on a printers forum an hour ago but decided here may be more relevant. My apols for parts of this "Printer forum" post that may not be relevant here...This is driving me bonkers :This Brother machine has worked perfectly for years... then suddenly no longer. I...
  5. Brother Printer MFC-7320 not more printing after Win10 Upgrade to 20H2

    in Windows 10 Drivers and Hardware
    Brother Printer MFC-7320 not more printing after Win10 Upgrade to 20H2: My Brother Printer MFC-7320 is not more printing after Win10 Upgrade to 20H2.After print activation you can see the print in the spooler for 10 sec and then it disapears without activating the printer and without giveing a fault.Printer driver has been updated, printer...
  6. Brother Printer MFC-7320 not more printing after Win10 Upgrade to 20H2

    in Windows 10 Gaming
    Brother Printer MFC-7320 not more printing after Win10 Upgrade to 20H2: My Brother Printer MFC-7320 is not more printing after Win10 Upgrade to 20H2.After print activation you can see the print in the spooler for 10 sec and then it disapears without activating the printer and without giveing a fault.Printer driver has been updated, printer...
  7. MFC-5890CN Printer

    in Windows 10 Drivers and Hardware
    MFC-5890CN Printer: My printer will not print, it is saying it is in error mode. How do I get out of error mode? https://answers.microsoft.com/en-us/windows/forum/all/mfc-5890cn-printer/d01a9659-c084-4d27-bafb-c664bdf25b81
  8. imprimante brother MFC J415W n'imprime plus depuis mise a jour win10

    in Windows 10 Drivers and Hardware
    imprimante brother MFC J415W n'imprime plus depuis mise a jour win10: imprimante brother MFC J415W n'imprime plus depuis mise a jour win10 j'ai tenté de suivre la procédure de brother , mais rien n'y fait . avez vous une solution ? je suis en usb pour imprimer. et il me dit erreur pilote qd je branche l'usb, puis le message s'efface. et...
  9. Win10 does not believe my Brother MFC-J4620DW's abilities

    in Windows 10 Drivers and Hardware
    Win10 does not believe my Brother MFC-J4620DW's abilities: Win7 knew that my Brother MFC could print two-sided, but Win10 does not believe it, even after removing the driver and replacing it with a new Win10 driver from the manufacturer. 140147
  10. mfc

    in Windows 10 Network and Sharing
    mfc: where to access mfc source code https://answers.microsoft.com/en-us/windows/forum/all/mfc/ea3b3e45-8256-4526-b195-1ea760981a90"