dcsimg

Search:

Type: Posts; User: LaVolpe

Page 1 of 13 1 2 3 4

Search: Search took 0.20 seconds.

  1. Re: [RESOLVED] PictureBox not displaying module level image if drawn from different s

    Never a good idea to cache an hDC you have no real control over.

    You're welcome
  2. Re: PictureBox not displaying module level image if drawn from different sub (bizarre

    Haven't run your sample project, just reviewed it.

    Ensure m_HDC is valid. A picturebox hDC can be replaced when certain actions are taken, i.e., .Cls, .BackColor changed, etc. Maybe that's the...
  3. Replies
    6
    Views
    127

    Re: Excel File to Resource File

    Within VB's Resource Editor, you can use strings instead of numbers. After adding a resource to the resfile, VB will automatically assign a number. You just double click on the newly added resource...
  4. Replies
    6
    Views
    127

    Re: Excel File to Resource File

    You can load it to your resfile as a "Custom" resource item. Then you can export it to the hard drive as needed

    Dim aData() As Byte
    aData() = LoadResData(101, "Custom") ' or whatever "Custom"...
  5. Replies
    6
    Views
    137

    Re: [RESOLVED] The MSCOMCTL32.OCX Mystery

    It certainly doesn't appear that they are identical, i.e., just renamed.
  6. Replies
    17
    Views
    211

    Re: export listview to textbox

    Oh, have fun with that...

    Then I am going to assume you know how to determine when a listitem becomes checked/unchecked. If it becomes unchecked, sounds like you have to find it in the textbox and...
  7. Replies
    6
    Views
    137

    Re: The MSCOMCTL32.OCX Mystery

    hmm, out of curiosity, what is the creation date of that ocx? Are the file sizes the same?

    Maybe if you open them in the OLE/COM Object Viewer (oleview.exe), more details might become available?
  8. Replies
    6
    Views
    185

    Re: how to get crc from zip

    Computing the crc for a file is a well-established algorithm. You can many examples on this site. While your aware from home, you may want to try this google search: crc file site:vbforums.com
  9. Replies
    5
    Views
    122

    Re: OpenCV/Emgu Wrapper for VB6

    FYI: Most of those open source projects have instructions on how to compile to StdCall, if applicable.
  10. Replies
    17
    Views
    211

    Re: export listview to textbox

    Not sure your question is crystal clear. I don't understand the relationship between "remove item from the textbox" and "uncheck it in listivew"

    Do you know how to uncheck a listview item via...
  11. Re: Automation Error In .EXE mode only

    Sam, I'm definitely not an expert with Office automation.

    My GoogleFu found hits regarding a possible registry corruption, small problem. Maybe try this search and see if the solutions work for...
  12. Replies
    5
    Views
    122

    Re: OpenCV/Emgu Wrapper for VB6

    Any CDecl calling convention can be called with VB - using helpers

    1. DispCallFunc + GetProcessAddr APIs
    2. StdCall to CDecl to StdCall thunks

    If callbacks are needed, then thunks are a better...
  13. Re: Is there an alternative to WM_DRAWCLIPBOARD for catching Cut,Copy and Paste ?

    I'm not that familiar with using the OLE clipboard, but are you saying that it can differentiate between copy, paste, & cutting, and preventing applications from accessing it?

    FYI: The OLE...
  14. Re: treeview,listview,list1 filter question ( interesting question )

    @dilettante, as usual and unfortunately, the OP (doberman) starts new threads of similar topics. This is a continuation of a previous thread of his. He can get what he wants but is logic is...
  15. Re: OleSetClipboard to place text in Clipboard.

    For text, why not use VB's Clipboard object?
  16. Replies
    1
    Views
    102

    Re: Programmatically changing form icon

    At Form_Load: Set Me.Icon = Image1.Picture ?

    If not, may need more details, including the image format of the control-based image.

    Edited: Welcome to the forums :wave:
  17. Replies
    4
    Views
    241

    Re: Can someone explain this to me ? vtbl

    The author must know the Application interface VTable has exactly 26 function pointers


    Most likely override. Depending on how the author intends. I do this quite often to "subclass" COM...
  18. Replies
    10
    Views
    1,159

    Re: how to draw graph in VB

    Ugh, got me. I'm usually pretty good at spotting those :(
  19. Replies
    10
    Views
    1,159

    Re: how to draw graph in VB

    If wanting to use graph32.ocx, suggest reading this other thread
    http://www.vbforums.com/showthread.php?819157-Vb6-graph32

    Oh, and any suggestion to remove Option Explicit is not a good...
  20. Re: Run time Error 35603 Invalid Key

    What Zvoni is stating is that whenever you add a new listitem, it is not automatically the "SelectedItem". If you want that to happen, you might want to tweak your line to:


    Set list =...
  21. Re: Anyone familiar with Windows Imaging Component, or odd IDL pointer types in gener

    When passing a null pointer, pass zero, not VarPtr(0). When COM routines are looking for a null pointer, they are looking for passed parameter value of zero. VarPtr(0) is a non-zero value. If your...
  22. Replies
    4
    Views
    241

    Re: Can someone explain this to me ? vtbl

    VTbl = Virtual Table = Virtual Function Table

    With COM, every interface has a VTable. These tables are a list of function pointers. Those function pointers are addresses to compiled code, i.e.,...
  23. Replies
    8
    Views
    235

    Re: Compare 2 treeviews child items

    Your search routine works by is very inefficient. You are comparing all nodes. But you only really need to compare the child nodes of matching parent nodes. If you rework this, you should get must...
  24. Replies
    4
    Views
    124

    Re: Getting errors when using vb6.0

    First, I'd try to open VB6.exe using "Run as administrator". If that still causes you issues...

    When reinstalling: ensure you "Run As Administrator" when installing VB, installing service pack 6,...
  25. Replies
    8
    Views
    235

    Re: Compare 2 treeviews child items

    Maybe a misunderstanding... FullPath is a property of each treeview node.

    Debug.Print Treeview1.Node(1).FullPath
  26. Replies
    4
    Views
    124

    Re: Getting errors when using vb6.0

    Is this a new VB6 install? If so, did you install VB6 by specifically elevating it, i.e., "Run As Administrator".
  27. Replies
    8
    Views
    235

    Re: Compare 2 treeviews child items

    My guess is that they are green because they exist elsewhere in your treeview, like under a different root node.

    I think I would try to compare the node's FullPath instead of its text. The...
  28. Re: Run time Error 35603 Invalid Key

    I think you need to step through your code and determine which list item that the .SelectedItem is referring to. Obviously it is not what you think. The .SelectedItem can be "Nothing".
  29. Re: how to populate listview with this file

    The rom name attribute value of each game element would be:

    ("game/rom")
    List1.AddItem xmlElement.getAttribute("name")

    Look at this example:

    Private Sub Command4_Click()
    List1.Clear
    Dim...
  30. Re: how to populate listview with this file

    Open that dat file...

    game[rom[@name='03k_sb-8.bin']]

    the [ ] above are like parentheses
    game :: only look at 1st child elements where its element is <game [optional attributes]>
    rom :: only...
  31. Replies
    8
    Views
    275

    Re: Option Explicit Ignored

    ahenry beat me to it. It won't trigger unless the routine is entered or "Start With Full Compile"
  32. Re: how to populate listview with this file

    Using your exact code and the file you posted in #1 above, I get 3 games: 1942, 1942a, 1942b

    Whenever something is not working, you should explain in detail what you are expecting and any errors...
  33. Re: how to populate listview with this file

    Your XPath query is incorrect: "rom name"?
    Look at your previous thread where I helped you parse XML
    http://www.vbforums.com/showthread.php?878225-RESOLVED-getbetween-help
  34. Re: Numeric Property returns 0 although we did not assign 0

    @Elroy. I'd be tempted to dummy-proof that a bit by testing the passed iMyNumber, i.e., minimally testing VarType(iMyNumber) = vbInteger. And can be more robust by using CInt() with error trapping to...
  35. Re: Numeric Property returns 0 although we did not assign 0

    I believe he meant null string, i.e., StrPtr(vbNullString) = 0 whereas StrPtr("") <> 0
  36. Re: Add KeyDown event for pure API TextBoxW (no Subclassing)

    API windows receive no events from VB. VB may receive notification messages, but it doesn't expose them to you. And that wouldn't help in this case.

    If the API window has focus and you have a menu...
  37. Re: how to populate listview with this file

    Your question is regarding a listview, yet your sample code is for a treeveiw.

    If you spend some time learning how to use DOM to parse XML data, I think you could dramatically improve your ability...
  38. Re: Run time Error 35603 Invalid Key

    Welcome to the forums :wave:

    What do you get if you Debug.Print ListView1.SelectedItem.Key
    That question was just out of curiosity. Why use a key for deletion? This should work whether an item...
  39. Re: "MSCOMCTL.OCX Could Not Be Loaded" Error (and Strange Fix)

    Because your PCs have different versions. VB will write to the vbp file whatever version it is uses when the project is loaded.

    When the program is compiled, and deployed with a proper...
  40. Re: Numeric Property returns 0 although we did not assign 0

    Unlike some other languages, VB assigns default values to declared variables (when applicable).

    As others have suggested, use a value that your property will never be assigned, something outside...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width