Search:

Type: Posts; User: fafalone

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Thread: VB6 exe

    by fafalone
    Replies
    7
    Views
    271

    Re: VB6 exe

    The VB6 runtime is included on newer Windows versions, but that could be an issue on older ones.

    If those are the only references (do you have any references in the code that wouldn't appear in...
  2. Thread: TwinBasic

    by fafalone
    Replies
    1,059
    Views
    396,559

    Re: TwinBasic

    Had no idea TwinBasic was progressing so quick. Looking great!




    VB6 can absolutely make standard DLLs. It's a hack, but it's an old hack... earliest descriptions of how to modify the...
  3. Thread: Filetype Icon

    by fafalone
    Replies
    29
    Views
    788

    Re: Filetype Icon

    You'd need the SHGFI_USEFILEATTRIBUTES flag.

    But if you do that, you just get generic icons for .exe, .ico, and anything else with per-file icons.
  4. Thread: Filetype Icon

    by fafalone
    Replies
    29
    Views
    788

    Re: Filetype Icon

    You know, I don't even know why the code in #3 is converting an icon to a bitmap then back to an icon, but I suspect that's how transparency is getting lost.

    Maybe try this replacement grid...
  5. Re: Get module (or/and) class, but also sub/function names ?

    I've seen EbGetCallstack for the IDE, but how would you implement it for a pdb?

    There's the DIA SDK; but then you'd have to install it on target systems too.
  6. Thread: Filetype Icon

    by fafalone
    Replies
    29
    Views
    788

    Re: Filetype Icon

    Not on a ListView with a system image list, selected view is rendered properly.

    Unless you mean the regular highlighting.
  7. Thread: Filetype Icon

    by fafalone
    Replies
    29
    Views
    788

    Re: Filetype Icon

    ListView's don't support alpha blending but they do support basic transparency.

    For instance here's a folder loaded on a ListView with a custom set background color,
    ...
  8. Re: Get module (or/and) class, but also sub/function names ?

    What you could do is use an addin that generates it for each function in a single click for each.

    AxTools CodeSMART can be used to define a default error handler, e.g.


    On Error GoTo...
  9. Re: How do I add / forget a wifi + its password?

    The Native Wifi API can probably help, here's some VB6 projects using some of it.
  10. Re: [VB6] ucShellBrowse: A modern replacement for Drive/FileList w/ extensive feature

    Project Update: 11.2
    -I haven't had a ton of time to work on this between work and so many other projects, but I did want to release the few small feature updates and bug fixes that have been...
  11. Replies
    11
    Views
    725

    Re: All new VB6 exes always running elevated

    Outside of Windows-created directories, that aren't flagged as installers? I know it removes them in \Program Filed, \Users, \Windows... Folders with roots created by the OS.

    I don't recall that...
  12. Re: MSCOMCTL - Object library not registered? It did work, but not anymore! Help :(

    https://www.vbforums.com/showthread.php?896593-All-new-VB6-exes-always-running-elevated&highlight=
  13. Re: MSCOMCTL - Object library not registered? It did work, but not anymore! Help :(

    It likely has external ones off by default... do you mean the option to turn them on no longer exists?

    Or do you mean internal manifests too?

    A recent update MS pushed may be making Windows...
  14. [VB6] Code snippet: Run unelevated app from elevated app

    Surprised I didn't see an example of this, so wanted to post it.

    Here's a quick implementation of a method to run unelevated apps from your elevated app by routing it through Explorer, as outlined...
  15. Replies
    4
    Views
    321

    Re: Open another application unelevated.

    Here's an implementation of one of the methods outlined in the links... VB makes this pretty easy if you're familiar with COM interfaces


    Private Sub LaunchUnelevated(sPath As String)
    Dim pShWin...
  16. Replies
    11
    Views
    458

    Re: Treeview Directory explorer

    If you don't need multiselect (which is technically unsupported; I included it because it was working, but MS marking it "Not supported. Do not use." means it could break any time), set that to...
  17. Replies
    11
    Views
    458

    Re: Treeview Directory explorer

    Well that's truly bizarre,


    DebugAppend "RaiseEvent(Click)->" & TVEntries(tVI.lParam).sFullPath
    If mMultiSel Then
    ...
  18. Replies
    11
    Views
    458

    Re: Treeview Directory explorer

    If you set dbg_PrintToImmediate to True in the .ctl it will print the full debug output... that might give a better idea of what's going on, see if the NM_CLICK notification is firing at all... I'll...
  19. Thread: Filetype Icon

    by fafalone
    Replies
    29
    Views
    788

    Re: Filetype Icon

    Why not use a ListView in large icon mode?

    That way unless you're doing thumbnails, you can sidestep working with the image data at all. You'd use

    m_himlSysSmall =...
  20. Replies
    11
    Views
    458

    Re: Treeview Directory explorer

    DemoSB is a demo of it working with the ucShellBrowse control (for the right pane); you'd need to DL that too, the default path has them in the same parent,

    C:\..\ucShellTree\...
  21. Replies
    11
    Views
    458

    Re: Treeview Directory explorer

    There's a few options, depending on exactly what features you need.

    You can use Windows itself, via the INamespaceTreeControl interface. Which has some feature limits that would be difficult to...
  22. Replies
    11
    Views
    725

    Re: All new VB6 exes always running elevated

    Checked today and the privilege denial issue impacts other languages as well.
  23. Replies
    41
    Views
    1,574

    Re: Change all UDTs to classes

    Yes with copying the memory...

    I thought Niya was talking about like this...

    Class1

    Private Type udt1
    ...
    End Type
    Private tData as udt1
  24. Replies
    41
    Views
    1,574

    Re: Change all UDTs to classes

    You have to be careful here; if your UDT contains objects, or arrays besides 1D static, they're represented by pointers, and copying the UDT copies the pointer, but doesn't create a new instance of...
  25. Thread: Poker Scoring

    by fafalone
    Replies
    13
    Views
    468

    Re: Poker Scoring

    At the top of the page, in the center, is a search box. A quick check shows there are indeed many implementations of poker scoring using pure vb6 code without any dependencies.
  26. Replies
    11
    Views
    725

    Re: All new VB6 exes always running elevated

    Today I used a system restore point to wipe out all updates extending to the 5/19/2022 update.

    This completely fixed the force elevation issue, but did not fix the privilege denial issue (I have...
  27. Re: ModernVB - Modernize your VB6 IDE - Now released publicly for testing!

    I'm not sure it really counts if you have to make it your full time job for years or hire a team to recreate the language from scratch with an ability that just can't be done otherwise.

    Like you...
  28. Re: ModernVB - Modernize your VB6 IDE - Now released publicly for testing!

    Why is it a better idea to switch to an inferior product that's 12 years outdated itself unless you need one of the narrow things it can do that just aren't possible in VB6?
  29. Replies
    15
    Views
    786

    Re: sorting by filename length

    Windows Explorer has 3 ways to sort files (not count ascending vs descending), 1 per column. A column is flagged as either a string (sorted with StrCmpLogicalW), a number (where it sorts by the raw...
  30. Replies
    11
    Views
    725

    Re: All new VB6 exes always running elevated

    (Nevermind, spoke too soon. I got some newly compiled apps to not get force elevated after uninstalling one update, started investigating when it did and didn't happen, and now it's right back to...
  31. Replies
    11
    Views
    725

    Re: All new VB6 exes always running elevated

    I disabled UAC day 1, and haven't touched any security related settings in months...

    If it's getting triggered, it has to be what VB6 does natively... It happens when I don't touch any project...
  32. Replies
    11
    Views
    725

    Re: All new VB6 exes always running elevated

    Running Windows 10 1809 Enterprise LTSC.

    They do raise a UAC prompt (when I turned it back on to check). Windows adds the shield icon overlay to them. And again, blank new project, so no manifest...
  33. Replies
    11
    Views
    725

    All new VB6 exes always running elevated

    This is a new issue. Any VB6 app I compile now runs elevated without being asked/using 'Run as'. This is bizarre.

    New exe, blank form, no code, runs elevated. Directory placed in is irrelevant.
    ...
  34. Replies
    4
    Views
    2,351

    Re: Viewing Token Privileges

    If you check in a tool like ProcessHacker, you see that TaskManager runs elevated.


    Edit:
    This looks like something that Microsoft might have *just* broken.

    I just noticed one of my VB6...
  35. Re: [VB6] Modern Shell Interface Type Library - oleexp.tlb

    There was a post about it above in #202, but I don't know how reliable that is. A lot of types were changed from their original, and not all sizes doubled. I'd imagine it would likely have to be a...
  36. Replies
    4
    Views
    2,351

    Re: Viewing Token Privileges

    If you want to escalate to SYSTEM/TrustedInstaller/LSASS to obtain most of those privileges,

    [VB6] Run process as TrustedInstalled (NT AUTHORITY\SYSTEM) w/ full system privileges
  37. Re: [RESOLVED] How to simulate "try-catch-finally" in VB6

    Probably not. Which is why I want my app to still mostly work in the most scenarios as possible. So they'll try to recover from errors rather than just tell the user 'oh well'. Because not every...
  38. Re: [RESOLVED] How to simulate "try-catch-finally" in VB6

    Believe what? Do you even understand what we're talking about?

    Yeah professional tools and games break, but your apps don't? And that might not tell the user anything, but they'll typically have...
  39. Re: [RESOLVED] How to simulate "try-catch-finally" in VB6

    I've got news for you, you're not better than the best programmer in the world. Bugs are inevitable. Different OS versions can cause errors you haven't even contemplated when an update breaks...
  40. Re: [RESOLVED] How to simulate "try-catch-finally" in VB6

    Of course all errors should be handled. Letting the app just crash isn't good... you want to dump data related to the crash and return the program to the state prior to executing whatever part of the...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width