|
-
February 5th, 2007, 04:47 PM
#1
[RESOLVED] Copymem API Error - wierd one ????
Now this is a very wierd problem...
Code:
Private Block As String
Private File_Block As Long
Private Sub MoveData ()
Dim arr_dat() As Byte
Get_Data () ' Function that returns 1024 bytes in Arr_dat..
File_block = 1024
Block = Space(1024)
CopyMemory Block, arr_dat(0), File_Block ' this now shuts down the IDE...
End Sub
the CopyMemory API causes the ide to exit ...
I'm trying to move and array of binary data into a string without resorting to a loop... And this one has me going mad...
Any Advice ???
Gremmy....
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
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
|