Search:

Type: Posts; User: Elroy

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Re: Non-DPI-aware, scaling down and then up again (how to avoid)

    I'm distracted by some other projects, but I do need to check on whether GDI and/or GDI+ correctly handle this.

    However, there's certainly a way to do it. We can certainly check the Windows...
  2. Re: [RESOLVED] VB6 COM/Code Object Method Name ---> vTable Entry Number

    Yeah, when I get a chunk of time, I need to look into this. I've just got several other things going on right now, but I'll get to it.
  3. Replies
    25
    Views
    576

    Re: MsgBox Timer on some Forms

    Did you even try VBA.Timer? I'd love to know if you can still get the problem using VBA.Timer, as you didn't show us all possible functions and objects in this project. It doesn't have to be in the...
  4. Replies
    25
    Views
    576

    Re: MsgBox Timer on some Forms

    Use VBA.Timer instead of just Timer, and I bet your problem is solved. Like others have said, you've got some other object (or function) named Timer.
  5. Non-DPI-aware, scaling down and then up again (how to avoid)

    Ok, I think many of us have abandoned trying to use DPI-awareness. Without it, Windows does a pretty good job with fonts, and it's image scaling has gotten better through the years. So it's not...
  6. Replies
    3
    Views
    174

    Re: LOOPING subdir and count files

    I somewhat recently looked up the definition of "Cargo Culting" and this is a wonderful example. All that's needed to complete it is for Luca to include a gif of him rain-dancing. :)

    And I...
  7. Re: Error 5 : Bad filename or number, when trying to Dir$ a path

    And you should use the SHGetSpecialFolderLocation API call to get your "special" folder locations, and not hard-code it.

    Here's a wrapper for using it. Scroll down and see the GetSpecialFolder...
  8. Re: [RESOLVED] Trying to create a sub based on form names

    Function FormObjFromName(FormName As String) As Form
    Dim frm As Form
    For Each frm In Forms
    If frm.Name = FormName Then
    Set FormObjFromName = frm
    Exit...
  9. Re: Trying to create a sub based on form names

    You could do it with the form's name, but then you'd have to search the Forms collection to get the actual form's object. That's the only way I know to "get at" the Controls collection for a form.
    ...
  10. Replies
    6
    Views
    229

    Re: Conversion from pixels to user units

    Ahh, I guess I've never realized that either. Typically, when I'm using ScaleX (or ScaleY), I'm being very explicit so that I know what I'm doing. :)
  11. Replies
    17
    Views
    528

    Re: Form show vbmodal and the rest of the sub

    Man, this thread is confusing to me. Personally, I think of showing a form with vbModal as the same as calling a function ... the line of code where it's done is "paused" until the vbModal form is...
  12. Re: Trying to create a sub based on form names

    Sub RemCtrlFocus(frm As Form, ByVal LoadUnload As String)
    Dim ctl As Control
    For Each ctl In frm.Controls
    If TypeOf ctl Is CommandButton Or TypeOf ctl Is CheckBox Then

    ...
  13. Re: [RESOLVED] Open with OLE from VB6 Shell (or ShellExecute)

    Yeah, I probably should have said DDE.
  14. Replies
    6
    Views
    229

    Re: Conversion from pixels to user units

    Yeah, you're right. I realized it needed that after I made my statement. :p
  15. Replies
    6
    Views
    229

    Re: Conversion from pixels to user units

    Wouldn't it be vbUser, and not vbPixels? If I read his OP correctly.




    Length = picbox.ScaleX(LengthInPixels, vbPixels, vbUser)
  16. Re: [RESOLVED] Open with OLE from VB6 Shell (or ShellExecute)

    Ok, fixed everything.

    Unless I specify vbNormalFocus when this little utility program opens, it crashes. I've got the source code to it, but it's all in C# (.cs extensions on source code), and...
  17. Re: Open with OLE from VB6 Shell (or ShellExecute)

    I'm going to close this thread again. I've got some other problem that's giving me a headache, maybe some failing hardware. And this might be all my problems. So, I've got to sort that out first.
  18. Re: Open with OLE from VB6 Shell (or ShellExecute)

    Well, I figured out how to make the "Open with" dialog come up. That's a partial solution, but not exactly what I was after.

    To get an "Open with" to come up from VB6, I did the following:

    ...
  19. Re: [RESOLVED] Open with OLE from VB6 Shell (or ShellExecute)

    And just for info, it's just one of those "Unhandled exception has occurred..." messages that come out of C++/C# type applications.

    If I do a "Open with", everything works just fine.
  20. Re: [RESOLVED] Open with OLE from VB6 Shell (or ShellExecute)

    Dang, I spoke too soon. It's still not working. I'll keep messing with it though.
  21. Re: [RESOLVED] Open with OLE from VB6 Shell (or ShellExecute)

    I got it.

    It took a registry hack to do it, but it's now working.

    I went into the registry and found this other program, and added an "Edit" option in addition to the "Open" option (just...
  22. [RESOLVED] Open with OLE from VB6 Shell (or ShellExecute)

    Ok, I've done this before but I've forgotten how.

    First, let me outline my situation.

    I've got a particular filetype that I often open with different applications (including a couple of...
  23. Replies
    5
    Views
    181

    Re: Make CommonDialog filename non-editable

    You might take a look at LaVolpe's CommonDialog stuff.

    Not sure if it'll do what you want out-of-the-box, but he has deconstructed the common dialog stuff rather well. And I have used his work to...
  24. Re: [RESOLVED] convert .png image to gif or .jpg, via vb6 code?

    Yeah, I've used Dil's PicSave procedure, and it works quite well. It does use the GDI+, which is a very good way to get this done within VB6. There might be other ways, but why not let Microsoft do...
  25. Replies
    6
    Views
    377

    Re: LOOPING dir and sub dir

    Best way to do this is to use recursion. Or better yet, just search for some of the options that enumerate all folders/files and sub-folders. There are some options in the CodeBank which work quite...
  26. Re: VB6 To Add a record I get Type mismatch error 2147352571

    Just looking at it, my first thoughts are:

    Is the RecordSet actually open, and open in a way that allows adding new records?

    What is the actual type of the first field in your recordset? ...
  27. Replies
    8
    Views
    511

    Re: Simple FFT module

    Doesn't VB6 serve up 80-bits (and then round upon return) to the FPU for floating point operations, regardless of Single or Double? If this is the case, then I doubt Single vs Double makes much...
  28. Replies
    26
    Views
    1,165

    Re: Redirect where Debug.Print goes.

    Here's actually my idea/usage. I've got this little PersistentDebugPrint program so that I can survive IDE crashes as well as get much more in the output window before it scrolls off the top. The...
  29. Replies
    26
    Views
    1,165

    Re: Redirect where Debug.Print goes.

    This is amazing. I've seen The Trick do that memory searching of a library before. And, if I wasn't out camping, I was hoping to use his work and do that myself with the VB6.DLL library. But he...
  30. Re: Is there a function to return that code running in p-code inside IDE

    That must somehow be the key to what he's talking about. But what does "from side of machine code" mean???

    How is this machine code executed? If it's executed through the VB6 code (either IDE or...
  31. Replies
    26
    Views
    1,165

    Re: Redirect where Debug.Print goes.

    Hi Eduardo,

    Hmm, did you just open the VBA6.DLL in a hex editor and search for "Debug"? If that's all it is, I can certainly do that.
  32. Re: Is there a function to return that code running in p-code inside IDE

    You see? That makes no sense. As stated above by dz32, ALL VB6 code is running as p-code when running in the IDE. There is no machine code (which is what I think you mean by "compiled" code).
    ...
  33. Re: Is there a function to return that code running in p-code inside IDE

    I don't think any of us know what that means. Are you talking about the "Compile On Demand" option under settings? I suppose, when using subclassing (or other callbacks), that could cause some...
  34. Re: Calculate leftover height of the form's client area

    Just be sure to keep your units straight. If you keep it all in twips, you'll be fine.
  35. Re: ARRAY of label and cursor mouse move

    Probably need to pass the Index (and maybe other arguments) to ExecuteMyCode, but yeah. Also, too bad we can't do declare-assignment combos like that. :)
  36. Re: [vb6] Getting AddressOf for VB Class/Object Modules

    You're actually correct. However, to actually make any use of a Class-AddressOf, you'd need to use a thunk because of all the (under the hood) differences in the way a class procedures works as...
  37. Re: [vb6] Getting AddressOf for VB Class/Object Modules

    64-bit? You mean in the VBA of some MS-Office file?

    I doubt very seriously if you'll ever get it to work. Three reasons come to mind immediately: 1) there's a thunk (i.e., machine code), and...
  38. Re: [RESOLVED] What is the advantage or disadvantage

    Good test baka. I thought that was the case, but that's a pretty good confirmation that all local DIMs are performed prior to executing the procedure (probably when it's initially entered). And...
  39. Replies
    27
    Views
    1,257

    Re: Immediate Window ... a weird animal

    Sounds like y'all might be making some progress. As the title states, that Debug Window is a weird animal. I really think it all has to do with the fact that it's a full interpreter (and not just a...
  40. Re: What is the advantage or disadvantage

    You know what? Maybe we should continue this discussion, and maybe it does make a difference. In the IDE, it doesn't treat a local Dim statement as a runtime statement, but it does have a runtime...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width