jaws
New Member
Posts: 1
|
Post by jaws on Jun 9, 2011 8:03:38 GMT -5
I am trying to simply get the name of the computer the program is running on. My sample code is
name$ = space$(255) nameLen = Len(name$) calldll #kernel32, "GetComputerNameA",_ name$ as Ptr,_ nameLen as Long ,_ ret as Short print name$ print nameLen input jw$ end
When I run this it gives me a: Runtime Error: Protection Violation
I know this is probably a simple error, but I haven't been able to figure it out. Any assistance would be greatly appreciated.
|
|
|
Post by Alyce Watson on Jun 10, 2011 5:35:09 GMT -5
At the top of this forum:
Do sign up at the Community Forum. Not only will you get fast, good answers to your questions, but you'll also be able to participate in challenges and projects related to coding in Liberty BASIC.
|
|
|
Post by Alyce Watson on Jun 10, 2011 5:38:30 GMT -5
A quick check shows me that you signed up at the Community Forum two days ago, so you are good to go.
|
|