![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Visual Basic Discuss Visual Basic programing. |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#2
| ||||
| ||||
| . |
|
#3
| ||||
| ||||
| I'm not really sure what your asking? This works in VB.NET 2003. So it should work in 2005. (This is some code I wrote a while back, as an example only)
. |
|
#5
| |||
| |||
| Sorry, I must have been too vague with my problem. What I want to do is open a file for random access, and read from it. In VB6 (from what I remember) you would do this: dim a as string * 1 open filename$ for random len =1 recloc=100 get 1, recloc, a The above would get the character at position 100 in the file. With VB Express (which I think is the same as vb.net) you have a differnet open statement and get statement. I have tried them, but I get a record length error. I was hoping someone had some sample code that worked. |
| Sponsored Links |
|
#6
| ||||
| ||||
http://msdn.microsoft.com/library/en...asp?frame=true Like the RGB color value? The code above gets the "X=50 & Y=50" location of a .jpg (just change to .bmp) I think that everything in .net has to be declared as a "New Bitmap" no matter what (GDI+ thing, going on) . |
|
#8
| |||
| |||
| I personally can't stand dot net. Sorry, just couldn't resist. I found AutoIT does what I want without all the random web searching it takes to find out how to do simple things. I'm sure it's just a mental limitation of mine, but nowhere could I find a concise description of the overall scheme of things. And I found examples of ten lines of code to do simple functions. After spending weeks playing with the language to write a simple routine I chucked the whole thing and went looking for another language. From now on, I will stay away from any software with the word "enterprise" anywhere on its website. End of rant, please disregard. --97T-- |
|
#9
| |||
| |||
| 97T- I agree with you. Maybe I am just not the organized type, but it has gotton so "structured" that it makes it difficult to do simple tasks. I realize that it also allows more felxability, but it makes it too difficult to learn and use for simple tasks. |
|
#10
| |||
| |||
| You may have already figured out your problem, but if it helps I had the same problems with some fills in VB6 and found that it was reading some of the data as on end of file code. I was able to open in binary and loop through till I got the data I needed. |
| Sponsored Links |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |