CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 3 of 3

Thread: Identifier is undefined - why?

  1. #1
    Join Date
    Jan 2021

    Identifier is undefined - why?

    Using CppCLR_Winforms App (extension by Kaiser ) on Win10

    { // `Trying this code in the frmMain btnAddAccount_Click event:
    // I have in this project a frmAddAccount.h file
    // And have modified it in the Designer
    // This #include "frmNewAccount.h" is present in the frmMain.h file
    // frmAddAccount^ f1 = gcnew frmAddAccount(); // Fails but why ?
    // 7 Errors are generated. and identifier frmAddAccount is undefined seems most relevant
    So how and where should frmAddAccount be defined?
    I thought the frmAddAccount^ f1 ... statement should do it !


  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004

    Re: Identifier is undefined - why?

    Are you missing an assembly referencs or nuget package?

  3. #3
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Hanover Germany

    Re: Identifier is undefined - why?

    [moved from Visual C++ Programming forum]
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)