Click here to Skip to main content
15,916,683 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Windows Forms Message Box Pin
Christian Graus29-Aug-05 19:21
protectorChristian Graus29-Aug-05 19:21 
GeneralRe: Windows Forms Message Box Pin
JayaDurai30-Aug-05 20:06
JayaDurai30-Aug-05 20:06 
GeneralRe: Windows Forms Message Box Pin
Christian Graus1-Sep-05 12:27
protectorChristian Graus1-Sep-05 12:27 
QuestionDelete Record in datagrid not working Pin
BORN...again!29-Aug-05 17:49
BORN...again!29-Aug-05 17:49 
Questiondail a telephone number ,and when the person lifts up the telephone ... Pin
sunnf29-Aug-05 15:53
sunnf29-Aug-05 15:53 
QuestionGet hotfixes type and DLL language Pin
highdoe29-Aug-05 12:25
highdoe29-Aug-05 12:25 
AnswerRe: Get hotfixes type and DLL language Pin
Dave Kreskowiak29-Aug-05 13:13
mveDave Kreskowiak29-Aug-05 13:13 
GeneralRe: Get hotfixes type and DLL language Pin
highdoe29-Aug-05 20:41
highdoe29-Aug-05 20:41 
I think my question #2 wasn't very clear but anyway thanks Dave for your reply. I finally end up with this function. I already had what I wanted in my API functions (GetFileVersion which is almost the same).

<br />
'Return the language codepage of the file.<br />
Public Function GetFileCodepage(r_sFilePath As String) As Long<br />
<br />
    Dim lSetToZero As Long<br />
    Dim lByteArrSize As Long<br />
    Dim aByteArr() As Byte<br />
    Dim lTransPtr As Long<br />
    Dim lTransLen As Long<br />
    Dim lCodepage As Long<br />
<br />
    lByteArrSize = APiGetFileVersionInfoSize(r_sFilePath$, lSetToZero&)<br />
<br />
    If lByteArrSize > -1 Then<br />
<br />
        ReDim aByteArr(lByteArrSize)<br />
<br />
        If ApiGetFileVersionInfo(r_sFilePath$, 0&, _<br />
            lByteArrSize&, aByteArr(0)) Then<br />
<br />
            If ApiVerQueryValue(aByteArr(0), _<br />
                "\VarFileInfo\Translation", lTransPtr&, lTransLen&) Then<br />
<br />
                ReDim aByteArr(lTransLen)<br />
                ApiRtlMoveMemory aByteArr(0), ByVal lTransPtr&, lTransLen&<br />
                ApiRtlMoveMemory lCodepage&, aByteArr(0), 2&<br />
<br />
                GetFileCodepage = lCodepage<br />
<br />
            End If<br />
        End If<br />
    End If<br />
<br />
End Function<br />


For question #1, it must be something in Hotfixes binaries that tells which type it is. I'm not sure there is no way. I'll keep searching.
GeneralRe: Get hotfixes type and DLL language Pin
Dave Kreskowiak30-Aug-05 2:32
mveDave Kreskowiak30-Aug-05 2:32 
Questiongetting ids Pin
Secrets29-Aug-05 11:17
Secrets29-Aug-05 11:17 
QuestionGarabage Collection Question Pin
|Spud|29-Aug-05 11:07
|Spud|29-Aug-05 11:07 
AnswerRe: Garabage Collection Question Pin
Secrets29-Aug-05 11:30
Secrets29-Aug-05 11:30 
GeneralRe: Garabage Collection Question Pin
|Spud|29-Aug-05 20:43
|Spud|29-Aug-05 20:43 
QuestionApplication to &quot;see&quot; over windows sessions Pin
°[Halo]°29-Aug-05 10:40
°[Halo]°29-Aug-05 10:40 
AnswerRe: Application to &quot;see&quot; over windows sessions Pin
Dave Kreskowiak29-Aug-05 10:47
mveDave Kreskowiak29-Aug-05 10:47 
GeneralRe: Application to &quot;see&quot; over windows sessions Pin
°[Halo]°29-Aug-05 12:04
°[Halo]°29-Aug-05 12:04 
GeneralRe: Application to &quot;see&quot; over windows sessions Pin
Dave Kreskowiak29-Aug-05 13:01
mveDave Kreskowiak29-Aug-05 13:01 
QuestionHelp with closing a form Pin
jelsner29-Aug-05 7:30
jelsner29-Aug-05 7:30 
AnswerRe: Help with closing a form Pin
Dave Kreskowiak29-Aug-05 9:59
mveDave Kreskowiak29-Aug-05 9:59 
QuestionGetTypeFromProgID: Invalid class string Pin
DaveC42691329-Aug-05 6:28
DaveC42691329-Aug-05 6:28 
QuestionAccessing data within datagrids...... Pin
daviiie29-Aug-05 6:27
daviiie29-Aug-05 6:27 
AnswerRe: Accessing data within datagrids...... Pin
Anonymous29-Aug-05 7:06
Anonymous29-Aug-05 7:06 
QuestionVBA Excel 2003 Pin
PHDENG8129-Aug-05 2:46
PHDENG8129-Aug-05 2:46 
AnswerRe: VBA Excel 2003 Pin
Dave Kreskowiak29-Aug-05 4:36
mveDave Kreskowiak29-Aug-05 4:36 
GeneralRe: VBA Excel 2003 Pin
PHDENG8129-Aug-05 5:02
PHDENG8129-Aug-05 5:02 

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.