Results 1 to 3 of 3

Thread: a few questions

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    u.s.a
    Posts
    127
    Just a few basic questions:

    What is the "&" sign used for when I represent numbers?
    I know that &H100 is 100 in hex but sometimes I see
    a number with an "&" stuck at the end (678&) and some times both at the end and beggining.
    Why?

    Whrn I exeute a .reg file using "shellexecute", I get the confirmation message box.
    Is there a way to execute a .reg file with out this confirmation?

    how can I craete a menu on a form using API?


    Thanks
    Dan.


  2. #2
    Fanatic Member Kaverin's Avatar
    Join Date
    Oct 2000
    Posts
    930
    & is a type declarator symbol that stands for long.
    Code:
    Dim X&
    Dim X2 As Long
    Const X3 As Long = 14&
    Each of those things is a long integer. If you use & at the end of a normal number, it will force that value into a long integer.

    About those other things, I've never used ShellExecute so I can't help out there. For a menu though, if you don't need it to be made at run time, it would be easier using the menu editor at design time.

    [Edited by Kaverin on 10-27-2000 at 12:11 PM]
    I'm baaaack...
    VB5 Professional Edition, VC++ 6
    Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se

    I feel special because I finally figured out how to loop midis: Post link
    I'm a fanatic too

  3. #3
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    For creating menus at runtime, you would have to use loads of the menu APIs, CreateMenu, SetMenu, InsertMenuItem, DrawMenuBar etc.

    Not really worth it, unless you have planes to ownerdraw it, but even then you could just ownerdraw VB's menus. There's no real ... point.
    Courgettes.

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