Search Results - VBForums

Search:

Type: Posts; User: dilettante

Page 1 of 13 1 2 3 4

Search: Search took 0.17 seconds.

  1. Re: How do I put global constants in my ActiveX DLL?

    You have to use one of the Microsoft IDL compilers or possibly a 3rd party compiler.

    No, regsvr32.exe does not deal with typelibs. You might consider VB Type Library Registration Utility but be...
  2. Replies
    2
    Views
    79

    Re: Clipping a shape in a printout

    Have you tried using a clipping region on the Printer's DC? Something like this?


    Option Explicit

    Private Sub cmdPrint_Click()
    Form2.Show vbModal, Me
    If Form2.Cancelled Then Exit...
  3. Re: How do I put global constants in my ActiveX DLL?

    Since there is no code involved you only need a typelib, not a DLL. There are tons of those around already, but you could always compile your own.

    However there often are conflicts because things...
  4. Re: How do I put global constants in my ActiveX DLL?

    Yes, I think was listed among the differences between MIDL.EXE and MKTYPLIB.EXE somewhere on MSDN. But again Microsoft must have had their reasons, and considering how much time has passed with no...
  5. Re: How do I put global constants in my ActiveX DLL?

    And yes, I tried it:


    Private Sub Main()
    MsgBox Pi
    End Sub

    Displays:

    1.70292527903666E-312
  6. Re: How do I put global constants in my ActiveX DLL?

    What you seem to want is something like the ability to "inject" named constant values into the DLL's typelib, e.g.:


    [
    helpstring("Global constants.")
    ]
    module Global
    ...
  7. Replies
    3
    Views
    109

    Re: Stop Windows 8.1 sharing my settings

    When you use "Microsoft accounts" you risk All your base are belong to Microsoft syndrome. This is just one of the many, many things it can do to you.

    However the question How can I completely...
  8. Re: Count and Sum using SQL (MS Access and ADO)

    Maybe just use a subquery, e.g.:


    With Connection.Execute("SELECT COUNT(*) FROM " _
    & "(SELECT DISTINCT [Money] FROM [Items])", , _
    ...
  9. Re: How do I put global constants in my ActiveX DLL?

    Wrong. They are enums:


    // Generated .IDL file (by the OLE/COM Object Viewer)
    //
    // typelib filename: Junky.dll

    [
    uuid(31705344-443D-4D6E-BDEC-82D06EF61EFD),
    version(1.0),
  10. Re: How do I put global constants in my ActiveX DLL?

    It can occasionally be annoying but I think it was meant as a "feature" not a bug, i.e. it was never implemented intentionally to prevent abuse.

    The documentation addresses this directly:


    ...
  11. Replies
    276
    Views
    15,149

    Re: What if there was a NEW vb6

    It isn't a question of VB vs. VFred at all.

    .Net has been a slow strangulation and Microsoft is now desperately treading water to remain relevant.


    The most popular US end-user operating...
  12. Replies
    20
    Views
    445

    Re: LoadLibrary Issues

    You might find the original "wizard-style" MMM easier for casual use.

    While it hasn't been updated in a very long time, it still works and the complete package with source and a precompiled...
  13. Replies
    8
    Views
    173

    Re: About electronics...

    Nobody can give you this because there isn't any standard USB device supported in Windows for "LED blinking."

    You need to obtain a device and its SDK. The SDK has the necessary drivers,...
  14. Replies
    276
    Views
    15,149

    Re: What if there was a NEW vb6

    I've been staying out of this since I too don't believe we'll ever see a native-code successor to VB6 from Microsoft. There are hundreds of reasons for them not to do it and none that they care...
  15. Replies
    8
    Views
    173

    Re: About electronics...

    Arduinos are small computers and won't do a thing without a program loaded. Once you have that done the program would control the LEDs. There isn't any role for VB6 there at all unless you want to...
  16. Replies
    8
    Views
    173

    Re: About electronics...

    USB is not a "dumb I/O" device, but a device bus you connect devices to. And the devices have to be at least smart enough to implement USB protocols.

    If you really want to play with this you will...
  17. Replies
    19
    Views
    292

    Re: The ip thread...

    Maggie Official TRAILER (2015) Arnold Schwarzenegger Zombie Movie HD

    Has he made a Kung Fu Flick yet that I missed?
  18. Replies
    14
    Views
    385

    Re: [RESOLVED] hIcon to hBitmap

    Not being Captain GDI here, I have to wonder how many "modern" GDI code snippets floating around these days will fall over unless the display adapter currently has 32-bit color set. I see lots of...
  19. Replies
    20
    Views
    445

    Re: LoadLibrary Issues

    Defending youself against this form of DLL Hell is one of the biggest benefits of reg-free COM. Of course the downside is once you use isolated copies of COM libraries you must service them yourself...
  20. Replies
    20
    Views
    445

    Re: LoadLibrary Issues

    Usually how this goes is somebody does this with some widely shared library, say for example MSComm32.ocx though it could be almost anything.

    They plop this onto some unsuspecting victim's PC,...
  21. Replies
    9
    Views
    249

    Re: read file lineby line from line 457Th

    True enough, if you have "written down" the base-1 character (byte since we're talking ANSI) address somewhere you can just open the file and Seek before reading.

    And you can use a simple to...
  22. Replies
    20
    Views
    445

    Re: LoadLibrary Issues

    If you want portability then you must use reg-free COM.

    Your approach can break lots of other applications. Do not do this. At all.

    I am getting very tired of having to fix users' machines...
  23. Re: Resolving overflow from integer variables

    The code looks so weird as to suggest some class assignment gone wrong. I'm sure if we saw what the homework problem said we might provide direction, but generally this isn't a "free homework done...
  24. Replies
    9
    Views
    249

    Re: read file lineby line from line 457Th

    I find it amazing that such an ultra-noob question has been crossposted to so many VB6 forum sites.

    Are you sure you aren't really using VB.Net?
  25. Replies
    16
    Views
    279

    Re: Warm welcome to my recruit

    Ahh, I thought this thread was going to be about somebody who installed some "IoT" device and is now having all kinds of personal data harvested by Big Brother Corporation.
  26. Re: Count and Sum using SQL (MS Access and ADO)

    Yes, the values are normally returned as a single-row Recordset:


    Private Sub GetCountAndSum()
    With Connection.Execute("SELECT COUNT(*), SUM([Money]) FROM [Items]", , _
    ...
  27. Replies
    7
    Views
    364

    Re: UEFI requirement for Windows 10?

    For most users it probably only means your hardware must come with signed drivers.

    However as pointed out in Windows 10 to make the Secure Boot alt-OS lock out a reality it may prevent booting...
  28. Re: Windows 7, 32 bit - MSCOMCTL.OCX "could not be loaded"

    Well dead horses can only be beaten so much before you hardly have dog food left.

    These post-XP topics were throughly documented for programmers back in 2006 in web pages, multiple downloadable...
  29. Re: Windows 7, 32 bit - MSCOMCTL.OCX "could not be loaded"

    Don't gravedig old threads.

    Your MSComm32.ocx problem is unrelated to topic of this thread anyway.


    This is not a free OCX. If your version and edition of Visual Studio included a license for...
  30. Replies
    20
    Views
    445

    Re: LoadLibrary Issues

    Don't do this.

    Registering an OCX or DLL is "publishing" it for all clients on the machine. Proper registration involves putting the library into the proper folder (almost never going to be some...
  31. Replies
    7
    Views
    364

    Re: UEFI requirement for Windows 10?

    Why not?

    The only actual advantage of 64-bit Windows outside of the server room is to sell you more hardware, i.e. keep PC prices high. Very little that a desktop user does gets any benefit from...
  32. Replies
    19
    Views
    292

    Re: The ip thread...

    One of the dumbest I've watched: After the Day (trailer).
  33. Replies
    19
    Views
    292

    Re: The ip thread...

    WW Z (trailer) is probably the only one that comes close. I was extremely skeptical but it was pretty solid... as such things go.
  34. Replies
    28
    Views
    813

    Re: Windows 10 and vbNewLine

    One source that is generally fairly reliable is Optimize string handling in VB6 - Part I:



    I can't say whether this (a.) used to be true perhaps in VB5, (b.) used to be true perhaps in early...
  35. Replies
    2
    Views
    222

    Re: package and deployment problem

    The return code indicates a permission error. I suspect the user context that your setup is running in does not have write access to the HKLM hive.

    On versions of Windows NT prior to Vista such...
  36. Replies
    28
    Views
    813

    Re: Windows 10 and vbNewLine

    That still leaves the question of performance differences between use of vbCrLf vs. vbNewLine. It can't all be imagination though since it is quite widely cited as real.

    But of course things...
  37. Replies
    5
    Views
    196

    Re: vb error message

    The Format$ function (like its retarded twin Format) turns a non-text expression into formatted text, so why on Earth would anyone pass the contents of a TextBox to it anyway?

    Time to stop looking...
  38. Replies
    43
    Views
    905

    Re: String Out Of Space ???

    This approaches the IDE limit without /LARGEADDRESSAWARE, but works just fine for me:


    Option Explicit

    Private Sub Main()
    Const SIZE As String = "125,000,000" 'Just to show thousands...
  39. Re: Russian text is broken in Label.Caption

    There was a kit at one time that included localized satellite DLLs for the stock DLLs and OCXs, containing localized strings. In your program you'd use String Resources or your own satellite DLLs in...
  40. Replies
    3
    Views
    181

    Re: Maddening OLE error.....

    Almost everything listed as "usual fixes" looks wrong where not downright hazardous. And you are looking at things you clearly do not understand.

    You've had your error pointed out to you:

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.