dcsimg

Search:

Type: Posts; User: Schmidt

Page 1 of 13 1 2 3 4

Search: Search took 0.10 seconds.

  1. Re: VB6 - QUESTION - Is it possible to add tooltiptext to individual items in a treev

    Yep, a tendency to "choose the more complicated code over the easier one" is certainly detectable in the forum...
    (along the lines of: "it can't be any good, if there's not a ton of APIs,...
  2. Re: Has anyone had any success implementing IDispatch / IDispatchEx?

    Since Properties are already "Methods" the Implementation of a "true Function" is of course equally possible:
    Why not make a fast test with the Demo 7-Code:

    At the top of...
  3. Re: Has anyone had any success implementing IDispatch / IDispatchEx?

    Well, and for those who want to add such stuff in a "super-easy" way, there's always IActiveScripting-interfaces,
    which would then allow even simple Function-adding in a dynamic fashion.

    Into an...
  4. Re: Has anyone had any success implementing IDispatch / IDispatchEx?

    I thought, that was exactly what example-folder 7 (Dynamic usage of vbIDispatch) of the "vbFriendlyInterfaces"-Demo contains.

    Here the complete Code of that "Dyn-Props-Demo" as it exists in...
  5. Replies
    24
    Views
    931

    Re: Implementation of RPC server side code

    JFYI ...
    Since the two clientside Helper-Functions (in modRemoteDB.bas):
    - AddNewRecordToTable ... and
    - UpdateRecordInTable
    ... work "single-record-based" with new Fields_Values passed via a...
  6. Replies
    24
    Views
    931

    Re: Implementation of RPC server side code

    The DBEngine does not give many infos in case of a failing UpdateBatch (meaning, that the Info you got, was the correct serverside error).
    For UpdateBatch to work properly, you will have to take...
  7. Replies
    29
    Views
    865

    Re: AddressOf Function in a Class Module

    You mean, to be able to ship such an "entirely VBA-based solution" in a single *.xlsm in the end?
    If yes, where is the problem with my suggestion, to split the Timer-implementation up - into a...
  8. Replies
    24
    Views
    931

    Re: Implementation of RPC server side code

    Right, no apostrophes are needed... also for Like expressions, which should be written:
    - in the constant SQL-String as: "Select * From Table Where FieldName Like ?"
    - and the SearchParam you...
  9. Replies
    21
    Views
    936

    Re: Display dpi scaling problem

    No.
    Seems there's still a fundamental misunderstanding on your end - how all that modern DPI-awareness stuff works,
    because if VB6 (the VB6-runtime) would do the scaling, then the vbRuntime would...
  10. Replies
    24
    Views
    931

    Re: Implementation of RPC server side code

    Ok, now with that Err.Description (Type mismatch) there's a clearer Picture, what happens...

    And what happens is, that you have (in all likelihood) a DAO-reference somewhere in your Test-Project...
  11. Replies
    21
    Views
    936

    Re: Display dpi scaling problem

    Of course - the problem of the OP happens, because the position and size of PictureBoxes and TextBoxes was changed by Windows.
    (and Windows does not care, nor does it know about vbTwips).

    And...
  12. Replies
    21
    Views
    936

    Re: Display dpi scaling problem

    I'd think "unlikely" - because:
    When Windows does DPI-related adjustment as the OP described them -
    these often happen (when the "cheap, blurry scaling of the whole Form-ClientArea" is not in...
  13. Replies
    29
    Views
    865

    Re: AddressOf Function in a Class Module

    IMO, such stuff (for VB6/VBA) belongs into a combination of a Class and a Module
    (it's only a handful of lines in each, much easier portable to e.g. 64Bit)
    Then ideally compiled into a COM-Dll in...
  14. Replies
    24
    Views
    931

    Re: Implementation of RPC server side code

    That cannot be, because the DoRPC-routine is written in a way, that (even in case of an error) -
    it will always return an ADO-Recordset to you (either one which contains a single record with the...
  15. Replies
    24
    Views
    931

    Re: Implementation of RPC server side code

    As said - don't look too long (whilst in breakpoints) at the http-responses.

    The mechanism does real requests - so, try not to disturb the "flow" of the http-Response-Bytestream with breakpoints...
  16. Replies
    24
    Views
    931

    Re: Implementation of RPC server side code

    If the only breakpoint in the whole debug-group is on:
    End Function ... (of the clientside modRemoteDB GetRs-routine)

    ...and you still get an empty Rs, then there's something wrong in the...
  17. Replies
    24
    Views
    931

    Re: Implementation of RPC server side code

    Public Sub GetRsByQueryID()
    'Dim Cnn As ADODB.Connection, rsADO As ADODB.Recordset, SQL As String, i As Integer, RsGetRecordset As New ADODB.Recordset, QueryID As String
    'QueryID = RsIn(1)
    'SQL =...
  18. Replies
    24
    Views
    931

    Re: Implementation of RPC server side code

    Please show the complete Handler-Routine you are using.

    Olaf
  19. Replies
    84
    Views
    3,328

    Re: SQL server connection string

    Before you start with real-world implementations -
    please add the following Helper *.bas-Module into your clientside Form-Project (and not the Server-Dll-Project within the Debug-Group).

    Name it...
  20. Replies
    84
    Views
    3,328

    Re: SQL server connection string

    Ok, code-handout #2 ...

    It's the only two routines you need to add to the serverside Code in cHandler.cls, to be able to cover any CRUD-scenario
    (for almost any DBEngine which is addressable over...
  21. Replies
    84
    Views
    3,328

    Re: SQL server connection string

    Peekay, the "problem I have" in this discussion, is that you don't read properly - you do not listen -
    or if you do - then you apparently don't understand even the simplest things with regards to...
  22. Replies
    10
    Views
    573

    Re: MS SQL Server date and time

    Thanks for digging out these old VMs... ;)

    I was getting the same results (Dbl-Fraction unchanged by the conversion roundtrip)
    earlier on XP, Win8.1 and Win10 - so I think we have complete...
  23. Replies
    10
    Views
    573

    Re: MS SQL Server date and time

    Was this really the case some time ago?



    I've just put this to the test - and cannot reproduce any rounding to "half-seconds" or anything -
    Which means to me:
    - that a Date-Type really *is*...
  24. Replies
    7
    Views
    382

    Re: still on API google map

    This was answered already (incl. working code-examples):
    http://www.vbforums.com/showthread.php?875265-google-maps-api-DIVING-DISTANCE-not-work!&p=5391911&viewfull=1#post5391911

    Olaf
  25. Re: Read .Dat file to a table list in List Box.

    Just took a look - and here's what I've found, regarding a proper definition of the record-struct, which was apparently used some time ago:
    - all Fields which had a GUI-representation are there
    -...
  26. Replies
    8
    Views
    579

    Re: Anything wrong with this code

    LOL - reminds me of Bubba in Forrest Gump, when he explains "about shrimps"... :)
    https://www.youtube.com/watch?v=09KL2HUXE6Q

    Olaf
  27. Replies
    20
    Views
    884

    Re: DRAW line between two point

    The correct ScaleValues depend on the underlying "Italy-Bitmap" you've choosen -
    and also whether you've made the PicBox smaller than the original Bitmap it contains.

    For the Zip-Project you've...
  28. Re: Get Distance from Bottom of Control to Bottom of Form

    Yes, MapWindowPoints is quite nice in that regard... (able to "relate across hWnd-hierarchies" all in a single call).

    Olaf
  29. Replies
    1
    Views
    341

    Re: google maps api DIVING DISTANCE not work!

    Good idea, to remove the API-Key again from your prior post... (the other parts of your opener-post could have been left standing though...)

    From the two address-inputs you gave - the Distance-API...
  30. Replies
    19
    Views
    797

    Re: [RESOLVED] Trying to implement IShellItem

    Just a guess, but I'd think, it happened due to the way Lavolpe implemented the HResult-Error-Handling in the vTbl-Call-HelperRoutine (when DispCallFunc returns).


    What will happen, when you pass...
  31. Replies
    19
    Views
    797

    Re: Trying to implement IShellItem

    Well - "pure runtime-coding" is generally a good idea - because the purpose of a runtime-lib is not only to provide "more encapsulated functionality",
    but to decouple from the underlying...
  32. Re: Get Distance from Bottom of Control to Bottom of Form

    When the Ctl is on the Form itself, then it's simply: Dist = ScaleHeight - Ctl.Top - Ctl.Height

    In all other cases, I'd use the API probably (when the Ctl has a hWnd-Property).

    Olaf
  33. Re: Label hides behind other controls. ZOrder doesn't bring it to the front.

    What about using (instead of the hWnd-based VB.PictureBoxes) just another Control-Type -
    which is in the same (windowless) category as the VB.Label-Ctl?

    I'm talking about VB.Image(Boxes), where...
  34. Re: Cannot create vbRichClient object in 64bit-Excel

    An alternative to the approach trick has suggested (in case you want to write and later provide that surrogate-process-executable yourself),
    is a normal VB6-ActiveX-Exe with only 3 lines of code in...
  35. Replies
    19
    Views
    797

    Re: Trying to implement IShellItem

    That's basically true - but "only half-way" ...
    VB performes an Object-cast (a QueryInterface-call on the Objects IUnknown-Interface) under two conditions:
    - when the Object-Types differ
    - when...
  36. Replies
    19
    Views
    797

    Re: Trying to implement IShellItem

    You need to get your Offsets right - the way I do it (to make less mistakes, is shown below:
    - using an EnumDef (which defines the vtable-entries as "zerobased Index-Entries with a friendly name")...
  37. Re: Is there a maximum DLL path length for Delcare statement?

    That's what I do (usually via a SubFolder named \Bin\ - below the App-Path) ...
    Then it becomes unnecessary, to make any distinctions between IDE-Mode and Exe-Mode...

    The LoadLibrary-call is...
  38. Re: The 1001 questions about vbRichClient5 (2019-05-26)

    Well, that's why so called PolyFills (just google the term) exists, which beam the js-Versions of older Browsers into the "new age"...

    Please make no mistake - even the newer (and quite fast)...
  39. Replies
    9
    Views
    601

    Re: Create inMemory Database from sql File

    Well, in that case - (because data is involved - and to achieve better 1:1 field-type-translations) I would:
    - first ensure an installation of a local MS-SQLServer-instance (e.g. a local...
  40. Re: Using HTTP API in VBA to get value from website

    I don't know - in the prior example you've posted (where it was about posting an SMS-message with params in the URL- and in the Post-Body) -
    it definitely was necessary, to ensure proper...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width