Search Results - VBForums

Search:

Type: Posts; User: Jonney

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds; generated 51 minute(s) ago.

  1. Thread: wanted: PSC CDs

    by Jonney
    Replies
    23
    Views
    738

    Re: wanted: PSC CDs

    Nothing related to VB6. Just answer Karl77's question. I used this software (shareware version) for many years. It helps me store VB6 stuff.
    I remember there's a CodeLibrary written in VB6 at 10...
  2. Thread: wanted: PSC CDs

    by Jonney
    Replies
    23
    Views
    738

    Re: wanted: PSC CDs

    I suggest a software called Library .NET Pro (http://fishcodelib.com/).
  3. Replies
    12
    Views
    346

    Re: [RESOLVED] JAVA is faster than VB6?

    Yes, I saw 30% speed improvement.

    Thank you,Sir. @Schmidt;@interactii
  4. Replies
    12
    Views
    346

    Re: [RESOLVED] JAVA is faster than VB6?

    Good catch!
    The loop got reduction from 13511671 and 18483722 to 2040329 and 2824132. almost 10 times! Now the compiled speed reduce to 150ms,IDE goes down to 1.4 sec. (But for JAVA, the speed...
  5. Replies
    12
    Views
    346

    Re: [RESOLVED] JAVA is faster than VB6?

    Totally agreed. There's lots of common techniques for VB6,which also works for JAVA and other language, and some specific optimizations for VB6.

    I will test JAVA with replacement of condition "?"...
  6. Replies
    12
    Views
    346

    Re: JAVA is faster than VB6?

    After vb compiled, the elapsed time is going down to 1 or 2 sec with you suggested modification. There's big difference in exe and VBIDE.

    After Compiled:
    Using IIF:
    4.8 sec
    Using IF...Else
    ...
  7. Replies
    12
    Views
    346

    Re: JAVA is faster than VB6?

    You are right. With the modification, Now the speed is faster but still much slow than JAVA. The elapsed time is 9.6 sec from 12.6 sec.
  8. Replies
    12
    Views
    346

    [RESOLVED] JAVA is faster than VB6?

    I have the same code in JAVA and VB6. In nextSpace and nextBar loop, they are looping 13511671 and 18483722 times in both JAVA and VB6 code. Java used 0.4 sec But VB6 took more than 12 sec. I tested...
  9. Thread: wanted: PSC CDs

    by Jonney
    Replies
    23
    Views
    738

    Re: wanted: PSC CDs

    Luckily I have backed up all of your and Carles.P.V. postings on PSC.

    They said storage failure resulted in loss of data.
    1. curious that Google how to deal with those links without resource? In...
  10. Replies
    4
    Views
    252

    Re: AscW returns negative value

    OK, this substitution tested OK to replace AscW for my case:


    Public Function AscU(ByRef Text As String) As Long
    Dim lngChar As Long, lngChar2 As Long, lngLen As Long
    lngLen =...
  11. Replies
    4
    Views
    252

    [RESOLVED] AscW returns negative value

    For some CJK Characters, AscW returns negative value. It's nothing wrong because AscW returns integer, The negative value can add 65536 to convert to UTF-32 (Long Type). But I am not sure whether it...
  12. Re: CommonControls (Replacement of the MS common controls)

    Refer to #659


    NewPrinterName = Mid$(DNAMES.wExtra, _
    DNAMES.wDeviceOffset - DNAMES.wDriverOffset + 1)
    NewPrinterName = VBA.Left$(NewPrinterName, _
    ...
  13. Re: [VB6] Using the new IFileDialog interface for customizable Open/Save (TLB, Vista+

    You are so good at such advance stuff. Could you please make TLB for GDI+,DirectShow,DirectX?
  14. Re: [RESOLVED] PrintDlgEx API failed to return full name of printer

    FYI, For those who visit my thread,VBAccelerator also has comprehensive CommonDialog Class at :...
  15. Re: PrintDlgEx API failed to return full name of printer

    Oh,oh, the full printer name in Krool's Unicode friendly CommonDialog class can be retrieved by:

    NewPrinterName = Mid$(DNAMES.wExtra, _
    DNAMES.wDeviceOffset -...
  16. Replies
    23
    Views
    687

    Re: API calls to receive data in VB5

    You have updated Json to V2.0.
    Please educate me LongPtr and #. My VBIDE shows red color.



    #If Vba7 Then
    'In VB6 these will all be marked in error by the IDE, but the compiler will never...
  17. Re: PrintDlgEx API failed to return full name of printer

    Thank you very much,Sir.
  18. Re: PrintDlgEx API failed to return full name of printer

    I am studying...

    Your code is for PrintDlgW not PrintDlgEx.
    Please add the ShowPrinter and ShowPrinterEx in your classic OpenFile/SaveAsFile class. Thanks.
  19. Re: is there a way to determine if a client \ user has a touch screen?

    This kind of touch screen usually used for Industrial MMI(HMI) such as Wonderware Intouch.
  20. Replies
    6
    Views
    1,915

    Re: [VB6] UPrinter - Unicode Printer Class

    I used your class as a printing controller (OpenPrinter/NewPage/ClosePrinter). Paint is done by outside function.



    Dim oPrintController As PrintController
    Set oPrintController = New...
  21. Re: PrintDlgEx API failed to return full name of printer

    Refer to #10 code, Is it reliable to use GetStrFromPtrW4(lpDevNames + 8 + 18) to retrieve the printer name?
  22. Re: PrintDlgEx API failed to return full name of printer

    "Assume"? those are exact memory address. How you get the 8,18,32,50?
  23. Re: PrintDlgEx API failed to return full name of printer

    First of all, Thank you very much, Sir.
    And, Honestly, Such advanced stuff with memory operation is my weakness. I don't REALLY understand deeply.
    The demo I provided has many testing code, it...
  24. Re: [VB6] Common Dialog Replacement - IFileDialog Vista+ (No TLBs)

    I met a problem from an API Printer dialog. The printer name is truncated into 30 Characters. Any way to create PrintDialogEx via CLASS or TLB to overcome this problem?
  25. Replies
    6
    Views
    1,915

    Re: [VB6] UPrinter - Unicode Printer Class

    Is it possible to call any API to assign the Paper size of hDcPrinter which created by CreateDC API?
  26. Re: PrintDlgEx failed to return full name of my Network printer

    The link is here.

    the local printer name also limit 30 characters from what I tested on Win7.

    .NET C#'s PrinterDialog just work fine for longer printer name. .NET reflector shows the class...
  27. Re: PrintDlgEx failed to return full name of my Network printer

    strComp will be better. But the following loop put UCase$ to check every pinter in printers collection, so it is not root cause.



    If UCase$(ObjPrinter.DeviceName) Like UCase$(NewPrinterName) &...
  28. Re: PrintDlgEx failed to return full name of my Network printer

    I tried to define String type instead of byte, but still cannot retrieve the full name of my Printer.
    The maximum characters are 30 for both of local and network printer.

    I attach a simply demo.
  29. Re: PrintDlgEx failed to return full name of my Network printer

    I verified the max length of the printer name is restricted within 30 characters.

    Refer to my another two screenshots.


    125643


    125645
  30. [RESOLVED] PrintDlgEx API failed to return full name of printer

    I used Krool's OpenPrinterEx function in CommonDialog class. The function failed to return the full name of the chosen printer. The printer name is "\\192.4.4.143\Canon iR2002/2202 UFRII LT(1)"...
  31. Re: CommonControls (Replacement of the MS common controls)

    I used krool's OpenPrinterEx in CommonDialog class.But the printer dialog failed to assign my printer "\\192.4.4.143\Canon iR2002/2202 UFRII LT(1)".I watched the return printer name is limited 30...
  32. Replies
    9
    Views
    512

    Re: Rotate a picturebox?

    Thank Passel!
    Here is GDI+ version of Clock.

    125569

    125571
  33. Replies
    5
    Views
    187

    Re: Display custom control over form borders

    You can subclass WM_MEASUREITEM and WM_DRAWITEM to draw your own. But it is advanced stuff.
  34. Re: VB 6.0 printer count of total page

    I guess you need a function,something like ComputePaginationInfo before doing printing. Many commercial Grid product support customized Header and Footer format such as "Page &p of &n".

    You can go...
  35. Re: [RESOLVED] SetROP2 : Erase Old Resizing Line then Draw new Resizing Line

    Thank you point out the bug.
    I forgot to remove it, I previously call GetDC(0) to use desktop foreground mix mode in DrawResizeLine function.
    The real project draw Margin lines on a MemoryDC then...
  36. Re: SetROP2 : Erase Old Resizing Line then Draw new Resizing Line

    I found the problem:
    The reason is the logic of "If y >= TopMarginInPixels - 2 And y <= TopMarginInPixels + 2 Then". While mouse on the resizing area then mouse down,the Y axis of mouse_Down is...
  37. [RESOLVED] SetROP2 : Erase Old Resizing Line then Draw new Resizing Line

    I draw a dot line on Picturebox so that I can drag the line to move the margins. But very seldom the start (first) line still remains on the screen (look like two lines UpDown). What is going on?
    ...
  38. Replies
    1
    Views
    329

    Risk Using MS Browser OCX

    I heard MS will obsolete IE and go to Spartan, so there's potential risk if we are using MS browser ocx?
  39. Replies
    16
    Views
    554

    Re: read file lineby line from line 457Th

    Good technique! I Couldn't download because I am not the member. Help us attach to VbForums thread of yours.
  40. Re: Postion a form on the middle of the screen right above the task bar?

    Bonnie West always answers on an elegant way. Thanks.
Results 1 to 40 of 499
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width