Results 1 to 9 of 9

Thread: Cant run compiled code

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    29

    Cant run compiled code

    ive just tried searchng, but the search seems to be down (?)

    my friend cant seem to run code that i have compiled on my machine...

    its VB6 compiles using MS Visual Studio on Windows XP

    he is running xp pro, and is an admin.

    he gets the error 'cannot execute code, may be unstabe' 'do not have correct privilages'

    or something along those lines.

    any ideas?


    thanks

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Cant run compiled code

    d22k,

    How are you deploying your app?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    29

    Re: Cant run compiled code

    i 'made' it. which i can only assume means compiled ( thanks M$ )

    and sent him the exe

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Cant run compiled code

    If you have only Compiled your program into an exe file then you need to Package it using any number of
    packaging programs. What this will do is add the dependent dlls and ocxs to your package for distribution to your
    desired system.

    Check out the packaging software links in the Application Deployment Forum's FAQ.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Cant run compiled code

    d22k,

    You need to use an Installer to get your app deployed (Correctly installed on another computer).

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    29

    Re: Cant run compiled code

    i honestly dont think thats the problem, its only tiiiiiny.
    and it works on another mates comp, he doesnt have visual studio installed BTW

  7. #7
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Cant run compiled code

    d22k,

    We do happen to know a little about this, so you really should take our advise. This subject is discussed more times than I care to remember and it ALWAYS has the same answer. Do a search on this topic.

    If your program works by acident it does not mean that that is the way things are done.

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Cant run compiled code

    It doesnt matter how small it is. It depends on the references, dlls, and ocxs it uses. Some systems may already
    have the dependencies if they had other software installed that instaled them already.

    This is why your program gets a hit or miss type of success.

    You need to use an installer. No way around it.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    29

    Re: Cant run compiled code

    Quote Originally Posted by randem
    d22k,

    We do happen to know a little about this, so you really should take our advise. This subject is discussed more times than I care to remember and it ALWAYS has the same answer. Do a search on this topic.

    If your program works by acident it does not mean that that is the way things are done.

    eeek i woke the beast!



    ill give it a bash then, thanks

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