Search:

Type: Posts; User: T120

Page 1 of 6 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    534

    Re: VB talking to C Visual Studio 2008

    That did it.

    Brain cells refreshed!:wave:
  2. Replies
    3
    Views
    534

    Re: VB talking to C Visual Studio 2008

    Thanks for the quick response.

    You are right it is C#. My apologies for the error. No ref added yet but bells from long ago are starting to ring.
  3. Replies
    3
    Views
    534

    VB talking to C Visual Studio 2008

    Guys

    It's been some time since I last used VB so please be gentle.

    I have2 projects within a solution - I in VB, the other in C

    C project

    Namespace ABCD
  4. VS 2008 Re: Value of type cannot be converted to ...

    OK - I've found it and all by myself

    I have to say that in the past you have been very helpful and your vb knowlede is commendable. However, as a Moderator, I think you reply was the result of...
  5. VS 2008 Re: Value of type cannot be converted to ...

    I appreciate your trying to help - Thanks very much -I'll try somewhere else
  6. VS 2008 Re: Value of type cannot be converted to ...

    Sorry - I still don't understand. I'm not even sure what a namespace is.

    The new solution consists of 3 projects(Same as the corrupted one)

    BSControls(contains Collapsiblegroupbox)
    BSGPS ...
  7. VS 2008 Value of type cannot be converted to ...

    Guys

    i've just had a corrupted solution file so I started new and added 3 existing projects.

    I now get:-


    Error 11 Value of type 'BSControls.CollapsibleGroupBox' cannot be converted to...
  8. Thread: Deserialize XML

    by T120
    Replies
    2
    Views
    1,292

    VS 2008 Re: Deserialize XML

    That results in:-

    There is an error in XML document (1, 1).
  9. Thread: Deserialize XML

    by T120
    Replies
    2
    Views
    1,292

    VS 2008 Deserialize XML

    Can anyone tell me why?



    Dim Geocache As FileStream = New FileStream("c:\temp\bs.gpx", FileMode.Open)

    Dim serialize As XmlSerializer = New XmlSerializer(GetType(Cache_Location))

    ...
  10. Replies
    4
    Views
    649

    VS 2008 Re: app user sending me an email

    I tried sending to my own email account but the server blocks it :-

    http://www.spamhaus.org

    I thought this was going to be simple along with detecting the user email client but .......
  11. Replies
    4
    Views
    649

    VS 2008 Re: app user sending me an email

    But would someone with a GMAIL account for instance know enough detail to be able to supply the info required for the smtp client address/port etc?
  12. Replies
    4
    Views
    649

    VS 2008 app user sending me an email

    My app needs the user to send me an email.

    How can they do this if they only use web mail and therefore haven't specified a default mail service?
  13. Replies
    2
    Views
    558

    VS 2008 Re: Passing a Queue to a thread

    Great - thanks for pointing that out
  14. Replies
    2
    Views
    558

    VS 2008 [RESOLVED] Passing a Queue to a thread

    Guys

    I've passed object sucessfully to threads in the past but I'm stumped on this one:-


    Public Class TileDownload

    Structure RequiredTileDetails

    Public MapID As String
  15. Replies
    2
    Views
    748

    VS 2008 Multithreading - lock?

    I have a GUI that has an array of images.

    The GUI sometimes has to fire a thread to get any numer of these images from the web.

    I'm occasionally getting "Object is in used elsewhere" and I...
  16. Replies
    11
    Views
    2,456

    VS 2008 Re: [RESOLVED] Detect thread end in thread parent

    All it needed was a begininvoke. I was getting confused because in the past I have :-


    if control.invokerequired then call the delegate else access the control directly.


    In this case there...
  17. Replies
    11
    Views
    2,456

    VS 2008 Re: Detect thread end in thread parent

    Thanks Guys

    I've got a working demo from a friend down the road. It works but I don't understand why. I need to do some reading.

    Thanks for your patience.
  18. Replies
    11
    Views
    2,456

    VS 2008 Re: Detect thread end in thread parent

    I tried Backgroundworker first, but came up with problems accessing the save dialog in the UI thread.I was unable to set STA in a backgroundworker. I'm ok accessing controls from other threads and...
  19. Replies
    11
    Views
    2,456

    VS 2008 Re: Detect thread end in thread parent

    If I understand you correrctly that is what I have done.

    BUT because the event was fired from the thread the sub is run by/on behalf of the thread, even though the sub is in the Main GUI.
  20. Replies
    11
    Views
    2,456

    VS 2008 [RESOLVED] Detect thread end in thread parent

    Guys

    I'm firing a thread to unzip a file. I need some way of indicating to the parent that the unzip thread has ended. I've tried raise event in the unzip thread to a sub in the parent but this...
  21. Replies
    2
    Views
    575

    VS 2008 Re: XML Late Binding

    Solved it:-



    For Each m_node As XmlNode In MyNode
    '
    ' Get the coordinates
    '
    Dim coords As String =...
  22. Replies
    2
    Views
    575

    VS 2008 [RESOLVED] XML Late Binding

    Guys

    I've got option strict on.


    Dim MyNode As System.Xml.XmlNodeList = xDoc.GetElementsByTagName("Placemark")

    For Each m_node In MyNode
    '
    ...
  23. Replies
    10
    Views
    1,864

    VS 2008 Re: Arraylist sort and binarysearch

    I intended accessing them by the originating web site url ie http://tile.openstreetmap.org/mapnik/17/64234/44116.png My original struture contained the URL and the image. But it could also be the...
  24. Replies
    10
    Views
    1,864

    VS 2008 Re: Arraylist sort and binarysearch

    Guys

    I'm still confused. All I want to do is create a caches of images in memory to try and save time on hard drive accesses!

    If the arraylist.binarysearch uses the binary chop techneque then...
  25. Replies
    10
    Views
    1,864

    VS 2008 Re: Arraylist sort and binarysearch

    Thanks Guys but I'm a bit lost now

    Should that be ICompare or IComarable?




    Imports Microsoft.VisualBasic

    Public Class TileCache : Implements IComparable
  26. Replies
    10
    Views
    1,864

    VS 2008 Arraylist sort and binarysearch

    Guys - I have a windows app and I'm trying to cache images in memory. I have:-



    Public TileCache As New ArrayList

    Structure TileCacheDescriptor

    Public TileURL As String
    ...
  27. Replies
    7
    Views
    4,501

    VS 2008 Re: XML Xdocument

    Solved it but I don't understand how/why!


    Imports System.Xml
    Imports System.Linq
    Imports System.Xml.Linq


    plus it needed the option infer - not needed in the test version even with option...
  28. Replies
    7
    Views
    4,501

    VS 2008 Re: XML Xdocument

    Both Target Frameworks are 3.5
    Both have a reference to system.xml 2.0.0.0
    Both have a reference to system.xml.Linq 3.5.0.0
    Both have an import system.xml
    Non Test version has an import...
  29. Replies
    7
    Views
    4,501

    VS 2008 Re: XML Xdocument

    Thanks for that - it solved my initial problem. I've taken the code from a "test" win app and it all worked fine. However, when transfered to my main app I'm getting other problems:-


    '
    ...
  30. Replies
    7
    Views
    4,501

    VS 2008 Re: XML Xdocument

    I'm sorry - I do not understand. With the code as is I get:-


    Error 1 Option Strict On requires all variable declarations to have an 'As' clause.
  31. Replies
    7
    Views
    4,501

    VS 2008 [RESOLVED] XML Xdocument

    Guys

    I've got Option strict ON
    Option explicit ON

    How should I declare the variable:-

    Dim bounds as ????? = (From item In xml...<bounds> _
  32. Replies
    2
    Views
    794

    VS 2008 Re: Read XML

    Great - that did it thanks very much
  33. Replies
    2
    Views
    794

    VS 2008 [RESOLVED] Read XML

    <way id='27004700' >
    <nd ref='296002937' />
    <nd ref='296003910' />
    <nd ref='296003911' />
    <nd ref='296003912' />
    <nd ref='296003913' />
    <nd ref='296003914' />
    <nd...
  34. VS 2008 Re: because it is being used by another process.

    Hours of research/head scratching:-

    The problem resides in:-

    TileImage = Image.FromFile(c:\aFile.png)

    This is just a pointer to the file(so it is open and READY to read) - it does not...
  35. VS 2008 [RESOLVED] because it is being used by another process.

    How can I find out what process is using the file?



    System.Net.WebException: An exception occurred during a WebClient request. ---> System.IO.IOException: The process cannot access the file...
  36. Replies
    3
    Views
    7,839

    VS 2008 Re: Copy file from my.resources

    This one did it:-


    IO.File.WriteAllText(filePath, My.Resources.MyFile)

    Thanks
  37. Replies
    3
    Views
    7,839

    VS 2008 [RESOLVED] Copy file from my.resources

    I'm trying to copy a file from my.resources to a user directory thus:-


    My.Resources.MyFile.Copy("C:\temp\abc.xml")

    I've also tried:-


    File.Copy(My.Resources.MyFile, "C:\temp\abc.xml")
  38. Replies
    5
    Views
    642

    VS 2008 Re: Pass array to thread

    Great - that did it.

    many thanks
  39. Replies
    5
    Views
    642

    VS 2008 Re: Pass array to thread

    Thanks for that

    I was trying something like that but with Ctype.

    However using your solution I get:-


    Error 3 Value of type '2-dimensional array of Object' cannot be converted to...
  40. Replies
    5
    Views
    642

    VS 2008 [RESOLVED] Pass array to thread

    Further to:-

    http://www.vbforums.com/showthread.php?t=585746&highlight=pass+argument+thread

    I now need to pass an array thus:-




    Public MyArray(5, 5) As OSMTileName
Results 1 to 40 of 216
Page 1 of 6 1 2 3 4



Click Here to Expand Forum to Full Width