dcsimg

Search:

Type: Posts; User: Magic Ink

Page 1 of 13 1 2 3 4

Search: Search took 0.26 seconds.

  1. Replies
    10
    Views
    362

    Re: MultiThreading a LOOP

    You are probably wanting your single app to truly multithread multiple tasks specified within it however if you have a bunch of tasks specified in multiple batch files or other programs you can run...
  2. Replies
    17
    Views
    504

    Re: Run-Time Error running .exe

    double post
  3. Replies
    17
    Views
    504

    Re: Run-Time Error running .exe

    >the app.path is the path where vb6.exe is located when in IDE
    No that is only so in a new project which has not been saved yet. Unless of course you save your projects down there in C:\Program...
  4. Re: How To let DropDown List has mouse vertical scroll

    >Any way to get the hWnd of the dropped down surface?
    Not a solution but a sniff of where to look at good old http://vbnet.mvps.org/index.html?code/comboapi/combohwnd95.htm
  5. Replies
    7
    Views
    514

    Re: Clipboard Comp-Comp

    Did you consider using Windows Remote Desktop? That effectively allows you to put both desktops onto one desktop, and copy/ paste between them.
  6. Thread: Excel to pdf

    by Magic Ink
    Replies
    9
    Views
    485

    Re: Excel to pdf

    Excel - Developer menu/ Ribbon* - Click 'Record Macro'
    Manually carry out the actions required
    When done, Drop the Developer menu/ Ribbon again - Click 'Stop Recording' - Click 'Macros' (the Macros...
  7. Thread: Excel to pdf

    by Magic Ink
    Replies
    9
    Views
    485

    Re: Excel to pdf

    Excel's Macro Recorder is your friend. Have you tried it yet?
  8. Re: I want to share this with you all: FIND LOCATION LINE NUMBER WHERE APP CRASHES

    Dupe post
  9. Re: I want to share this with you all: FIND LOCATION LINE NUMBER WHERE APP CRASHES

    If you use Erl as proposed consider that you do not have to number every line in your code. If an error occurs on a line without a number it will report the number of the first line above it which is...
  10. Re: Software requires elevation on one computer but not normally

    dupe post
  11. Re: Software requires elevation on one computer but not normally

    Ref. paragraph 1 in dils post

    'Hard to say why this would occur on one PC and not another though.'

    Best check this out though...
    What is the name of the exe in question? If it includes the...
  12. Re: [RESOLVED] Path to Acrobat Reader from Registry?

    I don't see the FindExecutable API mentioned in the posts above, it may be worth a look at too.
  13. Replies
    10
    Views
    787

    Re: Run CMD and wait

    It looks like the old ShellandWait routine pointed to above by dill that most of us have a version of in our toolboxes. eg.


    Sub ShellAndWait(sAppPath$, Optional iWindowStyle As VbAppWinStyle =...
  14. Replies
    15
    Views
    1,977

    Re: Dragging an outlook email to my VB6 app

    Good.
  15. Re: [RESOLVED] Printer Page Setup Issue on Win 10

    http://support.microsoft.com/default...b;en-us;322710 whoops that's another dead link now! MSDN have been weeding again...
  16. Re: [RESOLVED] Printer Page Setup Issue on Win 10

    Sounds like you are using an API generated Page Setup Dialog of which I have no experience. I personally use the Microsoft VB Printer Dialog VbPrnDlg.dll ref....
  17. Re: Printer Page Setup Issue on Win 10

    Have done no testing but wonder if Regional settings 'Measurement system' settings makes a difference. Alternatives here on my Win 10 are Metric and US, I'm in the UK and the default setting is...
  18. Replies
    8
    Views
    1,923

    Re: VB6 - Multiline Textbox Printer

    The DrawText API may be of interest, it allows placement and measurement of text within specified margins and copes with TrueType fonts.

    Example of use which may give you some ideas;


    Private...
  19. Replies
    6
    Views
    737

    Re: Reading ODBC Reg Entries

    https://blogs.technet.microsoft.com/heyscriptingguy/2005/07/07/how-can-i-get-a-list-of-the-odbc-drivers-that-are-installed-on-a-computer/
    ...including the comments below it may be of interest.
  20. Replies
    16
    Views
    1,899

    Re: Accessing Thunderbird functions

    > It seems a form is required because the controls need to go some where.
    You may be able to avoid having the Form and the MAPI Controls by creating a Project reference to MSMAPI32.OCX and then...
  21. Re: MSCAL.OCX does not want to register even with run as administrator

    http://www.vbforums.com/showthread.php?657911-VB6-MSCAL-OCX-Replacement-quot-Kal-quot
  22. Replies
    58
    Views
    1,958

    Re: [RESOLVED] Asc(Mid vs StrPtr+GetMem1

    1. Baka - ref post #32, after all this it would be nice if you could publish your final version!

    2. I wonder a little how timings are being arrived at. Are we supposed to just consider the speed...
  23. Replies
    58
    Views
    1,958

    Re: Asc(Mid vs StrPtr+GetMem1

    >bb = SomeString

    Ref post #9
  24. Replies
    58
    Views
    1,958

    Re: Asc(Mid vs StrPtr+GetMem1

    Dex
    > Why the redim? it's a bit redundant.

    Yep! Thanks...
  25. Replies
    58
    Views
    1,958

    Re: Asc(Mid vs StrPtr+GetMem1

    For j = 1 To repeats
    Dim barray() As Byte
    ReDim barray(0 To Len(txt) * 2)
    barray = txt
    For i = 0 To 2 * (Len(txt) - 1) Step 2
    c = barray(i)
    ...
  26. Replies
    3
    Views
    317

    Re: Screen size on secondary monitor

    This can be handy just pop it into a module;



    Option Explicit

    Private Type RECT
    Left As Long
    Top As Long
    Right As Long
  27. Replies
    3
    Views
    589

    Re: Fast UNC check

    Not an FSO solution but ...
    http://www.vbforums.com/showthread.php?739915-check-if-drive-is-in-disconnected-state&p=4537505#post4537505
    may be of interest
  28. Re: ole drag drop and problem with unicode charachters or load image with unicode

    FileName$ = GetDosPath(data.files(1))
    ...perhaps
  29. Re: ole drag drop and problem with unicode charachters or load image with unicode

    Did you try squirting data.files(1) into George's GetDosPath Function yet?
    Just a suggestion I'm not testing here.
  30. Replies
    46
    Views
    5,333

    Re: Round Function

    So when the numbers get long (the significant figures in a Double approach 13) the going gets tough for even the best numeric methods. An alternative can be to use strings and hammer them into shape...
  31. Replies
    46
    Views
    5,333

    Re: Round Function

    >I'll welcome any anomalous numbers that anyone can come up with
    Sorry to oblige...



    Round5sUp Round17
    (1)0.85 rounded...
  32. Replies
    46
    Views
    5,333

    Re: Round Function

    >Round17 is far better
    And can be made to go a little faster if you cache the PowersOfTen in an array like we've done above; albeit it only makes much difference if nPlaces is changing often because...
  33. Replies
    46
    Views
    5,333

    Re: Round Function

    Using the random numbers produced in your post #38 I'm getting up to 50 results per 1000 in which the results returned by MyRound and Round17 differ, the latter is consistently correct. Here are some...
  34. Replies
    46
    Views
    5,333

    Re: Round Function

    I do wonder if you would be better off taking a much tried and tested Double rounding routine from VbSpeed and converting the returned value to the Type you require as in;


    Function RoundV(n As...
  35. Replies
    46
    Views
    5,333

    Re: Round Function

    VarType seems faster for all;

    Single
    0.222638049097483 (1)
    0.115567907197295 (2)

    Decimal
    0.220177691210716 (1)
    0.115145042349533 (2)
  36. Replies
    46
    Views
    5,333

    Re: Round Function

    Done already;
    0.222302572408274 (GetMem2)
    0.115390198391647 (VarType)

    10,000,000 iterations on x where x is a Variant = CDbl(1.2345). Using QueryPerformanceCounter etc.
  37. Replies
    46
    Views
    5,333

    Re: Round Function

    ... and why use GetMem, VarType seems quicker here.
  38. Replies
    46
    Views
    5,333

    Re: Round Function

    Looks good except for this quirk when the correct number of 1.235 is returned but ...

    ?GeorgeRound3(cdbl(1.2345),3)
    1.235
    ?TypeName(GeorgeRound3(cdbl(1.2345),3))
    Double...
  39. Replies
    46
    Views
    5,333

    Re: Round Function

    Ok George. Your last two posts mention dividing by a Double, I am dividing by a Decimal which appears to be required to get reliably good numbers returned, albeit they are Decimals, not Doubles....
  40. Replies
    46
    Views
    5,333

    Re: Round Function

    Sorry for my oversight on the type returned, but pleased you found it faster.

    This one is a little slower of course (unless we pass a Decimal);



    Static Function GeorgeRound2(ByVal x As...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width