Click here to Skip to main content
15,910,303 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Lotus 123 Pin
Johan Hakkesteegt16-Sep-08 10:06
Johan Hakkesteegt16-Sep-08 10:06 
GeneralRe: Lotus 123 Pin
chuckf16-Sep-08 11:03
chuckf16-Sep-08 11:03 
QuestionAtom RSS Feed Content - No Items displayed Pin
ModelMkr15-Sep-08 6:32
ModelMkr15-Sep-08 6:32 
Question'Error in Visual SourceSafe Pin
prubyholl15-Sep-08 6:08
professionalprubyholl15-Sep-08 6:08 
AnswerRe: 'Error in Visual SourceSafe Pin
John_Adams15-Sep-08 9:27
John_Adams15-Sep-08 9:27 
GeneralRe: 'Error in Visual SourceSafe Pin
prubyholl16-Sep-08 3:40
professionalprubyholl16-Sep-08 3:40 
QuestionProduct Id Pin
Gagan.2015-Sep-08 5:47
Gagan.2015-Sep-08 5:47 
AnswerRe: Product Id Pin
John_Adams15-Sep-08 9:36
John_Adams15-Sep-08 9:36 
Hi,

You can get the CLSID of your program using VB.Net in the following manner:

BEGIN CODE

' Use Server 'localhost'. It can be a remote host!

Dim theServer As String = "localhost"

' Use programID 'HKEY_CLASSES_ROOT\DirectoryControl.DirectoryList.1'.

Dim myProgID As String = "DirectoryControl.DirectoryList.1"

' Make a call to the method to get the Type information of
' the given ProgID.

Dim myType1 As Type = Type.GetTypeFromProgID(myProgID, theServer, True)

Console.WriteLine(("GUID for ProgramID " + myProgID + " is: " + myType1.GUID.ToString()))

END CODE

However, if you are using VB 6.0 then you may use the following code snippet:

BEGIN CODE

In a VB6.0 project I had the following codes to get CLSID string from a ProgID:

' define some API functions and a structure data type for GUID

Function CLSIDFromProgID(ByRef szProgID As String) As String
' First, an API Win32CLSIDFromProgID Call
Win32CLSIDFromProgID(StrPtr(szProgID), udtCLSID)

' then, convert CLSID structure type to a long pointer to CLSID
' finally use API CopyMemory to get CLSID string

End Function

Hope this helps Smile | :) .



END CODE

Regards,
John Adams
ComponentOne LLC

GeneralRe: Product Id Pin
Gagan.2017-Sep-08 0:35
Gagan.2017-Sep-08 0:35 
QuestionCheck dll files at the Start of the Application Pin
pdnet15-Sep-08 2:25
pdnet15-Sep-08 2:25 
AnswerRe: Check dll files at the Start of the Application Pin
Eslam Afifi15-Sep-08 2:44
Eslam Afifi15-Sep-08 2:44 
GeneralRe: Check dll files at the Start of the Application Pin
pdnet15-Sep-08 3:28
pdnet15-Sep-08 3:28 
GeneralRe: Check dll files at the Start of the Application Pin
Eslam Afifi15-Sep-08 3:55
Eslam Afifi15-Sep-08 3:55 
GeneralRe: Check dll files at the Start of the Application Pin
pdnet15-Sep-08 4:06
pdnet15-Sep-08 4:06 
GeneralRe: Check dll files at the Start of the Application Pin
Eslam Afifi15-Sep-08 4:19
Eslam Afifi15-Sep-08 4:19 
AnswerRe: Check dll files at the Start of the Application Pin
Gagan.2015-Sep-08 5:37
Gagan.2015-Sep-08 5:37 
AnswerRe: Check dll files at the Start of the Application Pin
Guffa15-Sep-08 9:44
Guffa15-Sep-08 9:44 
GeneralRe: Check dll files at the Start of the Application Pin
pdnet15-Sep-08 18:48
pdnet15-Sep-08 18:48 
Questionproblem while trying to use form closing event [modified] Pin
kisran15-Sep-08 1:07
kisran15-Sep-08 1:07 
AnswerRe: problem while trying to use form closing event Pin
C1AllenS15-Sep-08 1:19
C1AllenS15-Sep-08 1:19 
GeneralRe: problem while trying to use form closing event Pin
kisran15-Sep-08 1:36
kisran15-Sep-08 1:36 
AnswerRe: problem while trying to use form closing event Pin
Gagan.2015-Sep-08 5:43
Gagan.2015-Sep-08 5:43 
GeneralRe: problem while trying to use form closing event [modified] Pin
kisran15-Sep-08 18:32
kisran15-Sep-08 18:32 
GeneralRe: problem while trying to use form closing event Pin
Gagan.2017-Sep-08 0:38
Gagan.2017-Sep-08 0:38 
QuestionSetup for Updates Pin
Amit Kushwaha15-Sep-08 0:45
Amit Kushwaha15-Sep-08 0:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.