GOG has The Longest Journey and on their download page Windows 10 is not listed as a supported operating system. That doesn't necessarily mean, though, that you can't get it to work.
Doing an online search about this issue, I see some people with Windows 10 saying the game runs and others saying they got the game running satisfactorily but that some tweaking was involved. I also found one Steam forum discussion about this. Most people suggest running the game in compatibility mode, choosing Windows XP.