Results 1 to 6 of 6

Thread: [VB6] Visual Basic 6 keeps giving me this error

  1. #1

    Thread Starter
    Fanatic Member neicedover1982's Avatar
    Join Date
    Jun 2005
    Posts
    566

    [VB6] Visual Basic 6 keeps giving me this error

    Hello

    I hope this goes here. I have an OCX and a DLL for my game. I have included them in the games .vbp. So I have added them through the components (ocx) and references (dll). My issue is that when I open the vbp after having my computer off, it gives me errors from the OCX and DLL and they are no longer included in the game. I have to add them again.

    But, I dont have to save the vbp. I just add them, close the window, say dont save and when I open the window again, they are there. Does anyone know why I cant get the DLL and OCX to stay? Why does the program keep removing them?

    Thank you.
    Kevin | New England Iced Over | http://www.kevincawleyjr.com

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [VB6] Visual Basic 6 keeps giving me this error

    Quote Originally Posted by neicedover1982
    But, I dont have to save the vbp.
    If you want to save the fact that the .dll and .OCX are a part of your project, then you do have to save the project file.

  3. #3
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: [VB6] Visual Basic 6 keeps giving me this error

    I read it few times then closed it but now I'm back to this thread...
    I think what he means, Hack, is that both OCX and DLL were saved to a project originally, so every time he turns off his computer vbp looses references to either and if you just open vbp again and "re-attach" references without saving it again - it actually "remembers"...
    Hmmmmmmmmmmm ... go figure ...

    Anyway, I would simply rebuild project by creating a brand new and adding all files one by one including references and save each to a different folder.

  4. #4

    Thread Starter
    Fanatic Member neicedover1982's Avatar
    Join Date
    Jun 2005
    Posts
    566

    Re: [VB6] Visual Basic 6 keeps giving me this error

    I do save it. Eventually, i mean it as this, i figured I wasnt specific.

    1. Open vbp and get erros abour OCX/DLL
    2. Add both OCX and DLL
    3. Close vbp (dont save)
    4. Open vbp, no errors, DLL and OCX there
    5. Do work on game and save

    after I shutdown my computer or restart for any reason, and I go to start working on my game again, please return to number 1.

    Its a vicious loop i would like to solve. why does Visual Basic keep "loosing/dropping/whatever" the DLL and OCX even though they were added and saved to the vbp? The reason I cant save at step 3 is becuase without the OCX, that peice gets removed from my game screen and if I save, I have to re add it and re format it every time.
    Kevin | New England Iced Over | http://www.kevincawleyjr.com

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [VB6] Visual Basic 6 keeps giving me this error

    I wonder if he's losing the reference due to compatibility reasons:
    http://vbforums.com/showthread.php?p...98#post2203498 <- might be of some use.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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

    Re: [VB6] Visual Basic 6 keeps giving me this error

    neicedover1982,

    Are you working in a group project with the dll/ocx code included? Are the ocx/dll files registered or did you just browse to add them to the project?

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