Category : BASIC Source Code
Archive   : VINST8.ZIP
Filename : PROGGRP.TXT

 
Output of file : PROGGRP.TXT contained in archive : VINST8.ZIP
' --------------------------------------------------------
' Procedure: CreateProgManGroup
' Arguments: X The Form where a Text1 exist
' GroupName$ A string that contains the group name
' GroupPath$ A string that contains the group file
' name ie 'myapp.grp'
' --------------------------------------------------------
Sub CreateProgManGroup (x As Form, GroupName$, grouppath$)

Dim i%, r%


Screen.MousePointer = 11


' -----------------------------------------------------
' Windows requires DDE in order to create a program
' group and item. Here, a Visual Basic label control
' is used to generate the DDE messages
' -----------------------------------------------------
On Error Resume Next


' -----------------------------------------------------
' Set LinkTopic to PROGRAM MANAGER
' -----------------------------------------------------
x.Text1.LinkTopic = "ProgMan|Progman"
x.Text1.LinkMode = 2
For i% = 1 To 10 ' Loop to ensure that there is enough time to
DoEvents ' process DDE Execute. This is redundant but needed
Next ' for debug windows.
x.Text1.LinkTimeout = 100


' -----------------------------------------------------
' Create program group
' -----------------------------------------------------
x.Text1.LinkExecute "[CreateGroup(" & GroupName$ & Chr$(44) & grouppath$ & ")]"

r% = writeprivateprofilestring("GROUP", "Path", grouppath$, gunname$)
' -----------------------------------------------------
' Reset properties
' -----------------------------------------------------
x.Text1.LinkTimeout = 50
x.Text1.LinkMode = 0

Screen.MousePointer = 0

End Sub


  3 Responses to “Category : BASIC Source Code
Archive   : VINST8.ZIP
Filename : PROGGRP.TXT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/