Creating a custom class dll help
Creating a custom class dll help
Creating a custom class dll help
Creating a custom class dll help
Creating a custom class dll help
Creating a custom class dll help Creating a custom class dll help Creating a custom class dll help Creating a custom class dll help Creating a custom class dll help Creating a custom class dll help Creating a custom class dll help Creating a custom class dll help
Creating a custom class dll help Creating a custom class dll help
Creating a custom class dll help
Go Back  Xtreme Visual Basic Talk > > > Creating a custom class dll help


Reply
 
Thread Tools Display Modes
  #1  
Old 10-19-2005, 10:51 PM
Joker9125 Joker9125 is offline
Freshman
 
Join Date: Sep 2005
Posts: 31
Default Creating a custom class dll help


Id like to add the following code to a custom class for future reuse, however I have been unable to figure out how to do so in .NET. I checked the book we are using in VB class, however it gives no instructions on how to do so. The only thing it talks about in reguards to this is remoting..............It says you can make one though. It just dosent say how.

Code:
Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long) Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long) Private Const mouse_eventC = &H2 ' Event contains mouse event record Private Const MOUSE_MOVED = &H1 Private Const MOUSEEVENTF_ABSOLUTE = &H8000 ' absolute move Private Const MOUSEEVENTF_LEFTDOWN = &H2 ' left button down Private Const MOUSEEVENTF_LEFTUP = &H4 ' left button up Private Const MOUSEEVENTF_MIDDLEDOWN = &H20 ' middle button down Private Const MOUSEEVENTF_MIDDLEUP = &H40 ' middle button up Private Const MOUSEEVENTF_MOVE = &H1 ' mouse move Private Const MOUSEEVENTF_RIGHTDOWN = &H8 ' right button down Private Const MOUSEEVENTF_RIGHTUP = &H10 ' right button up Private Const KEYEVENTF_KEYDOWN As Long = &H0 Private Const KEYEVENTF_KEYUP As Long = &H2 Private Const VK_SHIFT = &H10 Private Const VK_A = &H41 Private Const VK_B = &H42 Private Const VK_C = &H43 Private Const VK_D = &H44 Private Const VK_E = &H45 Private Const VK_F = &H46 Private Const VK_G = &H47 Private Const VK_H = &H48 Private Const VK_I = &H49 Private Const VK_J = &H4A Private Const VK_K = &H4B Private Const VK_L = &H4C Private Const VK_M = &H4D Private Const VK_N = &H4E Private Const VK_O = &H4F Private Const VK_P = &H50 Private Const VK_Q = &H51 Private Const VK_R = &H52 Private Const VK_S = &H53 Private Const VK_T = &H54 Private Const VK_U = &H55 Private Const VK_V = &H56 Private Const VK_W = &H57 Private Const VK_X = &H58 Private Const VK_Y = &H59 Private Const VK_Z = &H5A Private Const VK_0 = &H30 Private Const VK_1 = &H31 Private Const VK_2 = &H32 Private Const VK_3 = &H33 Private Const VK_4 = &H34 Private Const VK_5 = &H35 Private Const VK_6 = &H36 Private Const VK_7 = &H37 Private Const VK_8 = &H38 Private Const VK_9 = &H39
Reply With Quote
  #2  
Old 10-20-2005, 01:41 AM
Sonreir's Avatar
Sonreir Sonreir is offline
Contributor
 
Join Date: Jul 2004
Location: Hampshire, England
Posts: 540
Default

Create a new project of the 'Class Library' type. When you compile that, the output will be a dll. You can then add the dll as a reference into any project you happen to be working on.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Creating a custom class dll help
Creating a custom class dll help
Creating a custom class dll help Creating a custom class dll help
Creating a custom class dll help
Creating a custom class dll help
Creating a custom class dll help Creating a custom class dll help Creating a custom class dll help Creating a custom class dll help Creating a custom class dll help Creating a custom class dll help Creating a custom class dll help
Creating a custom class dll help
Creating a custom class dll help
 
Creating a custom class dll help
Creating a custom class dll help
 
-->