CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2021
    Posts
    2

    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 !

    TIA
    srfpala

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

    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
    Location
    Hanover Germany
    Posts
    20,395

    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
  •  





Click Here to Expand Forum to Full Width

Featured