|
ok...
i want to get a part of single line with MID,LEFT,RIGHT ecc and store the piece of line in a var.
About array mode, is simple one suggestion.. in Google i have seen with FSO is a good way to speed the reading or not?
|
|
|
|
|
I, like Paul, still wonder why you need all the lines in an array?
Do you really need all the lines in memory at once?
sal21 wrote: in Google i have seen with FSO is a good way to speed the reading or not?
FSO? Are you using VB6?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: Do you really need all the lines in memory at once?
I am still waiting for a real answer to that question I asked him. His requirements still make little sense other than picking off pieces of the text, but why everything all at once?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Paul Conrad wrote: I am still waiting for a real answer to that question I asked him.
To benchmark how fast the memory can be filled?
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
More along the lines of what is the purpose of reading the entire file into memory at once.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi,
sal21 wrote: is a good idea?
No!
File.ReadAllLines will read the file and give you the huge array you are looking for;
however generating such a huge array will be detrimental to the performance of your app, no matter how you do it.
If a single pass through the file is all you need, have a look at streams. If you only need a fraction of the file's content, read it line by line, don't store all the lines, simply store the pieces you need (use StreamReader.ReadLine)
|
|
|
|
|
sal21 wrote:
I hope and think is the best way to import this BIG file...
When you say "import", what *exactly* are you implying. Are we talking just getting the data from the file into your app to use variables/collections of some kind. Then I would agree with the above, that using a streamreader and reading line by line would be the best bet.
OR, if your goal is to get this data into a DB like SQL? If this is the case, I would scrap what you're doing an look into DTS/SSIS since both give you programmatic control of the data coming in and format/manipulate as needed. Speed wise, there's not even a comparison.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
GetPointOfView is an integer but reports in degrees.
example
up returns 0
right returns 9000
down returns 18000
left returns 27000
sound simple enough, but as we know it will not give value over 32767. In this case it is max out at 31500. so i am losing degrees 31501 to 3599.
I do not seem to be able to change the GetPointOfView to anything other then an integer. Anyone noticed this before?
|
|
|
|
|
That's odd. I've never really worked with DirectX and MSDN didn't seem to say much about that Wondered if degrees 31501-35999 would be represented as negative integers but MSDN says -1 represents being centered...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Paul
Question?
if the value went negitive would i not get 7FFF?
I am just learning this VB express. I really did not like it at first but it is groing on me. Maybe you can teach old dogs new tricks.
|
|
|
|
|
Derek Pescod wrote: if the value went negitive would i not get 7FFF?
Only if you converted it to hexadecimal.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
I answered my question.
I did not notice but it is reporting back in 45 degrees. I was only interested in 270 to 360 degrees.
Thanks to all how helped.
|
|
|
|
|
Hi
I have developed a toolbar which needs to invoke a javascript function based on some criteria on specific web page.
To be simple, I want to know how to invoke javascript from BHO(using VB.NET).
I have done everything already but just this one needs help.
Thanks in anticipation
Mujtaba Panjwani
MAP Tiger
Tiger Softwares
Software Designer and Developer
VB.NET, ASP.NET, VFP
|
|
|
|
|
I have created vb application using crystal report 9 when i build the exe. it run well my machine but not running another machine without crytal report9.
When click report button through this error
"Runitime error '429'; ActiveX componenet can't create object"
kindly provide solution
also tell me required DLL and OCX
Thanks and Regards
D.Manivelan
|
|
|
|
|
Does Crystal not come with any sort of help files ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
You have to either install CR9 on the machine, or build your app's installer to include the CR9 runtime. This is all documented in the CR9 documentation.
|
|
|
|
|
|
Hi all...
I am creating a simple,small image editor program.
I have almost completed my program but except one thing.
I have associated .jpg files to my program (using registry editor).
Now, the main thing is that when I double click on any .jpg file, my program gets open but that image is not open in my program's picture box.
I want to do that when i double click on any .jpg file, that .jpg file would automatically open in my program (appear on my application's picturebox) for editing rather then loading .jpg file through my application manually.
Thanks.
Gagan
|
|
|
|
|
When you double click on the file, Explorer launches the associated application with a command line like this:
MyApp.exe "C:\FullFile\path.jpg"
Your application has to process the command line arguments to get the filename to open. It doesn't happen automagically.
A quick Google will give you a ton of examples -> "VB.NET command line arguments"[^]
|
|
|
|
|
Thanks Dave for your idea.
I have done what I wanted.
Gagan
|
|
|
|
|
Please be applied to code, i am not very English, so please affixed code complete some
Teacher, thank you
|
|
|
|
|
Try searching the articles on the site.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Go away
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Means Web camera try this.
Webcam componet name:vc1
Picturebox name is: pic1
VC1.EditCopy()
Pic1.Image = Clipboard.GetImage
|
|
|
|