|
-
Jul 24th, 2003, 12:10 PM
#1
Thread Starter
Sleep mode
[DLL IMPORT] and IMAGEHLP.DLL[Resolved]
I get the following error :
The type or namespace name 'DllImport' could not be found (are you missing a using directive or an assembly reference?)
Code:
[DllImport("IMAGEHLP.DLL")]
public static extern int SearchTreeForFile(string lpRootPathtring,
string lpInputName , string lpOutputName ) ;
I'm using the same to get SendMessage API , but I got no errors . How the heck can I solve this ?
Last edited by Pirate; Jul 24th, 2003 at 01:46 PM.
-
Jul 24th, 2003, 12:57 PM
#2
try adding this at the top of yer code window :
VB Code:
using System.Runtime.InteropServices;

oh and btw you may want to use StringBuilder rather than just string as using string may return a null value.
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Jul 24th, 2003, 01:46 PM
#3
Thread Starter
Sleep mode
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
|