|
carlos_rocha wrote:
I've tried to create a class library with those functions and then add my project, but i can´t use the classes i have there
what prob u r facing?
just simply add reference to the assembly and use those funcs in ur project
<< >>
|
|
|
|
|
please gimme the steps and codes to design a currency converter
thank you
|
|
|
|
|
rexford wrote:
gimme
Since this looks like a homework question, I'll help you to understand the problem. You should then have enough information to write your own code based on what ever book you are following or the information provided by your tutor.
Currency conversion is a fairly easy problem to solve. You have a source currency and a destination currency and a conversion factor. This is usually expressed in the format of one unit in the source currency is equal to some units of the destination currency.
For example. £1.00 == €1.46
So, to get from Sterling to Euros (left to right) you multiply the value by 1.46. To get from Euros to Sterling (right to left) you divide by 1.46.
How about if it is expressed the other way around.
€1.00 == £0.68
The calculation is the same (left to right / source to destination) you multiply. To go the other way (right to left / destination to source) you divide.
Does this help?
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
There's nothing to this. The most complicated part is getting the current exchange rate for the currencies involved. I don't know of a public source myself, but if you get this data, the rest is easy: TargetCurrency = SourceCurrency * ExchangeRate .
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hmm,
Depend what information did you get?
for example you want to know for 50 USA is how much on money on RMB
Frist you need to know 1.00 USD = 8.50 RMB
then using the following equation
A = 1.00 USD_
B = 8.50 RMB_
C = 50.00 USD_
X = ? RMB_
A (USD_) = B (RMB_) --> eq.(1)
C (USD_) = X (RMB_) --> eq.(2)
X = (B/A) * C
You can create a Function to accomplish that.
Hope it will help. If I am wrong please correct me.
|
|
|
|
|
i need help to design a currency converter betwwen two currencies.i need the steps and the codes involed or if possible the tutorials...thank you for helping me.....quami
thank you very much...quami
|
|
|
|
|
hi there,
take a look on this article
Currency converter
it might give u an idea though it's for Pocket...
<< >>
|
|
|
|
|
hiiiiiiii Group
iam going to build a project to monitor and control remote PC, the main points in the project are working with, API, image capturing and networking program. and there are many things other. for now i wanna help to understand these concepts and how to do this with VB.NET.
by the way the program have 2 versions server version for administrator and client version for users.
* The administrator can shutdown, restart, close applications,...., etc.
* The administrator monitors the client screen just by choose the local IP of that client.
* The administrator is provided with reports for the client activities of a period of time
* The administrator defines the previlige of the users on the network (Optional)
these are outlines of my Project, i feel i will learn lot of things with this project.
so anyone have any idea helps me, plz submit it to me or anyone wanna join me with this project i will be happy to share him. so if there any one intersting reply here or contact me via E-mail: mdallal84@yahoo.com
|
|
|
|
|
You do realize you're about the zillionth person to try to re-invent PCAnywhere?
Mdallal84 wrote:
* The administrator can shutdown, restart, close applications,...., etc.
* The administrator monitors the client screen just by choose the local IP of that client.
Well, you're going to need a VNC library to help you handle screen capturing. It's simply the best way to do it.
Mdallal84 wrote:
* The administrator is provided with reports for the client activities of a period of time
Being a LAN guy myself, I really don't see the need for this. But, of course, this depends on what your tracking. I know I wouldn't want to go through reports like this. It's too tedious and time consuming. I've got enough crap to do without babysitting everyone. If I want to monitor someones activities, I'll target that person and turn on the sniffer to catch them red-handed.
Mdallal84 wrote:
* The administrator defines the previlige of the users on the network (Optional)
Totally unneccessary and impractical to implement. This is best done by the proper network administration tools for the directory of the network in question, be it Microsoft's Active Directory, Novell's eDirectory (formerly known as NDS), LDAP, whatever, ...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
sir/madam,
I am Raju Malladada 2005 Batch CSE branch.I got maore interedted to learn the .NET so Plz help me about it means which book i have to refer and even i don't have the .NET CDs tell me how can i get them.
Raju
Raju malladada
|
|
|
|
|
|
|
Hi, I would really appreciate some advice: I need to create a tree structure in vb (this i can do) and then store and retrieve it from a database (i'm using Access), something similar to a directory structure.
My problem is that the number of levels is unknown - I've tried using a table with category and parentCategory fields and making recursive calls to it, but my algorithm is not working the way it should. If someone has better ideas, please let me know...
Dave
|
|
|
|
|
Yours is a question that requires a long and deep answer. Also it could be handled from several standing points.
If you're looking for an algorithm to serialize a tree I imagine something like one of those.
If your tree is not incredibly deep you could associate at each element a code that represent it's position:
First element: A
Sons of A: AA, AB, AC, ...
Sons of AB: ABA, ABB, ABC
and so on.
Then you could save it in a simple record made of: [data][code]
If you want unlimited branches than this won't work. An idea that works only if you treat data sequentially is:
[data][relationship]
where relationship identify if this member is: root, son of precedent or brother of it.
D/K if it helps.
|
|
|
|
|
Hi,
Is there any away to uncompress the files with extension .tar.Z.
Thanks and advance,
Shiva
|
|
|
|
|
There is nothing in the .NET BCL that'll do this. You have to use a third-party library, like #ziplib[^], to do it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I use Directory.GetFiles to grab the names of files in the specified directory. How can i specify how many of files i need to grab through this command. For example, in a folder have 100 files, but i just need to grab 10 files each time.
Thanks!
|
|
|
|
|
my solution for this is use Directory.GetFiles to get all the files and put into a string array then go through the array to get certain amount of files back.
thanks!
I am Entry level person
|
|
|
|
|
i wrote a simple code as below:
Imports System.IO
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
' Only get files that begin with the letter "c."
Dim dirs As String() = Directory.GetFiles("C:\Documents and Settings\Max\Desktop\software engineer", "*.ppt")
'MsgBox("The number of files starting with c is {0}." & dirs.Length)
Dim dir As String
Dim i As Integer = 0
For i = 0 To 4
dir += dirs(i)
Label1.Text = dir
Next
Catch ex As Exception
MsgBox("The process failed: {0}", e.ToString())
End Try
End Sub
End Class
I am Entry level person
|
|
|
|
|
Thanks for the reply.
But the problem is the system is slow down with command directory.getfiles when there is a huge number of files in the specified path. The files in that path are accumulating fast.
any idea ?
|
|
|
|
|
You'll have to write your own implementation of .GetFiles() . The one you're using doesn't support just getting X number of files at a time.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks, Dave Kreskowiak!
what is the idea behind this .GetFiles()? Go to path, order those files by creation time, and grab it one by one to x number?
Need your advice, Thanks!
|
|
|
|
|
What do you mean?
.GetFiles() just gets all of the filenames in a directory. It doesn't do any sorting.
If you want a sorted list of files by date/time, even if you wanted the newest 10 files, you'll have to read the filename for all the files in the directory, sort them, then take the top 10. There's no way around this.
Now, if you could get away with this, you move the files you've already processed to another folder. This way, you're not trying to read the filenames of a 1,000 files just to sort them by date/time and then process the top whatever number of files. It's just when you're done with them, move them so you don't end up reading the same filenames over and over.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the idea!
|
|
|
|
|
Hi all,
I am runing an application which will check URL in my database there are around 3000 url in my database and i use .net http response and request to check the url the following are the code snippet..
Public Function checkurl(ByVal url As String) As String
Dim req As System.Net.HttpWebRequest
Dim res As System.Net.HttpWebResponse
Dim r As System.IO.StreamReader
Dim ex As Exception 'error exeption holder
Dim pge As String 'page holder
Dim title As String
Dim strreturnstring As String
'url = "http://www.getforme.com/e404.htm" ' not working becos have charset =ISO - 8859-1
'url = "http://environmentalchemistry.com/" not working becos have charset = iso - 8859-1
'url = "https://www.iclub.com/investorama.html"
Try
'display request url
req = req.Create(url)
req.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)"
req.AllowAutoRedirect = True
'get page
res = req.GetResponse()
r = New System.IO.StreamReader(res.GetResponseStream())
'pge = r.ReadToEnd
r.Close()
res.Close()
strError = "OK"
status = "True"
'Convention is First Value is the Status and Second value is Errmsg
strreturnstring = status & "~" & strError
Return strreturnstring
Catch ex
status = "False"
strError = ex.Message
strreturnstring = status & "~" & strError
Return strreturnstring
End Try
End Function
my code working fine but the problem is when my code run URL which as charset = iso - 8859-1 or charset = windows - 1252 it just thro exception that The remote server returned an error: (400) Bad Request. or The underlyng connection is close..
can any one tell the reason why,
Thanx for your interest
regards
cyus
|
|
|
|