sjn78 Posted February 23, 2004 Posted February 23, 2004 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. Quote
DR00ME Posted February 23, 2004 Posted February 23, 2004 (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 February 23, 2004 by DR00ME Quote "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
sjn78 Posted February 23, 2004 Author Posted February 23, 2004 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! Quote
*Experts* mutant Posted February 23, 2004 *Experts* Posted February 23, 2004 You can't reference standard DLLs like that. You have to import the functions like stated above or using the DllImport attribute. Quote
samsmithnz Posted February 23, 2004 Posted February 23, 2004 This only works with ActiveX Dll's (or the newer .NET ones of course). You're probably jsut confused with these older ones... Quote Thanks Sam http://www.samsmith.co.nz
sjn78 Posted February 24, 2004 Author Posted February 24, 2004 Yeh, I'd say that's what I was thinking. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.