Results 1 to 10 of 10

Thread: [RESOLVED] I can't compile the 'ATL Grid control'

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2016
    Posts
    566

    Resolved [RESOLVED] I can't compile the 'ATL Grid control'

    I am learning ATL. In CodeProject, there's an excellent ATL project called 'ATL Grid control' , but it is VC6, can you help to upgrade to VS2022? I tried, but I am failed to compile.

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2016
    Posts
    566

    Re: I can't compile the 'ATL Grid control'

    I attach the source.
    Attached Files Attached Files

  3. #3
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    885

    Re: I can't compile the 'ATL Grid control'

    What are some of the errors you are getting relating to this source (not those from any standard library files)?
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2016
    Posts
    566

    Re: I can't compile the 'ATL Grid control'

    Quote Originally Posted by 2kaud View Post
    What are some of the errors you are getting relating to this source (not those from any standard library files)?
    The project used VC6, it doesn't have modern sln and vcproj file.

  5. #5
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    885

    Re: I can't compile the 'ATL Grid control'

    Yes - you said. If you show some of the source C++ code that is causing errors and the errors displayed we might be able to advise.
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  6. #6
    PowerPoster
    Join Date
    Nov 2017
    Posts
    2,760

    Re: I can't compile the 'ATL Grid control'

    https://stackoverflow.com/questions/...o-express-2010

    You can open it in Visual C++ 2008 Express.

    Visual Studio 2008 Express download:

    http://download.microsoft.com/downlo...NUX1504728.iso

    After you've done that and saved the project in VS2008, which will generate the sln and vcproj files, you should be able to open it in newer versions of VS. You'll likely have to rectify a bunch of variable scope issues in Grid.cpp in order for it to not throw dozens of errors.

  7. #7
    PowerPoster
    Join Date
    Nov 2017
    Posts
    2,760

    Re: I can't compile the 'ATL Grid control'

    I opened the project in VS2008 and saved it. Attached is a zip file containing the .sln and .vcproj files that were generated. Hopefully that gets you to the point where you can open the project in your version of VS.

    Good luck.
    Attached Files Attached Files

  8. #8
    PowerPoster
    Join Date
    Nov 2017
    Posts
    2,760

    Re: I can't compile the 'ATL Grid control'

    For the record, the code posted in the zip file in post #2 won't compile for me in VC++ 6.0. It throws several errors, a few of which I think I *kind of* fixed(?) while trying to get it to compile, but the remaining errors are far beyond my rusty C++ ability to understand let alone fix.

    Good luck.

  9. #9
    PowerPoster
    Join Date
    Nov 2017
    Posts
    2,760

    Re: I can't compile the 'ATL Grid control'

    For the record, there are several users who report the same compilation errors I'm getting in VC++ 6.0 when reading through the comments section of the below page:

    https://www.codeproject.com/Articles...L-Grid-control

    That's as much help as I think I can offer in this situation, good luck.

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2016
    Posts
    566

    Re: I can't compile the 'ATL Grid control'

    OK, I just open the file using Notepad to read some codes. It is worth nothing to do compiling.

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