List Info

Thread: Using 3rd Party DLLs




Using 3rd Party DLLs
user name
2006-12-12 15:48:49
My credit card vendor has a DLL they provide that I can
call.  I'm not
sure what I'm doing here and they have no instructions on
how to
install it or use it with C#.

I've gotten as far as putting the DLL into the Bin folder. 
When I
declare it in code as follows, Intellisense is able to find
the
clsSecurePay(), so I know its finding it.  But when I go to
reference
the properties it doesn't find them and gives an error
"Compiler Error
Message: CS1519: Invalid token '=' in class, struct, or
interface
member declaration"

SPCOMDN.clsSecurePay objSPCOM = new SPCOMDN.clsSecurePay();

objSPCOM.Amount = "1.00";

When I right-click clsSecurePay() and go to the object
definition,
everything seems to be fine.  Perhaps I'm not declaring it
right or
haven't referenced it correctly.

Here's the object definition:

using System;

namespace SPCOMDN
{
    public class clsSecurePay
    {
        public clsSecurePay();

        public string Amount { get; set; }
        public string AVSREQ { get; set; }
        public string CCMethod { get; set; }

... blah blah

        public void SendTransaction();
    }
}


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http
://groups-beta.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---

Using 3rd Party DLLs
user name
2006-12-12 16:53:13
Instead of just copying the DLL into the bin directory try
right
clicking on your project and choosing Add Reference.  Then
go to the
COM tab and choose the dll from there.

Before doing this you should probably remove the DLL from
thebin
directory that you copied there.  See if this works.


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http
://groups-beta.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )