|
-
Feb 18th, 2002, 09:33 AM
#1
Thread Starter
New Member
The memory could not be "read"
Hi everyone,
i have made a backup tool where i can copy files from
one dir to another.
i do this using the API call CopyFile, the tool itself works fine.
it is possible to select specified filetypes(*.doc;*.html) to copy.
all off this works fine , but when i select the type All Files (*.*) and execute this action.
i get the following error:
The instruction at "0x0fa91750" referenced memory at
"0x00000004". The memory could not be "read".
Click on OK to terminate the program.
I test it on XP home and XP prof.
When i test the code by stepping trough
i get the errormessage on this line:
Call SendMessage(frmStatus.List2.hwnd, LB_ADDSTRING, 0&, sItem)
Somebody knows what the problem can be?
Thanxs in advance for your help.
Greetingzzz,
Jaco
-
Feb 18th, 2002, 12:18 PM
#2
Frenzied Member
Jaco -
1 - Why are you using API to add entries to a listbox on your own form. This isn't going to be possible considering that VB and C++ use 2 different types of string formats.
2 - For the file copying, you're better off using VB's dir command to cycle through each file in the directory. Either that or use the "file listbox" control and use its contents.
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
|