|
What I mean is...
your client app should
receive on port 1460
speak on 5001
your server app should
speak on 1460
receive on 5001
|
|
|
|
|
Assume there is a file called .dat. In that has a lot of texts.Its size is more than 400 kb.
In VB, i read the .dat file and store it in a string variable.
is it possible to store all the texts in a string?
Plz Help....
Thanks & Regards
Kumaran
|
|
|
|
|
Kumaran 21st Century wrote: is it possible to store all the texts in a string?
Yes.
|
|
|
|
|
Hi,
i build up an application in vb.net and win Instr option i searched for a string and depending upon the string found i am making some action ie copying or moving that file ,
i have made the script but its findout the string from some files and from some files cannot what could be the reason.
I am using FileStream property to read the word document line by line , can any one help me in this.
Regards
|
|
|
|
|
It doesn't work because a Word documnet is a multiple stream, binary format that doesn't work very well with any of the FileStream classes.
You have to open the document in Word to search for some text in it. This goes WAY beyond a simple text file reader and an Instr function. Now your getting into Office Automation. You can start with the documentation here[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi
Thanks for reply , but actually its working but its not moving some of the word file when search in the directory.
that means it findout for some word file but for some its not i want to know actually is there any way you can just track the whole word and find out exact word.
Regards
|
|
|
|
|
You might want to open one of those .DOC files that doesn't work in Notepad and see if you can find the word your searching for.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi all.
I need to get current itemIndex from DataRow.
can help?
|
|
|
|
|
david bagaturia wrote: I need to get row from datatype.
Sorry, I can't understand your request.
|
|
|
|
|
david bagaturia wrote: I need to get current itemIndex from DataRow.
From the DataTable you have a collection of Rows (DataRowCollection [^]) which has an IndexOf [^] method. Pass the relevant DataRow in to the IndexOf method to get the result you want.
|
|
|
|
|
It help me thanks, but I need some littel Example to see how it works.
Can you write or tell ware I get littel code to find how it work.
Tanks again for you reply.
|
|
|
|
|
david bagaturia wrote: I need some littel Example to see how it works.
Dim theIndex as Integer
theIndex = myDataTable.Rows.IndexOf(someRow)
|
|
|
|
|
GIven the text file path.
on find button click it should prompt to find what in the text file ,and then a replace option to replace this foundd item with specified replace string in the text file
thanks
|
|
|
|
|
|
i need to more data by using Crystal Reports.
so that i changed
portrait to landscape in my class.
(objReport.PrintOptions.PaperOrientation = CrystalDecisions.[Shared].PaperOrientation.portrait
to
objReport.PrintOptions.PaperOrientation = CrystalDecisions.[Shared].PaperOrientation.landscape)
now i am getting larger screen.
SUB: My doubt is how to increase width( direct view ) of reprot in report project.
|
|
|
|
|
Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByRef hpDest As any, ByVal hpSource As any, ByVal nBytes As integer)
I am converted the vb code into vb.net in this the copy memory function does not work it seems.
I am calling the function in the form
Call CopyMemory(arrBarCodeInformation(0), ptrBarCodeInfo, size_Renamed)
but is showing some error .How to use the copy memory in vb,net here arrBarCodeInformation(0) is an structure value.slove the above problem and also give me the code for the same.
pls help me to slove the problem..

|
|
|
|
|
|
I have tryied but i need to copy the integer value into the structure variable .how can i do that.pls give me the code .its very difficult for me to convert.pls help me its very urgent....

|
|
|
|
|
I love how many people post 'it's very urgent' but don't give anything resembling the info that people need to help.
sundar_mca wrote: i need to copy the integer value into the structure variable
Assuming that you have a block of memory that represents the struct, you can presumably use marshalling to copy the block of memory across. Or, you can cast that memory location to BE the struct, and copy them manually.
sundar_mca wrote: .pls give me the code
That you would even ask this, based on the info you've provided ( nearly none ), tells me that you're in over your head. Try posting the information that describes the problem, then perhaps we can help.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
sorry for sending such messages.i hav etryied the marshaling function muct i want to copy the integer value to structure how can i do it using marshal function
|
|
|
|
|
If all you're doing is marshalling a structure back and forth to unmanaged code, you DO NOT NEED the CopyMemory function. Post more of this code that your trying to translate so we can help. If you don't, there's nothing we can do to help!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Why does the Return statement of a VB function return a 0 or -1 when we assign a value to the variable being returned?
For eg:
Module Module1
Sub Main()
Dim i As Integer = 3
i = square(i)
Console.WriteLine(i)
Console.Read()
End Sub
Private Function square(ByVal i As Integer) As Integer
i = 6
Return i = 6
End Function
End Module
O/P: -1
|
|
|
|
|
You are not assigning a value to i. Rather you are comparing if i = 6 which is a boolean value that the system is converting to an int.
Turn option strict to on in the the application properties (compile tab) and you will get a compiler error telling you implicit conversion from Boolean to Integer is not allowed.
Mike Lasseter
|
|
|
|
|
You re right. Thankyou Lasseter
|
|
|
|
|
I'm trying to search my hard drive for all of my .mp3 files. If anyone could help me and guide me with some sample code i would greatly appreciate it. Thanks.
CALVIN Muller
|
|
|
|