Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. andyburrow

    Dim lpszName As New VBFixedStringAttribute(100)

    VB.NET excepted all of the statements, however it's thrown and unhandled exception. "An unhandled exception of type 'System.NullReferenceException' occured in Webcam Application.exe" "Additional Information: Object reference not set to an instance of an object." It's highlighted the following...
  2. andyburrow

    Dim lpszName As New VBFixedStringAttribute(100)

    Ok that seemed to do the trick. The only thing coming up now is 'Value' is not a member of 'String' i.e. capGetDriverDescriptionA(0, lpszName.Value, 100, Nothing, 100) lwndC = capCreateCaptureWindowA(lpszName.Value, _ WS_VISIBLE Or WS_CHILD, 0, 0, lWidth, lHeight, hWnd, 0)...
  3. andyburrow

    Dim lpszName As New VBFixedStringAttribute(100)

    Ok I put that code in, but now it says: Operator '&' is not defined for types 'String' and 'Microsoft.VisualBasic.SpcInfo' and also 'supstring' is not a member of 'String'. I also changed the .Length back to .Value as you rightly advised, as I don't need to return the number of Chars in the...
  4. andyburrow

    Dim lpszName As New VBFixedStringAttribute(100)

    The Funcation is as follows: Declare Function capGetDriverDescriptionA Lib "avicap32.dll" (ByVal wDriver As Short, ByVal lpszName As String, ByVal cbName As Integer, ByVal lpszVer As String, ByVal cbVer As Integer) As Boolean Is that what you mean? Yeah I used .Length instead and it seemed to...
  5. andyburrow

    Dim lpszName As New VBFixedStringAttribute(100)

    Does anyone know how else I can put this? The error message received is: 'Value' is not a member of 'Microsoft.VisualBasic.VBFixedStringAttribute'. This refers to the 'lpszName.Value' calls... check out the Sub below.. lines 12 and 14. Sub MapWebcamToWindow(ByRef lWidth As Integer, ByRef...
  6. andyburrow

    Convert.ToInt32(lpszName)

    Sorry, the full original sub is: "Sub MapWebcamToWindow(ByRef lWidth As Integer, ByRef lHeight As Integer, ByRef hWnd As Integer) Dim lpszName As New VB6.FixedLengthString(100) Dim bmp As BITMAPINFO With bmp.bmiHeader .biSize = Len(bmp.bmiHeader)...
  7. andyburrow

    Convert.ToInt32(lpszName)

    Hey Rick - This is where my VB.NET skills lack; hoping for some assistance. The only other reference to 'lpszName' is in the following Function Declaration above the Sub that I pasted in to this thread.. "Declare Function capGetDriverDescriptionA Lib "avicap32.dll" (ByVal wDriver As Short...
  8. andyburrow

    Convert.ToInt32(lpszName)

    Hey Guys, I need some help on the 'Dim lpszName As Char (100)' line and the 'MyNumber = Convert.ToInt32(lpszName)' line. It comes up saying MyNumber not defined; fine, so I Dim MyNumber, say as an Integer or a Char, and then it says 'Value is not a member of...'; on the CapGetDriver line. Can...
  9. andyburrow

    Type 'VB6.FixedStringLenth' is not defined

    Any ideas on how I can define this? The program seems to compile, except for this bug. grrr. Has anyone ever had this as well? 'Dim lpszName As New VB6.FixedStringLength(100)' That's the line of code..
  10. andyburrow

    VB6.FixedLengthString(100)

    I've just read that article and it say's: "In Visual Basic .NET, you cannot declare a string to have a fixed length unless you use the VBFixedStringAttribute Class attribute in the declaration." So from that, I read that it is possible by using the above Call attribute in the declaration?
  11. andyburrow

    VB6.FixedLengthString(100)

    Hi All, I've pretty much finished a Webcam App that i've coded, but there's a build error that I need to solve. It says 'Type VB6.FixedLengthString' not defined. Apparently, this is something to do with a Library that needs to be referenced?? Thanks for any help Andy
  12. andyburrow

    Is VB.NET the one?

    Dimandja, you are a legend!! That's 'exactly' what I was looking for. Ok, so once I have created the VB.NET app to show a live stream from a connected web cam, is it really that hard to implement this on a website? Presumably using ASP.NET?
  13. andyburrow

    Is VB.NET the one?

    Ok, so if I can write it in VB.NET, I can use ASP.NET to host it?
  14. andyburrow

    Is VB.NET the one?

    Hi All, I'm looking to embed a webcam on a website so I can view it live from work. Would this involve a bit of VB.NET and possibly ASP.NET? Any help would be much appreciated. Thanks Andy

Part and Inventory Search

Back
Top