CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 4 of 4 FirstFirst 1234
Results 46 to 56 of 56
  1. #46
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: Corrupted form

    Same problem again? All positions snapped to zero?
    Please check if the msvbvm60.dll has propably changed again and try to replace it with a good one again.

    The bas module you attached loads perfectly into VB IDE and is completely readable.

    Maybe other runtime files have got a bug, too, although I can hardly imagine how that could've happened.
    I recommend to download vbrun60.exe from microsoft support:
    http://support.microsoft.com/kb/192461
    It reinstalls msvbvm60.dll and related runtime files. See what happens then.

  2. #47
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Corrupted form

    Quote Originally Posted by HermanTabbert View Post
    The smile is completly gone.
    Same problem again.
    I found a verry strange thing.
    There is a module in my project call mdlAlgemeneSubs. (enclosed)
    When i open it with a texteditor the text is complete.
    However, when i open it in VB6 there is only one line.(enclosed AlgSubsText1)
    What happens here and why?
    Regards,
    Herman
    It is normal to see only the first line in this sub with the view settings that you have applied. Notice the two icons in the bottom left corener one shows only the current procedure the other toggles to full module view.

    If I open the module on my system I see the same thing as in your picture but if I click the other view I see more code, also if I click the drop down on the right I see several procedures regaurdless of view settings.
    Always use [code][/code] tags when posting code.

  3. #48
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Corrupted form

    As for the other problem. If it went away for a little while after you put on a different vb6 vm but then came back I would suspect some malicous software. I would get that copy form your son again place it in a different folder and run FC on it to see if the one in your system folder is still the same as the one from his system. If they are now different then I would strongly suspect a malicous program which would attack the VB runtime although I have never heard of such a program.

    If they are the same then it would seem that the problem was/is not in the runtime file.

    Reinstall of OS and VB should have fixed pretty mush any kind of problem [assuming it was a clean reinstall] The problem appearing on a second computer with even a different OS is really odd, It is hard to say without knowing what else is on your system as it could be a problem with your install files or there could be some other software on the system that is the cause of the problem.

    When you reinstalled did you format first? Did you try vb before appling the service pack(s)? Did you try to register the VB6 runtime? Have you checked your system to see if there are any other copies of the VB6 runtime located in another location?
    Always use [code][/code] tags when posting code.

  4. #49
    Join Date
    Dec 2004
    Location
    Baarn
    Posts
    3

    Re: Corrupted form

    Hi, let me step in also,
    I'am herman's son.

    Strange things heappen there. I did a fresh install windows xp home, installed sp3, then installed vb6 from the cd. installed sp5 and 6. Then everthing worked fine and we wend home again.

    Also installed it on a 64 bit win 7 home premium, this pc had the same problem, however the virtual xp pro i raised on this machine doesn't gif the problems.

    What is weird is that when the proble occurs, also the coordinates and size displaed in the top bar don't function.

    Last resource, we installed yesterday a finished project with the runtime files.

    Then it functioned again. Today it doesn't anymore, i beleive there is a restore cd pushed into the old machine now.....

  5. #50
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Corrupted form

    Might be a permission problem, or even some rouge AV product.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  6. #51
    Join Date
    Dec 2004
    Location
    Baarn
    Posts
    3

    Re: Corrupted form

    what do you meen a antivirus i asume or grahpics card

  7. #52
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: Corrupted form

    The most interesting thing at the moment is:
    Is there something modifying the runtime files?
    Do as proposed. Copy the good msvbvm60.dll into a spare folder and copy it over the actual file in system32. This remedied the problem once, as you explained.
    Then wait until the error pos up again and compare the runtime with the spare file if it has been changed.
    Also I recommend again to get the other runtime files from microsoft, too, and see if they are the same on your problem machine.

  8. #53
    Join Date
    Feb 2003
    Location
    Holland
    Posts
    146

    Re: Corrupted form

    I believe that my son found the problem.
    On form load i set the decimal sign to . (point) and the thousand seperator to "".
    Something there went wrong and the decemal sign was set to "" in the register.
    When the form was corrupted and we were looking in the register the indeed was a "" as decimal seperator.
    When we changed the decimal sign into a "." (point) and started VB again it all was running ok.

    An other question is also:
    When the customer computer says the decimal sign is a "," (comma) (How can i see that) and how can i change that in the register into a "." (point).
    And of course set it back when closing mij program.

  9. #54
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: Corrupted form

    Wow. This is most interesting. Your son seems to be a good spotter. Well done.

    In the office I work with a german XP which has the decimal sign as "," and the thousands separator as "." and I never run into a problem. It seems VB usually does not care for the regional settings of these constants, except you explicitly define so.

  10. #55
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Corrupted form

    What OS are you using? Vista+ should be able to adjust the Regional Setting, I think
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  11. #56
    Join Date
    Feb 2003
    Location
    Holland
    Posts
    146

    Re: Corrupted form

    On the machine with the ex-problem, the OS is XP home edition.

Page 4 of 4 FirstFirst 1234

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

Featured