|
-
Apr 11th, 2005, 01:20 PM
#1
Thread Starter
Junior Member
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
-
Apr 11th, 2005, 02:17 PM
#2
Re: Cant run compiled code
d22k,
How are you deploying your app?
-
Apr 11th, 2005, 03:14 PM
#3
Thread Starter
Junior Member
Re: Cant run compiled code
i 'made' it. which i can only assume means compiled ( thanks M$ )
and sent him the exe
-
Apr 11th, 2005, 03:18 PM
#4
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Apr 11th, 2005, 03:18 PM
#5
Re: Cant run compiled code
d22k,
You need to use an Installer to get your app deployed (Correctly installed on another computer).
-
Apr 11th, 2005, 03:22 PM
#6
Thread Starter
Junior Member
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
-
Apr 11th, 2005, 03:27 PM
#7
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.
-
Apr 11th, 2005, 03:29 PM
#8
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Apr 11th, 2005, 03:37 PM
#9
Thread Starter
Junior Member
Re: Cant run compiled code
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|