Results 1 to 29 of 29

Thread: vb 2010 unbalanced stack

Threaded View

  1. #17
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: vb 2010 unbalanced stack

    The error you're getting about the type being exposed is a scope error as paul suggests. My guess is that you declared the TileRec structure as Friend and MapInfo as Public which would cause that error. Changing TileRec to a Public declaration would fix that problem.

    Paul already told you how to fix the implicit conversion error.

    EDIT

    Actually, I just remembered that modules default to Friend access in VB.Net which means that anything declared in it cannot be exposed outside the assembly. Declare your module as Public.
    Last edited by Niya; Sep 17th, 2012 at 03:10 PM.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

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