|
-
Oct 27th, 2000, 10:53 AM
#1
Thread Starter
Lively Member
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.
-
Oct 27th, 2000, 11:07 AM
#2
Fanatic Member
& 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 
-
Oct 27th, 2000, 11:41 AM
#3
Fanatic Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|