Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am pretty sure that I added a DLL as a reference to a project once and I could user the DLL and get to its functions. I have VB.Net Standard 2002 if that is any help.

 

I'm pretty sure I added User32.dll to it and then I could do something like this,

 

Start typing User32. and then the intellisense would kick in giving me a list of functions.

 

Should this happen or I might be thinking of something I did in another language.

Posted (edited)

I think it should work like that, could you tell me how you did it ? Is it 'Add reference' then browse and select user32.dll ?

 

usually I use API functions like this:

 

Private Declare Function DestroyWindow Lib "user32" (ByVal hndw As Integer) As Boolean

 

 

first declare then use it.... I have never tried anything else so no help I guess.

Edited by DR00ME

"Everything should be made as simple as possible, but not simpler."

"It's not that I'm so smart , it's just that I stay with problems longer ."

- Albert Einstein

Posted

I tried adding it like you first stated, but you get the error its not a valid dll or something.

 

But I thought I did add it as a reference at some stage and it worked.

 

Must of been dreaming!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...