Okie, Im new to programming with APIs and dont have a lot of experience in VB and almost none in VB.NET that being said. . . help. Okie, so Im basically crawling through other peoples code thats similar to what Im trying to do and then trying it out myself. But everyone elses code is in VB 6.0 and Im trying to work in .NET, which might be causing my problems, or it might be other stuff I dont really know about. Okay so Im starting off pretty basic, and I THINK Im working with an API, cuz like I said Im new at this whole thang and could be posting in the complete wrong forum. So, hope your still with me .
Okay so all the code Ive looked at is using the FindWindow function to get a reference to the window I want to refrance, ok fine. But their all returning Integers and when I try to get it as an int I get 0. However when I change it to return a Long I get a value. Another strange thing happens though Im not sure if this is supposed to or not, but evertime I FindWindow with the same parameters I get a different value.
Ive tried working with the FindWindow on different programs and they work fine. Im having issues with WinAmp. I guess I should probably also tell you that Im not sure what references to add so Im not using any. This may be the problem?
This is probably a really dumb question so Id really appreciate like some quick answer, thanks.
Okay so all the code Ive looked at is using the FindWindow function to get a reference to the window I want to refrance, ok fine. But their all returning Integers and when I try to get it as an int I get 0. However when I change it to return a Long I get a value. Another strange thing happens though Im not sure if this is supposed to or not, but evertime I FindWindow with the same parameters I get a different value.
Ive tried working with the FindWindow on different programs and they work fine. Im having issues with WinAmp. I guess I should probably also tell you that Im not sure what references to add so Im not using any. This may be the problem?
This is probably a really dumb question so Id really appreciate like some quick answer, thanks.