|
-
Oct 6th, 2000, 11:18 AM
#1
Thread Starter
Addicted Member
W/o using an array, is there a way to load objects onto a form at runtime? I mean completely new objects. I am trying to load all my objects through dlls so I can patch a program bug easily in the future. thanks in advance
-
Oct 6th, 2000, 11:21 AM
#2
transcendental analytic
yeah, there should be several ways, createobject, controls.add and more... YOu just need vb6 to make it work.
Go search for it, there's hundreds of threads about this
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 6th, 2000, 03:19 PM
#3
Thread Starter
Addicted Member
more specificly, with vb5
-
Oct 6th, 2000, 03:48 PM
#4
Use CreateWindowEx for VB5.
Code:
Private Declare Function CreateWindowEx Lib "user32" Alias "CreateWindowExA" (ByVal dwExStyle As Long, ByVal lpClassName As String, ByVal lpWindowName As String, ByVal dwStyle As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As Long, ByVal hMenu As Long, ByVal hInstance As Long, lpParam As Any) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Const WS_CHILD = &H40000000
Private WithEvents btn As CommandButton
Private Sub Form_Load()
retval = CreateWindowEx(0&, "Button", "Button1", WS_CHILD, 32, 32, 64, 64, Me.hwnd, 0, App.hInstance, ByVal 0&)
ShowWindow retval, 1
End Sub
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
|