|
Ok. I have made it.
thanks.
|
|
|
|
|
Hi
I want a DLL that compare 2 text and give me the diffrents (highlight them).
TY.
|
|
|
|
|
Me wants a software that makes me rich or happy (or both)!!!!!!
Read the guidelines at the top of this page and rephrase your "question"!
Greetings
Covean
|
|
|
|
|
There are several articles on CP about how to do it, with source code.
|
|
|
|
|
|
|
I want to ask how can I read the data from the smartcard using C#? I want to read the government national ID card details but and the government provide this details only:
<a href="http://www.smartcard.gov.bh/pdf/readerspecs.pdf">Smartcard Specefication</a>[<a href="http://www.smartcard.gov.bh/pdf/readerspecs.pdf" target="_blank" title="New Window">^</a>]
|
|
|
|
|
By the looks of this the readers will implement a couple of protocols. There are a number of SDKs on the web for Mifare (some free, some paid).
If you know who the manufacturer is, you can likely request the SDK directly from them.
Without that, you'd minimally need to work backwards from the driver if you have it. You'll also need guidance on what is stored on the card and how to pull it off, in the absence of an SDK. If you don't have those thing, uh...you won't be reading from the card in any reasonable amount of time.
Cheers.
|
|
|
|
|
http://Spritebrowser.com
I want some one to sale this software for me
|
|
|
|
|
If you want to advertise you need to pay for it.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Wrong Forum, you need one on a completely different site.
|
|
|
|
|
i have the decimal point saved in my database as decimal_point field and i am saving it in a hashtable key to be used in my whole application.. now my question, how can I use that figure to format all the numeric numbers to have the same decimal points as my decimal_point value?
do I have to say:
if decimal_point = 0 then format it as zero
else if decimal_point = 0 then format it as one
else if decimal_point = 0 then format it as two
else if decimal_point = 0 then format it as three
or there is a better way to do it?
|
|
|
|
|
Do you mean something like this:
decimal decVal = 984.125m;
int nDecimalPoint = 2;
string szFormattedValue = decVal.ToString("F" + nDecimalPoint.ToString());
Greetings
Covean
|
|
|
|
|
what about the textbox mask?
|
|
|
|
|
The problem is, intermittently i get the error:
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005.
It throw up when I use:
Excel.Application app = new Microsoft.Office.Interop.Excel.Application();
and it happens randomly.
What could be the reason?
Dose anyone have any experience with this,thanks in advance for ur assistance.
modified on Wednesday, June 23, 2010 5:15 AM
|
|
|
|
|
Hi all
how to transfer values from one datatable to another datatable. For example there are 2 datatables Table A and Table B. If then column name in Table A is the same as Table B then all the values of that column will go into Table B of the same column name.
Hope you understand me.
Thank you
zheng
|
|
|
|
|
For Each dr As DataRow In sourceTable.Rows
destinationTable.ImportRow(dr)
Next
sourceTable is Table A
destinationTable is Table B
|
|
|
|
|
If you want to add a new column from table A to table B
you should foreach the data row of the table a
DataTable b, a;
foreach (DataRow dr in a.Rows)
{
string id = dr["id"].ToString(); DataRow[] bDr = b.Select(string.Format("id = '{0}'", id));
bDr[0]["value"] = dr["value"];
}
|
|
|
|
|
I am coding this utility to test raising of an exception, however, I have noted that Visual Studio 2010 IDE does not allow me to call the ArithmeticUtilityException.Divide() method. Why?
I have also (desperately) tried to declare the class as static and the Divide() method as static, however, no joy either.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CustomException
{
class Program
{
static void Main(string[] args)
{
ArithmeticUtilityException utility = new ArithmeticUtilityException();
}
}
public class ArithmeticUtilityException : ApplicationException
{
public ArithmeticUtilityException() : base() {}
public ArithmeticUtilityException(string message) : base(message) {}
public ArithmeticUtilityException(string message, Exception inner) : base(message, inner) {}
}
public static class ArithmethicUtility
{
public decimal Divide(decimal number, decimal divisor)
{
try
{ return number / divisor; }
catch (Exception err)
{
ArithmeticUtilityException errNew = new ArithmeticUtilityException("Divide by zero", err);
throw errNew;
}
}
}
}
NOTES
1. Related link Static Classes and Static Class Members (C# Programming Guide)
2. Personal note. ..\Training\CustomException.
Jon
|
|
|
|
|
jon_80 wrote: does not allow me to call the ArithmeticUtilityException.Divide() method. Why?
Because you don't have one?
public class ArithmeticUtilityException : ApplicationException
{
public ArithmeticUtilityException() : base() {}
public ArithmeticUtilityException(string message) : base(message) {}
public ArithmeticUtilityException(string message, Exception inner) : base(message, inner) {}
}
public static class ArithmethicUtility
{
public decimal Divide(decimal number, decimal divisor)
{
...
}
}
Divide is a member of ArithmethicUtility, not ArithmeticUtilityException
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
Thanks
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CustomException;
namespace CustomException
{
class Program
{
static void Main(string[] args)
{
ArithmethicUtility utility = new ArithmethicUtility();
Decimal myNumber = utility.Divide(5, 0);
}
}
public class ArithmeticUtilityException : ApplicationException
{
public ArithmeticUtilityException() : base() {}
public ArithmeticUtilityException(string message) : base(message) {}
public ArithmeticUtilityException(string message, Exception inner) : base(message, inner) {}
}
public class ArithmethicUtility
{
public decimal Divide(decimal number, decimal divisor)
{
try
{ return number / divisor; }
catch (Exception err)
{
ArithmeticUtilityException errNew = new ArithmeticUtilityException("Divide by zero", err);
throw errNew;
}
}
}
}
Jon
|
|
|
|
|
You're welcome.
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
There is a com dll written by C++ ATL. There is no embedded type library resource in it, although I have its type library(.tlb file) seperately.
I can't add it to my C# project references. So, how should i do to use it?
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:18am.
|
|
|
|
|
Thanks for your reply. As we know, an atl com dll only export five functions:
DllCanUnloadNow,DllGetClassObject,DllRegisterServer,DllUnregisterServer.
So, im afraid that couldn't help to reach my aim, right?
|
|
|
|