Search Results - VBForums

Search:

Type: Posts; User: treddie

Page 1 of 11 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Split Function Gives Weird Results Sometimes

    Hold off...Sorry to bother you. The returned value 30777 IS correct. It's been a while since I worked on this program, but the short 199 lines of text is what came back when I printed out the...
  2. Re: Split Function Gives Weird Results Sometimes

    I have tried that but get the same result..."30777".

    Here is the text file:
  3. Split Function Gives Weird Results Sometimes

    Hi.

    I have a section of code that is intended to split a text file's contents into separate lines that go into an array. Each line should then be easily read from the array:


    ProjectText_str...
  4. Replies
    7
    Views
    299

    Re: Inconsistent? Runtime Error 5

    The REAL problem is that I need a function to do roots of complex numbers. I can't find one online, so I'll just write my own based on the rules of exponentiation.
  5. Replies
    7
    Views
    299

    Re: Inconsistent? Runtime Error 5

    OK, I found it. My order of operations was not taken into account. Negation occurs AFTER exponentiation. If (x) is (-), then x^(1/3) will fail. However, doing, say, -.5^(1/3) succeeds because the...
  6. Replies
    7
    Views
    299

    Re: Inconsistent? Runtime Error 5

    a = .45
    b = 4.65
    c = 4.35
    d = -3.45
  7. Replies
    7
    Views
    299

    Re: Inconsistent? Runtime Error 5

    Hi doctrin13th. Thanks for replying.



    The following line fails outright:

    i_LeftBot = (Sqr((C ^ 3 / (27 * A ^ 3)) + (D ^ 2 / (4 * A ^ 2)) - (B ^ 2 * C ^ 2 / (108 * A ^ 4)) + (B ^ 3 * D /...
  8. Replies
    7
    Views
    299

    Inconsistent? Runtime Error 5

    Hi,

    I have a strange problem.

    As an example, (x) = the results of a long equation and ends up = -5.22150298374801

    In a given situation (but not always), if I try to calculate x ^ (1/3), I...
  9. Replies
    27
    Views
    30,052

    Re: Accessing Controls from Worker Threads

    This is the best and simplest explanation I have seen for threading. There were a couple of close "thirds" out there..Not quite "Seconds".
    Thanks jmc!
  10. Replies
    6
    Views
    778

    Re: FindFirstFileEx and Unicode

    OK, I figured out the problems in my code. I will post the resultant demo program when I get some test code copied over and running. The problems were mostly major data-typing problems.
  11. Replies
    6
    Views
    778

    Re: FindFirstFileEx and Unicode

    It just dawned on me how to sort out part of the typing confusion. Win32.api is just that...A 32bit set of libraries. Even when run on a 64bit system, it's still win32. Therefore, no parameter can...
  12. Replies
    6
    Views
    778

    Re: FindFirstFileEx and Unicode

    and


    Exactly. In fact, according to one source, and when using the Unicode "W" version of the function, the string and WFD parameters need to be pointed to. Also, due to the differences between...
  13. Replies
    6
    Views
    778

    FindFirstFileEx and Unicode

    Howdie.

    I am researching how to use the Unicode version of FindFirstFileEx() in vb.Net and am having a heck of a time getting this to work. I had downloaded an example and it used the standard...
  14. Re: How to Unlock a Folder Locked by Another App

    These might be a good start:
    http://www.codeproject.com/Articles/10042/The-Windows-Access-Control-Model-Part-1
    http://www.installsetupconfig.com/win32programming/windowsfileapis4_12.html
  15. Re: How to Unlock a Folder Locked by Another App

    Found and tried this as well, but no go:


    Both of the approaches in my posts execute without errors, but do not do anything noticeable. Which is interesting in that I would think the operations...
  16. How to Unlock a Folder Locked by Another App

    Hey all.

    I have been researching this problem and am basically coming up empty. I need to do in code what Unlocker essentially does as an app...That is, remove a lock on a folder that has been...
  17. Re: Visual Studio cannot start debugging because the debug target is missing

    Hey jmcilhinney, thanks for coming back.



    I used them and loved 'em when they were applicable. In fact, this last port-over I did had them. They were simple and quick, just like vb6 could do...
  18. Re: Visual Studio cannot start debugging because the debug target is missing

    That's true, but only in a limited sense. You cannot group together different TYPES of controls in the same control array. At any rate, it still shouldn't matter. vb.Net still could have had...
  19. Re: Visual Studio cannot start debugging because the debug target is missing

    Well then, I can only chock that one up to inexperience. That IS a great feature.



    I think I might remember that article. If we are talking about the same thing, it was from maybe 10 years...
  20. Re: Visual Studio cannot start debugging because the debug target is missing

    Sorry for the delay in getting back. I'm totally slammed and will respond shortly.
  21. Re: Visual Studio cannot start debugging because the debug target is missing

    Hey, formlesstree4,

    Thanks for your response.

    I respect your opinions, and here is my take on your thoughts.



    Response1:
    I somewhat agree with you in that statement. I have never...
  22. Re: Visual Studio cannot start debugging because the debug target is missing

    Well, first off. Sorry for the rant. It was late, I was tired, and not in the mood to not be able to finish up a last bit of code before going to bed.

    With that said, I still see things a...
  23. Visual Studio cannot start debugging because the debug target is missing

    This is why I so GD hate .Net.

    Everything was working fine as I was working some code and then I get two types of error messages that are so Fing verbose they tell me nothing but that whoever...
  24. Replies
    9
    Views
    404

    Re: StreamWriter not "bidirectional"?

    Got it. Makes sense. Funny how this all came about. Asking about a capability based on an incorrect assumption about something I already knew about but forgot and ended up learning something new...
  25. Replies
    9
    Views
    404

    Re: StreamWriter not "bidirectional"?

    Then it sounds like a FileStream can be either in control of or subordinate to a writer and reader. A Writer or Reader assigns a FileStream, but a FileStream can assign StreamWriter/StreamReader...
  26. Replies
    9
    Views
    404

    Re: StreamWriter not "bidirectional"?

    Heheh. Age makes it worse. :)

    Ok then, I understand. I wasn't aware of FileStream yet, just StreamWriter and StreamReader as separate entities.
    Thanks everybody.

    p.s. I must confess I was...
  27. Replies
    9
    Views
    404

    StreamWriter not "bidirectional"?

    From what I have been experimenting with, it seems that StreamWriter is not "bidirectional" in that you cannot write to and read from a file using the same port. It seems that in order to read from...
  28. Replies
    13
    Views
    699

    Re: NumericUpDown control event not firing

    I understand that is only because most programmers are not taking advantage of the CPU hardware's architecture and still thinking 32-bit on a platform that can do much more. They can get away with...
  29. Replies
    13
    Views
    699

    Re: NumericUpDown control event not firing

    Sorry, I misunderstood you. I thought you meant that the WHOLE problem started from a form_load event, when I started from a button click. I see now that you mean the PARTICULAR issues that occur...
  30. Replies
    13
    Views
    699

    Re: NumericUpDown control event not firing

    Right, you are. So .net on 64 bit = black hole, eh? I wonder if vs2008 can be run in compatability mode...Would certainly be a synch to find out.


    No. It does sound like it though, since .net...
  31. Replies
    13
    Views
    699

    Re: NumericUpDown control event not firing

    OK...This was part of the problem. According to MSDN, when a NumericUpDown control is set to a minimum, say, in this case, "1", then if afterwards, you set its current value to some variable that...
  32. Replies
    13
    Views
    699

    Re: NumericUpDown control event not firing

    Good advice. I will definitely remember that one. Thanks for your help, Niya!
  33. Replies
    13
    Views
    699

    Re: NumericUpDown control event not firing

    I checked that, but also when I recreated the control, .net recreated the sub line and all its parameters, including the handle.

    Also, that temporary copy of some code I was storing in that dummy...
  34. Replies
    13
    Views
    699

    Re: NumericUpDown control event not firing

    Please disregard my post. It is working now and I haven't the slightest idea why. I would have loved to post why, but if I knew why, I could post why!
    The only thing I can gather is that I had a...
  35. Replies
    13
    Views
    699

    NumericUpDown control event not firing

    Well...I've Googled high and low on this one to no avail. All the posts referring to the event not firing have to do with entering text, not using the up/down arrows. The problem is simple...I have...
  36. Replies
    4
    Views
    275

    Re: Controls initializing during form_load

    DoH!

    I meant to put Boolean.
    Ahh what the heck!...Who cares about memory management anyway! :)
  37. Replies
    4
    Views
    275

    Re: Controls initializing during form_load

    OK then, I see what I did. I was thinking old school and declaring a variable separate from initializing it at the same time so that I could put it up there at the class level. So I did what you...
  38. Replies
    4
    Views
    275

    Controls initializing during form_load

    Sorry to bother everybody with this one.

    Years ago, I remember running into this problem, but I have checked prior projects and my own tuts to find the solution and I can't find it.

    The problem...
  39. Replies
    3
    Views
    425

    Re: Mysterious function in API

    Thanks for the info everyone. I knew it had to be something simple.

    (I posted this earlier but for some reason it didn't take.)
  40. Replies
    3
    Views
    425

    Mysterious function in API

    Hi all.

    I was researching how to work with Unicode in a textbox and ran into one piece of code involving the function, SendMessageWLng(), as in:


    The author did not post his declarations...
Results 1 to 40 of 419
Page 1 of 11 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.