Search:

Type: Posts; User: Half

Page 1 of 13 1 2 3 4

Search: Search took 0.21 seconds.

  1. Re: [RESOLVED] General question about data storage . . . database vs raw text file st

    I sometimes take 'huge' dumps of databases to work with when disconnected. Simple XML files, 2, 3, 5 GB in size. Trawling through them seems to take the same amount of time, sometimes it is a bit...
  2. Replies
    6
    Views
    873

    Re: converting periods to commas

    Well, even though you worked at the only banking data center on the planet which opened and closed with you coming and going, you can always check the OP's question :D
  3. Replies
    6
    Views
    873

    Re: converting periods to commas

    It's because many people observe the decimal convention for their country up to 9th grade or so. Then it kind of becomes fancy to use periods and commas interchangeably in decimals. These people...
  4. VS 2010 Re: [RESOLVED] webbrowser, get data value from

    Hmm... since you already know how to get the data... what if you were to setup a viewer yourself, enable whatever buttons you need and feed it that data?
  5. Thread: Date formats

    by Half
    Replies
    4
    Views
    817

    VS 2010 Re: Date formats

    Alternatively you can use file time. It is a simple Long, easy to convert to anything, very high resolution (to the 100th nanosecond), and can be used as a file name. When I have to store time stuff...
  6. Replies
    4
    Views
    845

    VS 2010 Re: Getting data from website

    Yeah there is no way around iterating unless you want to do string operations on the source html. To get to some value you have to access its element, not the element that contains the element with...
  7. Re: Running two functions at same time (rather than one after the other)

    I think directly learning about and then implementing multithreading is better than this creepy BackgroundWorker thing.

    Also, best is to have simple stuff going on in the different threads. If you...
  8. VS 2010 Re: creating a .vbs file using streamwrite returns "invalid character"?

    Probably a byte order mark issue. Try to save the string using the default encoding. Something like:


    Using myWriter As New StreamWriter("c:\somewhere", False,...
  9. Replies
    17
    Views
    1,253

    VS 2010 Re: Calling Function without Exiting Sub?

    Ah, that reminds me of a discussion where I was saying that it is pointless to ignore exceptions since they are the most robust way to stop a program from behaving erratically. And tg was promoting...
  10. Replies
    4
    Views
    867

    VS 2010 Re: Multithreading VB with C++/C

    You can write to other processes windows using windows messages, i.e. WM_SETTEXT. It will probably become pretty messy pretty fast.

    Another way is to read the C app's memory, that would be through...
  11. Replies
    15
    Views
    2,557

    VS 2008 Re: [RESOLVED] Converting String to ByteArray

    Mhhh this whole thing started by me trying to say that it is ok to simply loop through a string and get the bytes of each char. It seemed 'clunky' and 'vb6ish' to the OP but it is neither. If...
  12. Replies
    4
    Views
    744

    VS 2008 Re: Finding the biggers number in the string

    Are those multiple lines in one file, something like:

    [Area.100]
    [Area.51]
    [Area.69]
  13. Replies
    4
    Views
    16,339

    VS 2010 Re: Send Message: KeyDown, KeyUp to an Application?

    You can use the window handle of the control (not the one of the application, nor the process handle). Some controls also have an ID that does not change between restarts so it is possible to use...
  14. VS 2010 Re: VS2010 converted to VS2008 - now errors galore!

    Switching VS versions for a given project can be as confusing as seeing three fishes taking a hike from a vase.

    You can try simple copy & paste of code (and fix it on the go) and even objects...
  15. Replies
    15
    Views
    2,557

    VS 2008 Re: [RESOLVED] Converting String to ByteArray

    Um, yes it is.
    [/QUOTE]

    Note the 'another system' piece of text. You can use a system of dead raccoons to store Unicode data and call it URCns-D but it won't make it Unicode. To illustrate the...
  16. Replies
    23
    Views
    1,954

    VS 2010 Re: Usernames and Passwords

    Unfortunately, yes.[/QUOTE]
    Ok, here's a SHA256 result: k4oHlKDxe/D7yzrdYM3tY4vS5fLKxM15SYLNq5sIVFs=
    What is the input string? You have 11 months.
  17. Replies
    2
    Views
    711

    Re: Text Box Question

    One way is to add an "Exit Sub" right after the message boxes.
  18. Replies
    10
    Views
    1,616

    VS 2010 Re: WebBrowser Source Code

    Without the actual url we can only blindly try to offer you a solution. It could be a frame in an iframe, an ajax thing, an html fetching call from within a java applet.
  19. Replies
    15
    Views
    2,557

    VS 2008 Re: [RESOLVED] Converting String to ByteArray

    UTF-8 is not Unicode.
    .NET is mostly using Unicode if the encoding is not explicitly specified but the forms themselves are not saved in Unicode.
    Socket communication and pretty much everything...
  20. Replies
    23
    Views
    1,954

    VS 2010 Re: Usernames and Passwords

    You have to give the sub a string to work with. Currently it has no idea what you mean by hashdata (in other words 'hashdata' is known only to the btnHash_Click sub => it has a very limited scope).
    ...
  21. Replies
    12
    Views
    4,030

    Re: [RESOLVED] mouse problems

    Yeah & every programming language with commands longer than 3 chars is an extra luxury for those who can't or won't learn assembly. Get real dude.
  22. Replies
    5
    Views
    1,063

    VS 2010 Re: HTTPRequest Question

    You have to know what the POST contains. Easiest is to use some packet sniffer, see what's being done by the browser then simulate it with code.

    Clicking the G button however is not sending a...
  23. Replies
    10
    Views
    1,616

    VS 2010 Re: WebBrowser Source Code

    Try with "InnerHtml" :cool:

    You wait for everything to completely load first, right?
  24. VS 2010 Re: Copying folder that contains 56K of files to network folder in VB.NET

    There is a way to zip/unzip files directly using J# (at least in 2005) but it may not be necessary. 160 mb total should transfer in under a minute if it is several large files. Did you already try...
  25. Thread: Socket Comms

    by Half
    Replies
    21
    Views
    2,186

    VS 2010 Re: Socket Comms

    Get yourself a Step-by-Step book from MS Press (e.g. Microsoft Visual Basic 2010 Step by Step).
    Those are great since they explain all the basic syntax and you can skip whatever you already know....
  26. Replies
    23
    Views
    1,954

    VS 2010 Re: Usernames and Passwords

    Hashing, encryption etc. are complicated topics and it's mostly not worth learning much about them unless it's going to be a major part of your job. Also a small mistake in writing your own code may...
  27. Replies
    3
    Views
    635

    VS 2010 Re: HTTP Request problem

    You can't directly. JS things are "programs" and the text you posted is source code. A browser executes that source code and sends the result back to the server. WebRequests and WebResponses are...
  28. Replies
    10
    Views
    1,616

    VS 2010 Re: WebBrowser Source Code

    WebBrowser1.Document.Window.Frames returns an array containing all the frames of a web page. You can get the frame you are interested in by using its position in the array.



    'see how...
  29. Replies
    23
    Views
    1,954

    VS 2010 Re: Usernames and Passwords

    You may start by not storing the password but some kind of hash thereof. When the user enters something, hash that as well and see whether the result matches the stored hash sequence. If it does, it...
  30. Replies
    15
    Views
    1,350

    VS 2010 Re: Best means to store "Settings"

    I'd use a simple txt file in the app's folder. My.Settings is pretty much that only neither you nor your users know where exactly it is being saved. And it is in dfferent locations in different OSes;...
  31. Replies
    7
    Views
    1,270

    Re: how to determine all Iframes loaded

    Where does this get you?

    While WebBrowser1.ReadyState <> WebBrowserReadyState.Complete
    Application.DoEvents()
    Threading.Thread.Sleep(1000)...
  32. VS 2010 Re: Copying folder that contains 56K of files to network folder in VB.NET

    An antivirus program, as useless as they mostly are, can considerably slow down moving and copying when the files are many and small. You could try zipping the files into one archive from code; or...
  33. Replies
    28
    Views
    14,394

    VS 2010 Re: Invalid URI & "Not Responding" fix

    Do you actually get a "Not Responding" error or does your program simply hang waiting for a non existing page to load? If the latter, a second thread solution won't really help. You'd have a...
  34. Replies
    10
    Views
    1,616

    VS 2010 Re: WebBrowser Source Code

    Each frame has its own 'Document':

    WebBrowser1.Document.Window.Frames(1).Document.Body.OuterHtml
  35. Replies
    13
    Views
    1,999

    Re: I need some help with loop and Streamreader

    You are risking getting frustrated over this one. A program has no concept of a file on disk; it can only work with what's loaded in its memory. So you constantly having to take care of that with all...
  36. Re: [Tutorial] on making a Password Checker (Easy,Fast!)

    Leave the password in the code but don't use it. In fact add an array of millions of passwords and call it OneOfMany. It will also make the exe more C++ish by being several hundred kilobytes large...
  37. Replies
    5
    Views
    4,173

    Re: Kill Process When It Becomes Idle

    The question is what is considered idle. I don't think there is such a state for all kinds of processes that can be created on a PC.

    Did you experiment with WaitForInputIdle?

    If that fails I...
  38. Replies
    28
    Views
    14,394

    VS 2010 Re: Invalid URI & "Not Responding" fix

    Well actually getting an error is considered a huge leap in evolution of programming languages. Before that time stuff just stopped responding. Or finished anyway and the user never knew if the...
  39. VS 2010 Re: webbrowser, get data value from

    Well what you get is by all means what is received by that CRViewer java thingy. Try asking on its developer's forum something like "hey i got this data that your program is presenting so neatly, how...
  40. VS 2010 Re: webbrowser, get data value from

    These things aren't complicated, it's just lots of simple stuff at one place. High level languages (I consdier c++ a high lvl lang too) hide too many basics.

    In Wireshark each line is a packet. We...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width