Search Results - VBForums

# Search:

Type: Posts; User: treddie

Page 1 of 11 1

1. ## Thread: Inconsistent? Runtime Error 5

by treddie
Replies
7
Views
278

### 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.
2. ## Thread: Inconsistent? Runtime Error 5

by treddie
Replies
7
Views
278

### 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...

by treddie
Replies
7
Views
278

a = .45
b = 4.65
c = 4.35
d = -3.45
4. ## Thread: Inconsistent? Runtime Error 5

by treddie
Replies
7
Views
278

### Re: Inconsistent? Runtime Error 5

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 /...
5. ## Thread: Inconsistent? Runtime Error 5

by treddie
Replies
7
Views
278

### 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...

by treddie
Replies
27
Views
29,263

### 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!
7. ## Thread: FindFirstFileEx and Unicode

by treddie
Replies
6
Views
770

### 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.
8. ## Thread: FindFirstFileEx and Unicode

by treddie
Replies
6
Views
770

### 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...
9. ## Thread: FindFirstFileEx and Unicode

by treddie
Replies
6
Views
770

### 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...
10. ## Thread: FindFirstFileEx and Unicode

by treddie
Replies
6
Views
770

### 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...
11. ## Thread: How to Unlock a Folder Locked by Another App

by treddie
Replies
2
Views
536

### 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
12. ## Thread: How to Unlock a Folder Locked by Another App

by treddie
Replies
2
Views
536

### 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...
13. ## Thread: How to Unlock a Folder Locked by Another App

by treddie
Replies
2
Views
536

### 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...
14. ## Thread: Visual Studio cannot start debugging because the debug target is missing

by treddie
Replies
13
Views
3,123

### 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...
15. ## Thread: Visual Studio cannot start debugging because the debug target is missing

by treddie
Replies
13
Views
3,123

### 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...
16. ## Thread: Visual Studio cannot start debugging because the debug target is missing

by treddie
Replies
13
Views
3,123

### 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...
17. ## Thread: Visual Studio cannot start debugging because the debug target is missing

by treddie
Replies
13
Views
3,123

### 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.
18. ## Thread: Visual Studio cannot start debugging because the debug target is missing

by treddie
Replies
13
Views
3,123

### Re: Visual Studio cannot start debugging because the debug target is missing

Hey, formlesstree4,

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

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

by treddie
Replies
13
Views
3,123

### 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...
20. ## Thread: Visual Studio cannot start debugging because the debug target is missing

by treddie
Replies
13
Views
3,123

### 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...

by treddie
Replies
9
Views
378

22. ## Thread: StreamWriter not "bidirectional"?

by treddie
Replies
9
Views
378

### 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...
23. ## Thread: StreamWriter not "bidirectional"?

by treddie
Replies
9
Views
378

### 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...
24. ## Thread: StreamWriter not "bidirectional"?

by treddie
Replies
9
Views
378

### 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...
25. ## Thread: NumericUpDown control event not firing

by treddie
Replies
13
Views
680

### 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...
26. ## Thread: NumericUpDown control event not firing

by treddie
Replies
13
Views
680

### 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...
27. ## Thread: NumericUpDown control event not firing

by treddie
Replies
13
Views
680

### 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...
28. ## Thread: NumericUpDown control event not firing

by treddie
Replies
13
Views
680

### 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...
29. ## Thread: NumericUpDown control event not firing

by treddie
Replies
13
Views
680

### Re: NumericUpDown control event not firing

Good advice. I will definitely remember that one. Thanks for your help, Niya!
30. ## Thread: NumericUpDown control event not firing

by treddie
Replies
13
Views
680

### 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...
31. ## Thread: NumericUpDown control event not firing

by treddie
Replies
13
Views
680

### 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...
32. ## Thread: NumericUpDown control event not firing

by treddie
Replies
13
Views
680

### 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...

by treddie
Replies
4
Views
269

### Re: Controls initializing during form_load

DoH!

I meant to put Boolean.
Ahh what the heck!...Who cares about memory management anyway! :)

by treddie
Replies
4
Views
269

### 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...

by treddie
Replies
4
Views
269

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...
36. ## Thread: Mysterious function in API

by treddie
Replies
3
Views
409

### 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.)
37. ## Thread: Mysterious function in API

by treddie
Replies
3
Views
409

### 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...
38. ## Thread: Dependencies out of date error

by treddie
Replies
42
Views
3,397

### Re: Dependencies out of date error

Yes, it can help prepare other newbies for the fact that installations are not a "one-click" proposition, even though MS could have gotten a lot closer to that ideal than they did.
39. ## Thread: Dependencies out of date error

by treddie
Replies
42
Views
3,397

### Re: Dependencies out of date error

Pretty crazy, in the least.

Thank you VERY much for your help with all of this, dilettante! You really helped me get a good start on working with installations. I wish I could give you a great...
40. ## Thread: Dependencies out of date error

by treddie
Replies
42
Views
3,397

### Re: Dependencies out of date error

OK, now I'm just frustrated. IT WORKS NOW! But why?! It seems that something is wrong in VSI...I tell it to do something and if I set it up correctly the first time and don't change anything, it...
Results 1 to 40 of 416
Page 1 of 11 1

Featured