Search Results - VBForums

Search:

Type: Posts; User: paulg4ije

Page 1 of 11 1 2 3 4

Search: Search took 0.03 seconds.

  1. VS 2010 Re: Problems with device contexts in old DLL?

    I was slightly wrong in my summary: mmsCreateDIB returns a "HBITMAP" (as clearly shown in the documentation, duh!) which is a "handle to a bitmap", rather than a device context (subtle difference)....
  2. VS 2010 Re: Problems with device contexts in old DLL?

    Still trying to get this to work. If anyone wants to try out the code, the DLL is available here:

    http://hamsoft.ca/pages/programmers.php

    I know it's a big ask for someone to download the DLL...
  3. VS 2010 Re: "conversion from string to type double is not valid"

    Textbox.text returns a string. You can't do Math on a string. A quick-and-dirty method is to use Val to convert the text into a number. For example:

    CreditHour1 = Val(TextBoxCreditHour1.Text)...
  4. VS 2010 Re: Problems with device contexts in old DLL?

    I've started playing with marshalling (not sure I'm doing it right) and it hasn't helped. I've also tried changing the function definitions to use the format <DllImport("sstveng.dll")> but still not...
  5. VS 2010 [RESOLVED] Problems with device contexts in old DLL?

    I'm still wrestling with the old DLL as posted here: http://www.vbforums.com/showthread.php?778541
    The DLL implements sophisticated audio DSP and FFT functions that I cannot easily reproduce in any...
  6. Replies
    10
    Views
    205

    VS 2010 Re: PIctureBox "Device Context" problems

    passel - your method seems to have fixed the exception, although the function that is called with the hdc isn't actually working yet. I'll work on it more tomorrow. Thanks to dday9 for your input too.
  7. Replies
    10
    Views
    205

    VS 2010 Re: PIctureBox "Device Context" problems

    Thanks to you both. I'm going to try those ideas within the next hour.
  8. Replies
    10
    Views
    205

    VS 2010 Re: PIctureBox "Device Context" problems

    Yes, the same AccessViolationException. Writing from scratch is not an option. The dll provides some sophisticated audio DSP and FFT functions which are not available elsewhere.
  9. Replies
    10
    Views
    205

    VS 2010 Re: PIctureBox "Device Context" problems

    An exception is thrown. I'm quite prepared to accept there could be more problems than just getting the device context, but an error there would certainly stop the process in its tracks.
  10. Replies
    10
    Views
    205

    VS 2010 Re: PIctureBox "Device Context" problems

    I didn't think a "handle" was quite the same thing as a "handle to a device context". Unfortunately using the handle of the picturebox doesn't work.
  11. Replies
    10
    Views
    205

    VS 2010 PIctureBox "Device Context" problems

    I am using an "old" third-party DLL which has several graphics-based procedures that need to be called with the Device Context of a PictureBox. The sample VB6 code - which works perfectly - uses...
  12. Replies
    9
    Views
    280

    Re: Scanning external drives

    Do some Googling for file searching with recursion.
  13. VS 2010 Re: Can't seem to fix "Mixed mode assembly" error using app.config

    Fixed it! I misled you about the error. In the IDE I couldn't get an exception - the code just froze and wouldn't run. When I ran the .exe from the bin folder I got the "Mixed Mode Assembly" message...
  14. VS 2010 [RESOLVED] Can't seem to fix "Mixed mode assembly" error using app.config

    I have written several apps in the past using Microsoft.DirectX.DirectSound.dll and Microsoft.DirectX.dll but in my new app I can't seem to get around the "Mixed Mode Assembly" error, as below:
    ...
  15. Re: Access to the path '' is denied?

    System.IO.Path.GetFileName(ImageURL) should give you the filename.
  16. Re: Access to the path '' is denied?

    I think you need to specify a full filename, not just a folder name. Something like:


    WC.DownloadFile(ImageURL, "C:\Users\Public\Documents\testfile.txt")
  17. Re: Access to the path '' is denied?

    Really need to see your code, but as there shouldn't be too many problems accessing the Public folder, my guess would be a wrongly concatenated pathname; a missing slash or too many slashes or...
  18. Replies
    1
    Views
    183

    Re: get FTP file upload completed properly

    Why do you catch the exception, ignore it and then always return true? I would start by returning false when an exception occurs. How you proceed from that point may depend upon what the exception is.
  19. VS 2012 Re: Getting Average RGB Color Value of Entire Screen

    You might want to consider converting the RGB values to luminance, which will give you the overall "brightness" of the image. Luminance = R * 0.3 + G * 0.59 + B * 0.11.

    Also check out fastpix from...
  20. Re: [VB2010] Set a image depending from a String value

    Sounds good to me :)
  21. Re: [VB2010] Set a image depending from a String value

    I haven't tried it, but a quick Google search suggests something like this should work:


    My.Resources.ResourceManager.GetObject(MyImage)
  22. Replies
    4
    Views
    190

    Re: "Wake up" a networked disk?

    I was hoping to see a VB code solution to this problem, as I have suffered it myself on numerous occasions when sharing a database across a peer-to-peer network. You have to tell the user to...
  23. Replies
    14
    Views
    638

    VS 2012 Re: how read image in vb.net

    If you have nice clear "regular" text with good contrast then OCR might be possible. If it's anything like a CAPTCHA display then forget it ...
  24. VS 2010 Re: [RESOLVED] Writing to parallel port - Windows 7 64-bit

    Indeed; old and popular - just like me :D
  25. VS 2010 Re: Writing to parallel port - Windows 7 64-bit

    I have only used the 64-bit version so I don't think I can be of any help. If I needed to use 32-bit I would just look at the documentation on the highrez.co.uk website.

    Good luck with your...
  26. Replies
    6
    Views
    275

    VS 2010 Re: Comparison Problem

    A couple of quick thoughts: You declare TheHour and TheMinute as integers then format them as strings. Also you use & when you should use AND. Try:


    If (TheHour = My.Settings.BedHr AND TheMinute...
  27. Replies
    6
    Views
    269

    Re: first value of a combobox "-----------"

    So disconnect your data source. As the error message says, you can't choose your own list items if the control is bound to a datasource.
  28. Replies
    11
    Views
    505

    Re: Webbrowser problem again?

    Add a counter to the DocumentCompleted sub (just for debugging purposes - it doesn't solve your problem) and comment out the submit/click line. You might be surprised how many times that event is...
  29. Replies
    7
    Views
    302

    Re: Very simple beginner problem.

    Changing CInt to Val will work.
  30. Thread: json error

    by paulg4ije
    Replies
    7
    Views
    349

    VS 2013 Re: json error

    I know nothing about JSON, but some of your code looks a bit odd to me. Why do you Dim js and then not use it? Shouldn't jsonfile have a type, such as string? What about tester - again no type....
  31. VS 2013 Re: Barcode scanner (LS2208) read barcode

    I don't understand why you would want to do your own thing with the serial port when you already have the data you need in a text box? Hide the text box if you don't want the user to see it, then use...
  32. VS 2013 Re: Get X, Y of 1 pixel of a color in a image?

    If by "scanning" you mean looping through X and Y coordinates, I think that's what you will have to do. This makes it quite a bit faster though:
    ...
  33. VS 2010 Re: Simple Image Gallery in VB 2010

    Just add an instance of the control on Form 1. Try this:



    Public Class Form1

    Dim AuthorCodeImageGalleryVB1 as new AuthorCodeImageGalleryVB

    ' Rest of Form1 code starts here ...
  34. VS 2008 Re: dgv cell if is = with my.date.now.toshort then the text in that row to be RED

    You're welcome :wave:
  35. Replies
    5
    Views
    381

    Re: picture box / graphics help

    I load bitmaps from file using filestream. Not saying it's better or more efficient than other methods but it works for me:


    ' Open image using FileStream so file is not locked and can be saved...
  36. VS 2008 Re: dgv cell if is = with my.date.now.toshort then the text in that row to be RED

    Shouldn't that be ToShortDateString rather than ToShortTimeString? The syntax for coloring the rows looks OK.
  37. Replies
    5
    Views
    537

    VS 2013 Re: LockBits And Image comparison?

    Fastpix by boops boops is a good place to start for fast pixel manipulation:

    http://www.vbforums.com/showthread.php?586709-FastPix-Rapid-Pixel-Processing-for-Dummies-and-Dudes
  38. Replies
    13
    Views
    524

    VS 2010 Re: Incrementing variable usage

    You can't do it quite like that. Use an array instead:

    Dim v(3) as integer

    For i as integer = 1 to 3
    v(i)=i
    Next i

    MsgBox(v(1))
    MsgBox(v(2))
  39. Re: save/edit button not updating access database

    I'm no expert - in fact I really struggle with DB stuff - but I suspect you might need a CommandBuilder.

    This working code connects an Access database to a DataGridView. It might give you some...
  40. VS 2008 Re: how do run a (webpage) from inside my (vb.net) program

    How about including a browser in your program based on the web browser control?

    EDIT: I see you're already using a web browser control. Forget I said anything ...
Results 1 to 40 of 409
Page 1 of 11 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.