Results 1 to 40 of 42

Thread: [RESOLVED] Same Code Compiled on windows 11 will not run on Windows 7

Hybrid View

  1. #1
    The Idiot
    Join Date
    Dec 2014
    Posts
    3,016

    Re: Same Code Compiled on windows 11 will not run on Windows 7

    Im a game programmer and the project I have has 0 components added. the project is huge, result in 1.2MB in size for the EXE (and remember I use a compiler-tool, so the exe is quite empty, everything run dynamically, like string-table and other variables are loaded in, same with all pictures)
    I have 1 form and 1 picturebox and reference to direct2d/directsound and a few other API.

    when I compile the exe in windows 7 and I run it. it works without issues. if I run it in 8,10,11 it works well. no issues.
    when I compile the exe in windows 10 and I run it. it gives me issues sometimes. theres kind of glitches. incorrect values, strange crashes etc. people report tons of "new" bugs. strange bugs that are impossible to fix. and know this, I have tried. for some time I compiled it in windows 10. it was hell. (I mean, its not that it gives the same bug all the time. its almost random and not all the time)

    so, I think theres a problem with the "core" stuff.
    maybe what axisdj wrote stdole2.tlb or maybe another tlb that is needed to compile the EXE.

    to get help from dilettante is impossible he will only say: its your own fault. you are a bad programmer, U did something wrong here. or move on loser, windows 7 is not used. what are u doing? get a life etc. he is the master of "Grumpy Old Men".

    I mean, he doesn't give a crap about your needs. as I have mentioned in many many thread. PEOPLE ARE STILL USING WINDOWS 7. I get my game downloaded by 10000+ and not everyone are like dilettante and is using windows 11.

    so, I don't dare move to windows 10/11, because I dont want to spend all my time trying to fix bugs are should not be there. no matter how much I look into the code, it doesn't make sense.
    its like the EXE is corrupted, injected with a virus or something oddly. (of course not, but the EXE is bad)

    OF COURSE, before dilettante start to argue. if I compile a 10 lines code it will work.
    this happens in complex and big projects. and its "random", so it could work 9 out of 10 times, but without warnings and sense, a bug happens.
    and NO, before dilettante start to argue. the code works PERFECTLY if compiled in windows 7.
    Last edited by baka; Dec 21st, 2022 at 02:23 AM.

  2. #2
    PowerPoster VanGoghGaming's Avatar
    Join Date
    Jan 2020
    Location
    Eve Online - Mining, Missions & Market Trading!
    Posts
    2,650

    Wink Re: Same Code Compiled on windows 11 will not run on Windows 7

    Quote Originally Posted by baka View Post
    to get help from dilettante is impossible he will only say: its your own fault. you are a bad programmer, U did something wrong here. or move on loser, windows 7 is not used. what are u doing? get a life etc. he is the master of "Grumpy Old Men".

    I mean, he doesn't give a crap about your needs. as I have mentioned in many many thread. PEOPLE ARE STILL USING WINDOWS 7. I get my game downloaded by 10000+ and not everyone are like dilettante and is using windows 11.
    This made me chuckle a bit too much. I mean you're not wrong, just don't get into an argument with the guy. I admit I've shamelessly copied and modified snippets of his code and used them for my purposes a number of times throughout the years. Whenever I google for something exotic and VB6 related I inevitably stumble upon his posts (along with a few others form this forum to be fair). I'm sure he must have spent countless hours wading through poorly written and sparse documentation for some obscure functions or classes and then post a working example for everyone to use. That is something to be commended for sure.

    Anyway, what I really wanted to ask you was about your VB6 game that is downloaded by tens of thousands! I'm really curious to see what is it about, maybe you have a Youtube video showcasing it?

    In my opinion, VB6 has always been a lazy man's tool (and there's nothing wrong with that)! Just because you CAN do almost everything in VB6 doesn't mean you always should. But that is a discussion for another topic (or another forum altogether)!

  3. #3
    PowerPoster VanGoghGaming's Avatar
    Join Date
    Jan 2020
    Location
    Eve Online - Mining, Missions & Market Trading!
    Posts
    2,650

    Lightbulb Re: Same Code Compiled on windows 11 will not run on Windows 7

    Quote Originally Posted by baka View Post
    it gives me issues sometimes. theres kind of glitches. incorrect values, strange crashes etc. people report tons of "new" bugs. strange bugs that are impossible to fix. and know this, I have tried. for some time I compiled it in windows 10. it was hell. (I mean, its not that it gives the same bug all the time. its almost random and not all the time)

    so, I don't dare move to windows 10/11, because I dont want to spend all my time trying to fix bugs are should not be there. no matter how much I look into the code, it doesn't make sense.
    its like the EXE is corrupted, injected with a virus or something oddly. (of course not, but the EXE is bad)
    Just wanted to add my two cents here. What you described above is textbook definition of using advanced compiler optimizations from project properties -> compile tab. If something goes wrong there you will get exactly the random behavior you described. It may be something worth looking into.

Tags for this Thread

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