Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

GetComputerName / vb.net

$
0
0
Hi All
i have problem when getcomputername

my code
Dim buffer As String
buffer = Space$(512)
Dim size As Long = buffer.Length
If GetComputerName(buffer, size) Then
x_computer_name = Mid(buffer, 1, size)
End If


error : Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

can you help me.
thank's

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>