Results 1 to 3 of 3

Thread: [DLL IMPORT] and IMAGEHLP.DLL[Resolved]

  1. #1

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    [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.

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    try adding this at the top of yer code window :
    VB Code:
    1. 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]

  3. #3

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Works perfect . Thanks .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width