Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: MSXML parser returns "" string when program is not ran as administrator

    > the problem occurs when MSXML generates the XML file

    How does MSXML generate the file? You already said .xml property is empty before UnicodeFileSave.

    How do you populate the DOM? There call...
  2. Re: IS there a way to change values while full select - insert into temp table?

    You are confusing values for columns. No, there is no way in standard SQL (and T-SQL dialect particularly) to SELECT all the columns but one particular column.

    For instance in BigQuery SQL dialect...
  3. Re: MSXML parser returns "" string when program is not ran as administrator

    Bug in Windows is extremely unlikely. You can get around this by debugging your code first incl. removing On Error Resume Next and placing better error handling with logging etc.

    You need a stable...
  4. Thread: VB6 - GetFile

    by wqweto
    Replies
    7
    Views
    299

    Re: VB6 - GetFile

    This improves nothing, some kind of security through obscurity.

    In every cryptanalysis scenario the attacker has the algorithm, has the source code, has everything with comments and explanations...
  5. Thread: VB6 - GetFile

    by wqweto
    Replies
    7
    Views
    299

    Re: VB6 - GetFile

    Not for RC4. The cipher is biased i.e. it's output is not "truly random" no matter how random the key is. Please, stop using it for any meaningful purpose :-))

    I mean, using it here for GetFile is...
  6. Re: Stop / Starting Outlook via VBScript

    This is wrong on so many levels. . . just don't!

    cheers,
    </wqw>
  7. Thread: VB6 - GetFile

    by wqweto
    Replies
    7
    Views
    299

    Re: VB6 - GetFile

    Wikipedia states it plainly in its first paragraph: "multiple vulnerabilities have been discovered in RC4, rendering it insecure"

    I personally use it only in legacy projects started 20+ years ago....
  8. Re: Stop / Starting Outlook via VBScript

    Where is Outlook not mentioned? In GetObject(, "Outlook.Application") or in CreateObject("Outlook.Application")?



    You cannot close Outlook because you *start* Outlook incorrectly.

    No, you...
  9. Thread: VB6 - GetFile

    by wqweto
    Replies
    7
    Views
    299

    Re: VB6 - GetFile

    > The encryption protocol I have chosen to use in this sample program is RC4. It is fast and its limitations are overcome by using a 256 bit key and relatively large record sizes.

    Btw, RC4 is...
  10. Re: Stop / Starting Outlook via VBScript

    Does cmd.exe /c notepad.exe close notepad?

    Does cmd.exe /k notepad.exe close it too?

    Why would it close Outlook?

    Anyway, try this snippet


    On Error Resume Next
  11. Re: how can used pipe to load this console without first starting the cmd.exe like py

    > The default parameters are in the text in the folder where the program is located

    Yes, this is correct.

    Edit: Now I see it's using exe_name = google::ProgramInvocationShortName() which can be...
  12. Re: how can used pipe to load this console without first starting the cmd.exe like py

    This is the relevant function from tools.cpp for loading the congif (sic) files


    void load_congif_file() {
    // МбИЎТСУРFlags
    std::vector<google::CommandLineFlagInfo> allFlags;...
  13. Replies
    1,074
    Views
    44,914

    Re: Current Russia Ukraine tensions

    Someone who still questions whether Russia is responsible for the crisis in Europe is either ignorant of the facts, an idiot, or purposely deceptive, and possibly even all three.

    cheers,
    </wqw>
  14. Replies
    15
    Views
    551

    Re: Partial function in VB6?

    True but OP is not about partial *methods* per se. Did you read the thread?

    cheers,
    </wqw>
  15. Re: how can used pipe to load this console without first starting the cmd.exe like py

    No idea. ShellPipe might be better for what you are doing in this case.

    If we have to apply common sense i.e. some basic logic -- it seems your problem is *not* current directory the process is...
  16. Re: how can used pipe to load this console without first starting the cmd.exe like py

    Just tested this


    Private Sub Form_Load()
    With New cExec
    ' .Run "cmd", "/c dir", StartHidden:=True, CurrentDir:="C:\TEMP\"
    .Run "cmd", "/c dir", , , ,...
  17. Replies
    1,074
    Views
    44,914

    Re: Current Russia Ukraine tensions

    So they have been conducting referendums in regions which they are not sure where their exact borders are?

    Clowns supported by "useful idiots" in internet forums and communist parties of the...
  18. Re: how can used pipe to load this console without first starting the cmd.exe like py

    Here is an updated version of cExec class which has additional CurrentDir parameter to its Run method.

    This simply sets current directory of the launched process the way you tried to do it using...
  19. Replies
    3
    Views
    1,639

    Re: [VB6] DirectX 11 Desktop Duplication

    VNC client -- no, because desktop duplication is used for implementing VNC servers on Windows like this one -- a single class VNC Server in VB6.

    We are using this exact class in all our...
  20. Replies
    12
    Views
    593

    Re: Buttons design and caption

    Just used Olaf's approach to add OLE drag&drop support to this button control based on 9-patch images (as used on Android) for the button state so hover, pressed, etc. can have different images.
    ...
  21. Replies
    11
    Views
    486

    Re: VB6 and (S)FTP

    The natural continuation of FTP is FTPS. This is like securing HTTP with TLS becomes HTTPS.

    SFTP is a totally different beast altogether. This is the "file transfer protocol" (FTP subsystem) in...
  22. Thread: TwinBasic

    by wqweto
    Replies
    1,198
    Views
    444,601

    Re: TwinBasic

    @VB6 Programming: You can switch links directly to twinbasic org on github i.e. https://github.com/twinbasic/twinbasic/releases

    Currently github is helping by redirecting all links to...
  23. Replies
    7
    Views
    297

    Re: How do I quickly find a form?

    frmAbout suits me perfectly, thanks. Of course “full-length” search is available in every tree-view, list-view and listbox since NT4.

    Sometimes I doubt most of the people here are secretly...
  24. Re: VB6, Activex servers, Coinitialize and the upcoming PACKET_INTEGRITY enforcement

    Last time I fiddled with CoInitializeSecurity API it failed constantly in VB6 as there is no way to call this after CoInitialize but before any interface is marshaled in the process.
    ...
  25. Replies
    9
    Views
    365

    Re: Collection parameter ByRef vs ByVal

    No, this is not true for reference parameters. Cargo-culting and expert advice here has brought enough confusion in these forums. There is no "data copying" with references unless a custom marshaller...
  26. Replies
    15
    Views
    551

    Re: Partial function in VB6?

    To understand currying you have to have first-class functions in the language i.e. being able to assign functions to variables like Dim a As Variant : a = MyFunction is not available in VB6.
  27. Replies
    9
    Views
    365

    Re: Collection parameter ByRef vs ByVal

    > Is "reference" a pointer?

    Yes.

    The point is that r_col identifier in appendFooToCol body is also a parameter which can be a ByVal reference or a ByRef reference. In C/C++ parlance ByVal is a...
  28. Replies
    9
    Views
    365

    Re: Collection parameter ByRef vs ByVal

    Check out this sample code


    Option Explicit

    Private m_oCol As Collection

    Private Sub Form_Load()
    Set m_oCol = New Collection
    appendFooToCol m_oCol
  29. Replies
    18
    Views
    560

    Re: data arrival help select case

    @David_chan: The best way to avoid whatever toxicity you get from old members here is to *not* create new accounts once you get added to peoples ignore lists.

    This or read a book on VB6 -- the...
  30. Replies
    1,074
    Views
    44,914

    Re: Current Russia Ukraine tensions

    I do care and I am in EU but didn't know anything about any Brotherhood in Italy so will you just shut up already.

    Nobody wants to listen to badly articulated arguments of the communist party of...
  31. Replies
    12
    Views
    629

    Re: Can't get "Class" AddressOf to work

    Here it is in 3 lines of code (w/ 5 API declares)


    Option Explicit

    Private Declare Function VirtualAlloc Lib "kernel32" (ByVal lpAddress As Long, ByVal dwSize As Long, ByVal flAllocationType...
  32. Replies
    18
    Views
    560

    Re: data arrival help select case

    What do you think this code


    Select Case "ÈstartcodeÈ"
    Case "||error||"'

    . . .
    End Select

    . . . actually does?
  33. Replies
    12
    Views
    629

    Re: Can't get "Class" AddressOf to work

    Yes, that's basically the idea. The $1M question is which index (which address) is the one we need from this VTable?

    MST solution to this problem is to build a big fake VTable which point to...
  34. Replies
    12
    Views
    629

    Re: Can't get "Class" AddressOf to work

    If this was possible no one would bother writing thunks for this but directly solve the issue and continue churning code :-))

    TB has done this now. No extra thunking needed, just use lPfn =...
  35. Replies
    10
    Views
    2,057

    Re: Access the VBIDE library without add-ins

    That’s not the point of this thread at all. You can retrieve current project name by raising a runtime error (e.g. Err.Raise vbObjectError) and observing the Err.Source property should be current...
  36. Replies
    8
    Views
    369

    Re: Algorithm speed after compiled

    The “algorithm” you are using is trivial (a single loop) and this cannot be further optimized. The only option would be to stop using EM_FORMATRANGE which does not sound feasable. It is this message...
  37. Re: Help with winsock class module to create array as server.

    What you need in your server project is a separate class called RequestHandler or SessionHandler which wraps the accepting socket and calls back in the main (server) instance on receive or on...
  38. Replies
    10
    Views
    2,057

    Re: Access the VBIDE library without add-ins

    Btw, I'm currently using this property VbeRef in a standard .bas module


    ' Add reference to Microsoft Visual Basic 6.0 Extensibility
    Option Explicit

    Private Declare Function...
  39. Replies
    39
    Views
    1,184

    Re: Add-Ins, what do you use them for?

    Which version of MZ-Tools is stalling IDE load?

    I'm using version 3.0 and only problem I had is with custom shortcuts registration sometimes when an IDE is frozen and second is IDE instance is...
  40. Replies
    15
    Views
    438

    Re: This code doesn't wok in 64bit

    The funny part is that ASM source is missing and you are supposed to disassemble the x86 opcodes on your own *before* answering if rewriting the thunk in x64 is possible at all. Nice bait!

    cheers,...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width