|
I have to read the last 5 lines of several very very huge ASCII files, several times.
I want to see if it is possible to read only those last lines, instead of reading the whole junk data and getting to those 5 ending lines.
Could someone please help me, how to decrease this amount of waste of cpu time and un-wanted I/O?
|
|
|
|
|
Please don't cross post.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Can anyone help me to expalin how we can set and display only time value in propertygrid control in VB.net
Mahmood
|
|
|
|
|
Your object has to expose a public property that exposes a DateTime object.
If you want a custom editor to change that value, you have to make a custom UiTypeEditor, like this[^].
|
|
|
|
|
Hi All,
How to insert data into MS Project 2003 through VB 6.0 application.
Awating for your early reply.
Thanks.
Ahmed.
Ayaqoob.
|
|
|
|
|
I have a Binding source in a form. And I want to move to a Particular location in the Binding source. But I don't know the Position where to move, rather I know the Field Value of a unique field in the Records. Is there any way so that I can directly jump to that position in the binding source or I have to loop and check for that value in the records ?
Please Advice.
Thanks in Advance.
Sekhar
|
|
|
|
|
SekharOne wrote: Is there any way so that I can directly jump to that position
The binding won't find it for you. You have to know the position of the record, then tell the binding the position to use. So, yes, you have to find it yourself first.
|
|
|
|
|
hello frnd,
i have a XML document i want to read complete XML with DOM.
how can i do it...
cay code sample or link ????
thankx in advance
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Stop cross posting the same question in multiple forums.
You've been told this repeatedly, yet you persist.
|
|
|
|
|
i want to known how we can read one by one pixels from image and compare
|
|
|
|
|
You can't - VB is crap. Your best bet is to use the code in my C# image processing articles. Otherwise you're stuck with get/setpixel, which is very slow.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: You can't - VB is crap. Your best bet is to use the code in my C# image processing articles. Otherwise you're stuck with get/setpixel, which is very slow.
Actually it's get/setpixel that's crap not so much vb.
|
|
|
|
|
Christian's right that get/setpixel is too slow if you are manipulating alot of pixels. I did this one time by reading and writing a filestream though but this requires a little knowledge of the File format. I can give you an example for a 24 bit bitmap of how to read and write pixels that is fast if you give me a day or two. Would that help you?
|
|
|
|
|
I should ask. Are you familiar with things like file streams? If not then my example isn't going to make any sense.
|
|
|
|
|
I have written a utility that displays runing processes. The only problem that it doesn't show if I have windows explorer open in the process list. I've nnarrowed the list down to show applications that are currently running, but doesn't show any instances of Windows Explorer.
Thanks for your help.
I am always greteful for any help!
|
|
|
|
|
Well, without knowing anything about how you're enumerating the processes or where you're getting your information from, it's pretty impossible to tell you what you're doing wrong.
For soemthing like this, I'd probably use the Process class and it's GetProcesses method. This will return all running processes, including explorer.exe.
|
|
|
|
|
Thanks Dave,
I've been using the Process class and the GetProcess method. This works well but doesn't list a separate process if I have windows explorer open on a certain directory/folder. I'm trying to list all running applications including any instances of windows explorer and the folder/directory that it is pointing to.
I've read somewhere that the listing of windows explorer is a top-level listing and that is why it doesn't appear in running process.
Thanks
Graeme Guildford
I am always greteful for any help!
|
|
|
|
|
GuildfordG wrote: I'm trying to list all running applications including any instances of windows explorer and the folder/directory that it is pointing to.
Those are not seperate processes. Each is a window belonging to a single instance of explorer.exe. You have to enumerate the windows using the Shell.Application COM object and it's Windows[^] property.
|
|
|
|
|
Thanks Dave, I'll give it a go and let you know.
I am always greteful for any help!
|
|
|
|
|
Sorry Dave but I've looked everywhere for the Shell.Application COM object in Visual Basic 2005. Can you please help me to locate and use this object?
Thanks again
Graeme
I am always greteful for any help!
|
|
|
|
|
You need to be adding a reference to "Microsoft Shell Controls and Automation". Or just add it to the .DLL directly, C:\Windows\system32\shell32.dll .
|
|
|
|
|
Sorry Dave, I've added Microsoft Shell Controls and Automation, then Imported shell32 namespace.
I wrote a test code to view the application windows that are currently running as follows:
Dim shlApplications As Shell
Dim obj As Object
shlApplications = New Shell
For Each obj In shlApplications.Windows
MsgBox(obj.GetHashCode.ToString)
Next
The only problem is that it is not returning the name of the application(s) that are running.
Can you help please?
Thanks
Graeme
I am always greteful for any help!
|
|
|
|
|
Hai!
I need to transfer data from sql server 2005 to foxpro database(dbf source type). But i am unable to do this. Kindly help me in this regard.
Thanks in advance
Y Kesava Rao
|
|
|
|
|
There are lot of free or trial database converters available on line..
If u are not getting a direct one then at least u can convert it to something other DB and then from there convert it to foxpro..
Good luck
|
|
|
|
|
I was on the MSDN web site and found a function that is useful to me. Here is the function.
Public Function SelectRows(ByVal dataSet As DataSet, ByVal connectionString As String, ByVal queryString As String) As DataSet<br />
Using connection As New SqlConnection(connectionString)<br />
Dim adapter As New SqlDataAdapter()<br />
adapter.SelectCommand = New SqlCommand(queryString, connection)<br />
adapter.Fill(dataSet)<br />
Return dataSet<br />
End Using<br />
End Function
Is the SqlConnection function a function that is in VB.NET or is this something I have t6o write?
When I was on the MSDN site I saw a Sql Connection Class, but am not sure if it is a class that the VB.NET program will write for me. Is it possible that it did write the function for me but it is called something different or is it in a namespace?
Here is the url where I got the code. I am getting the blue line under the SqlConnection function call. How do I fix this?
|
|
|
|