Results 1 to 27 of 27

Thread: New Windows 10 - cannot start vb project

  1. #1

    Thread Starter
    Addicted Member jastrzebiec's Avatar
    Join Date
    Nov 2010
    Posts
    173

    New Windows 10 - cannot start vb project

    Hi guys,
    I have just switched to Windows 10 but I am unable to start any of my projects.
    I am of course the administrator with full privileges.
    UAC is turned off.
    Name:  Untitled3.png
Views: 1355
Size:  3.6 KB
    The message from Visual Basic: "Permission denied"

    Any thoughts on that?
    /jas

  2. #2
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    Re: New Windows 10 - cannot start vb project

    Some more info please - "just switched to Windows 10"
    A fresh install ?
    An upgrade from say W7
    Are we talking about VB6 Pro (not VBA in Excel or whatever) ?
    How did you install VB6
    Does VB6 IDE run ?
    Anything else we should know ?

  3. #3

    Thread Starter
    Addicted Member jastrzebiec's Avatar
    Join Date
    Nov 2010
    Posts
    173

    Re: New Windows 10 - cannot start vb project

    Brand new, clean installed Windows 10 Enterprise.
    I did the same steps as previously installing vb in Windows 7
    1.
    Installed vbasic5.
    2.
    Installed SP3

    Thats all.

    When trying to load one of my projects I have that error.
    I tried many others vb projects and vb samples I have stored and none of them will load IDE.
    Executables work fine.
    /jas

  4. #4
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    Re: New Windows 10 - cannot start vb project

    Is that VB5 Pro (or whatever) ?

    Can you open the IDE directly ?
    If you can, can you start a new project ?

  5. #5

    Thread Starter
    Addicted Member jastrzebiec's Avatar
    Join Date
    Nov 2010
    Posts
    173

    Re: New Windows 10 - cannot start vb project

    I do not know what vb5 pro is.
    I am using vbasic 5, the version released before vbasic 6.
    I can start the new project, not a problem.

    I have traced the problem to this line in my .vbp file:
    Object={6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0; COMCTL32.OCX
    If I remove that line then the project loads but without comctl32.ocx of course.
    /jas

  6. #6
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    Re: New Windows 10 - cannot start vb project

    I try to avoid dependencies as much as I can.
    And I avoid most of the extra controls that MS provides.
    I never use the comctl32
    They can be avoided, if you let us know what you use them for.
    Rob
    PS You should be using VB6
    It is very similar to VB5, with a few extra goodies (EG Split Join)
    The biggest difference, is VB6 is ADO Oriented.
    You can still use DAO, and you can gradually evolve to using ADO, form by form.

  7. #7

    Thread Starter
    Addicted Member jastrzebiec's Avatar
    Join Date
    Nov 2010
    Posts
    173

    Re: New Windows 10 - cannot start vb project

    Thanks for your reply. I am vb5 man and too old now to change that.
    I wonder, what you had in mind saying you never used those controls.
    What do you use instead?
    I need almost all those controls provided by comctl32.ocx

    Now, when I start new project Windows 10 will not even let me use that component.
    The error is:
    Name:  Untitled3.png
Views: 1350
Size:  26.2 KB

    It does not matter which component I choose. The error is always the same.
    /jas

  8. #8
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,253

    Re: New Windows 10 - cannot start vb project

    Quote Originally Posted by jastrzebiec View Post
    Thanks for your reply. I am vb5 man and too old now to change that.
    I wonder, what you had in mind saying you never used those controls.
    What do you use instead?
    I need almost all those controls provided by comctl32.ocx

    Now, when I start new project Windows 10 will not even let me use that component.
    The error is:
    Name:  Untitled3.png
Views: 1350
Size:  26.2 KB

    It does not matter which component I choose. The error is always the same.
    /jas

    Did you switched the Properties on the VB5.exe-File *itself* to "run as Administrator"?

    If not, then I strongly suggest that you ensure that (it is not enough,
    to run your "WinStation" with Admin-Privileges, you have to specify them
    on the Executable you want to run "elevated" yourself).

    Olaf

  9. #9

    Thread Starter
    Addicted Member jastrzebiec's Avatar
    Join Date
    Nov 2010
    Posts
    173

    Re: New Windows 10 - cannot start vb project

    I am not sure which property to change.
    Please see the screenshot:
    Name:  Untitled5.png
Views: 1316
Size:  12.3 KB

    All are set to full control.

    I noticed one thing though.
    When I start not from the project file (.vbp) but just vb5.exe (right click and select 'Run as administrator' and then load my project into it then there is not a problem.
    Thanks,
    /jas

  10. #10
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,253

    Re: New Windows 10 - cannot start vb project

    Quote Originally Posted by jastrzebiec View Post
    I noticed one thing though.
    When I start not from the project file (.vbp) but just vb5.exe (right click and select 'Run as administrator' and then load my project into it then there is not a problem.
    And there you have proof already...

    Now you will just have to find a way, to make that setting permanent on the VB5.exe-File.

    What about right-clicking on it -
    then choosing the "Properties..." entry on the Context-menu?

    When you google, there's dozens of "Windows-Tricks-Sites" which explain
    the needed steps in detail - here's just one of the first links from a google-search:
    http://www.cnet.com/how-to/always-ru...in-windows-10/

    Olaf

  11. #11

    Thread Starter
    Addicted Member jastrzebiec's Avatar
    Join Date
    Nov 2010
    Posts
    173

    Re: New Windows 10 - cannot start vb project

    Quote Originally Posted by Schmidt View Post
    And there you have proof already...

    Now you will just have to find a way, to make that setting permanent on the VB5.exe-File.

    What about right-clicking on it -
    then choosing the "Properties..." entry on the Context-menu?

    When you google, there's dozens of "Windows-Tricks-Sites" which explain
    the needed steps in detail - here's just one of the first links from a google-search:
    http://www.cnet.com/how-to/always-ru...in-windows-10/

    Olaf
    Thank you Olaf.
    I am half way there.
    Using that link advice now I do not need to start vb5.exe using 'Run as administrator' prompt.
    However, that does not apply to starting project directly from .vbp file.
    I tried to create a shortcut to that.vbp file to do the same as with vb5.exe file.
    Unfortunately that option is greyed out.
    Name:  Untitled6.png
Views: 1221
Size:  6.8 KB

    /jas

  12. #12
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    Re: New Windows 10 - cannot start vb project

    Can you try dragging a VBP file to the VB5.exe shortcut that you now have working ?

    Rob
    PS Trust me the change to VB6 is dead easy.
    I can Teamviewer in to your PC to help when ever you have trouble.
    But we won't need to.

  13. #13
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,253

    Re: New Windows 10 - cannot start vb project

    Quote Originally Posted by jastrzebiec View Post
    I am half way there.
    Using that link advice now I do not need to start vb5.exe using 'Run as administrator' prompt.

    However, that does not apply to starting project directly from .vbp file.
    I tried to create a shortcut to that.vbp file to do the same as with vb5.exe file.
    Unfortunately that option is greyed out.
    There's no need to set "special Properties" on "non-executable Document-Files"
    (as *.vbp, *.vbg, etc.)

    These are associated with VB5.exe already - and when you double-click them,
    the system ensures that your (already prepared to run as Admin) VB5.exe gets
    those "document-files" handed as a "CommandLine-Start-Parameter".

    What I'm trying to say is, that you're done already.

    Just try it by double-clicking a *.vbp from its Project-Folder - you shouldn't
    have any issues anymore (if you got the "Run as Admin" indeed pressed through
    onto the VB5.exe-File - maybe double-check, whether that's really the case).

    Olaf

  14. #14

    Thread Starter
    Addicted Member jastrzebiec's Avatar
    Join Date
    Nov 2010
    Posts
    173

    Re: New Windows 10 - cannot start vb project

    Quote Originally Posted by Bobbles View Post
    Can you try dragging a VBP file to the VB5.exe shortcut that you now have working ?

    Rob
    PS Trust me the change to VB6 is dead easy.
    I can Teamviewer in to your PC to help when ever you have trouble.
    But we won't need to.
    I tried everything, that too.
    Also tried this from command prompt:
    ""C:\Program Files (x86)\vbasic5\vb5.exe" /r Z:\MyDocuments\My_Progs\myproj.vbp
    Same error each time.
    /jas

  15. #15
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,253

    Re: New Windows 10 - cannot start vb project

    Quote Originally Posted by jastrzebiec View Post
    Also tried this from command prompt:
    ""C:\Program Files (x86)\vbasic5\vb5.exe" /r Z:\MyDocuments\My_Progs\myproj.vbp
    Same error each time.
    Since I see your *.vbp-Path starting with "Z:\" ...

    I assume that this is a mapped share, right?
    (from a NAS-device or another machine? - or perhaps a "VMWare-SharedFolder-mapping into the guest-os"?)

    I have seen some issues in these cases as well (on my work-machine, Win 8.1 - e.g. when
    trying to start *.vbp's over the companies NAS-Share when using its mapped Drive-representation,
    but also with Z:-mapped VMWare-Shares).

    What always helped so far was this:
    - either place a copy of the Project-Folder in question on your true local drive ....
    - or use the true UNC-Path of the Share in question ("\\HostName\ShareName\...)

    Olaf

  16. #16

    Thread Starter
    Addicted Member jastrzebiec's Avatar
    Join Date
    Nov 2010
    Posts
    173

    Re: New Windows 10 - cannot start vb project

    No, 'Z' is just my hard drive partition to keep all data.
    I have found the solution to that problem although it is not ideal.
    1.
    Create the shortcut to vb5.exe
    2.
    Elevate its privileges as shown above in this thread (check 'Run as Administrator' option)
    3.
    In target field I put:
    ""C:\Program Files (x86)\vbasic5\vb5.exe" /r Z:\MyDocuments\My_Progs\myproj.vbp
    Thats all.
    The problem is that vb5 does not have the command to load the project, /r is just to run the project
    So, if I use line as above (including /r) the project starts in Run state

    If I remove the /r then
    there is an error window first:
    Name:  Untitled7.png
Views: 1188
Size:  4.0 KB
    but after acknowledging it the project loads. So this process requires just one click extra.
    I can live with that.
    Thanks,
    /jas
    Last edited by jastrzebiec; Mar 3rd, 2016 at 10:35 AM.

  17. #17
    Addicted Member
    Join Date
    Jan 2009
    Posts
    231

    Re: New Windows 10 - cannot start vb project

    Hi. I use XP here and for my apps I use a manifest file to make them go in higher edition.
    Without this the first time used has to use the take ownership tab or something like that.
    I think it worked for win7 - I will pop out to a win7 machine to verify this.
    But the manifest does n't work in win10 - this has been communicated to me and the app crashes when launched for the first time.
    Are there any better tips to resolve this ?

  18. #18
    Hyperactive Member
    Join Date
    Jun 2011
    Posts
    461

    Re: New Windows 10 - cannot start vb project

    Quote Originally Posted by jastrzebiec View Post
    I am vb5 man and too old now to change that.
    This might be a little rude question but I must ask you one thing: Did you ever see VB6? It's exactly the same like VB5, so obviously it's considered to be just a continuation of it, therefore there is no reason that you should stay with the older version.
    Like it's already said, the changes are apparently done under the hood - the main difference is more advancement in database connections and a plenty of new and useful functions (like Split and Join), and let's also mention many bug fixes in the IDE which are almost entirely resolved with SP6. If VB5 is really lacking of some command line parameters, then guess which version has them?
    Last edited by MikiSoft; Mar 3rd, 2016 at 02:48 PM.

  19. #19

    Thread Starter
    Addicted Member jastrzebiec's Avatar
    Join Date
    Nov 2010
    Posts
    173

    Re: New Windows 10 - cannot start vb project

    You know, years ago when vbasic6 was released I bought one (and still have the original).
    At the time I was very disappointed with the speed of some functions, I ran some tests and vbasic5 was much faster executing.
    I remember that even now, for example loading ListView it was about 25 times faster!!!!!
    That was the main reason I stick with vb5.
    I know, now-a-day a speed is not so important factor, but as they say "you do not transplant the old trees"
    /jas

  20. #20
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,253

    Re: New Windows 10 - cannot start vb project

    Quote Originally Posted by jastrzebiec View Post
    No, 'Z' is just my hard drive partition to keep all data.
    I have found the solution to that problem although it is not ideal.
    1.
    Create the shortcut to vb5.exe
    2.
    Elevate its privileges as shown ...
    No, no, no - perhaps that's the reason it doesn't work with the double-clicking
    on your *.vbp's.

    You don't want to ensure the "elevated privileges" on a *shortcut* to VB5.exe.

    You will have to ensure them on VB5.exe itself (the real binary, at the place you installed it)!

    In case Win10 doesn't allow you that in the directory VB5.exe resides, you
    can start a command-prompt with elevated privileges, then start explorer.exe from it
    (or start the explorer.exe file elevated directly per right-click "run as admin") -
    and then try again to set these elevations to VB5.exe directly.

    Olaf

  21. #21

    Thread Starter
    Addicted Member jastrzebiec's Avatar
    Join Date
    Nov 2010
    Posts
    173

    Re: New Windows 10 - cannot start vb project

    I think you missed one of my posts above > Yesterday, 06:35 PM
    It was the first thing I tried with vb5.exe
    1.I changed all permission to full.
    2.There is not option to elevate (that is reserved only for shortcuts).
    and still I had to start vb5.exe with right click and 'Run as Administrator' option.
    That was working fine when I started it and then loaded my project into it.
    Clicking on .vbp file created the same problem as in my OP post.

    If you know how to elevate permanently vb5.exe please let me know. I cannot see that option.
    Please see the screenshots:
    Name:  Untitled.png
Views: 1294
Size:  17.7 KB
    after clicking Edit
    Name:  Untitled1.png
Views: 1196
Size:  14.0 KB
    and after clicking Advanced
    Name:  Untitled2.jpg
Views: 1297
Size:  30.4 KB
    /jas

  22. #22
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,253

    Re: New Windows 10 - cannot start vb project

    Quote Originally Posted by jastrzebiec View Post
    ...
    2.There is not option to elevate ...
    But there should be one...

    What about the Compatibility-Tab?

    Olaf

  23. #23

    Thread Starter
    Addicted Member jastrzebiec's Avatar
    Join Date
    Nov 2010
    Posts
    173

    Re: New Windows 10 - cannot start vb project

    Ugh, you are genius Olaf
    I checked that tab many times but never noticed that option.
    Thanks,
    jas

  24. #24
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    Re: New Windows 10 - cannot start vb project

    Quote Originally Posted by jastrzebiec View Post
    You know, years ago when vbasic6 was released I bought one (and still have the original).
    At the time I was very disappointed with the speed of some functions, I ran some tests and vbasic5 was much faster executing.
    I remember that even now, for example loading ListView it was about 25 times faster!!!!!
    That was the main reason I stick with vb5.
    I know, now-a-day a speed is not so important factor, but as they say "you do not transplant the old trees"
    /jas
    I had not heard that saying "you do not transplant the old trees"

    Have you heard this saying "you can lead a horse to water, but you cannot make him drink"

  25. #25
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,253

    Re: New Windows 10 - cannot start vb project

    Quote Originally Posted by jastrzebiec View Post
    Ugh, you are genius Olaf
    Nah, just "stubbornly pressing it home" in this case...<g>

    If you indeed have a copy of VB6, I'd install it too (since you are on it just now).

    I can ensure you, that all the VB5-projects will port smoothly over -
    and you will also not encounter any "speed-penalties" (that's a myth).

    Besides, the CommonControls from VB5 (including its ListView) are, what
    many VB6-users reference in their Projects anyways, due to better Theme-
    Support in manifested Apps.

    Another thing is, that the runtime of VB6 comes preinstalled even on Win10,
    and it contains a few special adaptions on each of these newer Win-Versions -
    this is not the case for VB5-compiled Apps, where you'd have to include
    and ship msvbvm50.dll with your Setups.

    Olaf
    Last edited by Schmidt; Mar 4th, 2016 at 06:35 AM.

  26. #26
    New Member
    Join Date
    Jan 2017
    Posts
    1

    Re: New Windows 10 - cannot start vb project

    jastrzebiec

    Have you been able to solve your problem since you opened this thread?

    I installed Windows 10 for the first time a couple of days ago and encountered the same problem. Luckily solved it.

    Please note however that I have never touched VB5. I started with VB6. But I believe it is downward compatible with the earlier versions of VB.

  27. #27
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: New Windows 10 - cannot start vb project

    You might also consider: Win10 AppCompat VB6 IDE for these things.

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