dcsimg

Search:

Type: Posts; User: qvb6

Page 1 of 12 1 2 3 4

Search: Search took 0.11 seconds.

  1. Re: Best way to install/deploy application built with VS6 and VB6?

    Open the VBP file in Notepad, and copy all lines that begin with Object= or Reference= and post them here.
  2. Replies
    8
    Views
    297

    Re: Reading string from USB device

    Try this code to see what's being sent:



    Private Sub Form_KeyPress(KeyAscii As Integer)
    Debug.Print KeyAscii
    End Sub
  3. Replies
    9
    Views
    295

    Re: Stack and Code Efficiency

    How much is your time worth compared to gaining 0.01% of speed? I would identify the bottlenecks first, then optimize those. In your first example, it's DB interaction. You can use a profiler like...
  4. Replies
    4
    Views
    332

    Re: Compiler switches

    If VB6 had an Inline keyword, then making one strategy to fit all situations would not work. See this C++ FAQ, which applies to any language in general:

    Do inline functions improve performance?
  5. Re: How to correctly ship mscomct2.ocx for Win XP and 10 using NSIS

    Two sources: REDIST.TXT and file list here(Files under "Runtime files supported and shipping in Windows" are included with the OS and should not be shipped, they will probably come with Windows...
  6. Re: How to correctly ship mscomct2.ocx for Win XP and 10 using NSIS

    Windows Installer, but you probably have to update the existing one, which requires a restart before installing your app. https://en.wikipedia.org/wiki/Windows_Installer#Versions
  7. Re: How to correctly ship mscomct2.ocx for Win XP and 10 using NSIS

    You only need to install the ones in bold. Anything else is a bad idea. Windows 2000 to 10 include the VB6 runtime and ADO 2.5+. The one in red is not part of VB6(Probably MS Office), so you need to...
  8. Replies
    41
    Views
    987

    Re: Copy/Paste Images w/Transparency

    Sounds like your friend doesn't know about Inkscape. Youtube has a lot of tutorials.
  9. Replies
    8
    Views
    222

    Re: Keep On Top when Shelled

    I would shell the application with command line option supplying Excel hWnd, it's less code, and it accounts for the possibility that there might be multiple Excel instances running.

    Shell...
  10. Re: How to draw a color wheel (color picker)?

    SetPixel is several magnitudes faster than PSet.
  11. Replies
    7
    Views
    233

    Re: Unexpected Error #440 Automation error

    VB requires BSTR, and you need to unregister/register your OCX. Also, check out SysAllocString() and similar functions to deal with BSTR. Sorry, I can't help you further. You need to post at a C++...
  12. Replies
    12
    Views
    252

    Re: GetSaveFileName

    What OS are you using?
  13. Re: [RESOLVED] Focus the last lines of a Multiline TextBox

    Here is a modified version of my code that looks for the first space, and not a dot:

    Option Explicit

    Private Sub Form_Load()
    Text1.Text = "Line 1 abc" & vbCrLf & _
    "Line...
  14. Re: [RESOLVED] Focus the last lines of a Multiline TextBox

    If you are adding dots to the end of the lines so you could tell when you should insert the cart, then it's not necessary. You can Split with vbCrLf as the delimiter, or use InStrRev with vbCrLf....
  15. Replies
    7
    Views
    233

    Re: Unexpected Error #440 Automation error

    Which data type did you declare in the C side? Post function prototype.
  16. Re: CommonDialog1.Color returns 14361764, what is this ? Hex ? or What is it ?

    The data type of Color property is OLE_COLOR, and you can translate it into RGB by using OleTranslateColor. However, I think the reason the OP is asking this question is because a previous coder...
  17. Re: [RESOLVED] Focus the last lines of a Multiline TextBox

    I think the 64KB limit is for Windows 9x. In Windows NT4/2000+, the limit is lifted. I don't know in VB6 if this was tied to the OS, or VB6 service packs lifted these limits when the OS supports no...
  18. Re: CommonDialog1.Color returns 14361764, what is this ? Hex ? or What is it ?

    From the horse's mouth:

    https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-basic-6/aa227061(v=vs.60)?redirectedfrom=MSDN

    IT's not just RGB values, but could be system color...
  19. Replies
    6
    Views
    316

    Re: Safely remove thickborder on MDI Child?

    Questions:

    1 - Do you set the WindowProc back to the original value before unloading?
    2 - Do you change the parent of some windows by calling SetParent() or similar? If so, do you change the...
  20. Re: Call to DLL function works in compiled VB6, but not in the VB6 IDE

    You have two problems on the C++ side:

    1 - You are using CDecl, not StdCall for SetNotificationProc().
    2 - You haven't disabled name decoration.

    When you use DllExport, you are basically...
  21. Replies
    16
    Views
    469

    Re: DoEvents Alternative Issues

    What Elroy posted is the same code that DoEvents is using, except that DoEvents calls "Sleep 0" afterward, which tells the OS to "relinquish the remainder of its time slice to any other thread of...
  22. Replies
    15
    Views
    425

    Re: Redim causing error only when compiled

    Do you have any calls to CopyMemory/GetMem? If so, can you post examples?
  23. Replies
    15
    Views
    425

    Re: Redim causing error only when compiled

    Components are for OCX files, References are for ActiveX DLL/EXE files. Browsing to an OCX in References is a bad idea, but can be done. Selecting the OCX in both Components and References is a bad...
  24. Replies
    46
    Views
    1,402

    Re: VB6 Form Titlebar icons

    FYI, putting pins on windows has already been done like in the below open source software, but not both pins and screenshots. The later can be done with Alt+PrintScreen shortcut:
    ...
  25. Re: Signal Generator - How to change the Sample Rate from 44.1KHz to 192KHz

    That code sample is not meant to be easily edited or understood. It's using Currency literals to encode 64-Bit values. It does what it was intended to do. To understand what the numbers mean, if you...
  26. Replies
    3
    Views
    298

    Re: Win10 IP Camera Support - Coming?

    I think you can already make a viewer now, without waiting for an update, by using Real Time Streaming Protocol. Two open source software VLC, and iSpy can show video streamed from IP cameras for...
  27. Replies
    14
    Views
    510

    Re: [RESOLVED] Save Email as Draft...do not send

    Off topic, but might be of interest: I use Mozilla Thunderbird, which supports Gmail. No it can't create a draft, but like Firefox, it has lots of Add-ons. I use an Add-on called "Lightning" that...
  28. Replies
    34
    Views
    829

    Re: Double to String performance issue

    I missed the bit about not being human readable, so if you are saving to a file, just use Put statement; which handles UDT's, otherwise, just use CopyMemory to a Byte array.
  29. Replies
    34
    Views
    829

    Re: Double to String performance issue

    Can you use Currency data type instead of Double? If so, a quick test with s = CStr(CurrencyVar) shows that it's 16% faster than Double, and there is a room for improvement since Currency is a 64-Bit...
  30. Replies
    34
    Views
    829

    Re: Double to String performance issue

    Turning it into a Sub made it 85% faster.

    Also, after measuring how long it takes to do divide, subtract Double values, I don't think we could get significant speed improvments. I think the...
  31. Replies
    34
    Views
    829

    Re: Double to String performance issue

    Testing shows it's slower than case 0(Implicit conversion to string).
  32. Replies
    34
    Views
    829

    Re: Double to String performance issue

    Sample based on Krool suggestion:

    Private Declare Function VarBstrFromR8 Lib "oleaut32.dll" (ByVal d As Double, ByVal LCID As Long, ByVal dwFlags As Long, ByVal s As Long) As Long

    Private...
  33. Replies
    14
    Views
    478

    Re: ADO error on Windows 10

    Try unselecting all of these(You can always modify the installation later to include them):

    ADO and RDS
    Microsoft OLE DB SQL Server Provider
    Microsoft OLE DB Oracle Provider
    Microsoft OLE DB...
  34. Replies
    14
    Views
    478

    Re: ADO error on Windows 10

    Did you try the link I posted in post #6? Here is the link again. Right click the Setup EXE and select "Run as Administrator". The 4 DLL's are part of the OS for a long time.
  35. Re: How do I extract data from .NET programs via their hWnd?

    Before you write a single line of code, download Accessibility Insights for Windows from the link below, or any of the other tools from here:
    ...
  36. Re: How to get the coordinates of the api after dragging the form

    GetCursorPos() gives you mouse coordinates at any time.
  37. Re: How do I extract data from .NET programs via their hWnd?

    From what I am reading, .Net apps expose information about their controls, to facilitate testing and automation. See Automating Windows Forms, but it's from 2004.

    Microsoft UI Automation link:
    ...
  38. Re: [RESOLVED] Wrong MDAC Version on Vista Business 32bit

    But ADO 6.3 and later would run code written for ADO 2.8 just fine; without modifications, so your problem is elsewhere. Please create a new thread as your problem is different than the OP, and with...
  39. Replies
    14
    Views
    478

    Re: ADO error on Windows 10

    DataMiser, the OP didn't have VB6 installed, just copied the EXE over at first, then I presume tried to install VB6 to solve the problem, but it seems that the hard disk is corrupted.
  40. Replies
    14
    Views
    478

    Re: ADO error on Windows 10

    The OS protects these files, so you can't replace them. There is nothing wrong with your project or VB, you just have a bad system before you begun. Try dilettante suggestion in post #3.
Results 1 to 40 of 448
Page 1 of 12 1 2 3 4



Featured


Click Here to Expand Forum to Full Width