encryption

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sva0008
    New Member
    • Apr 2008
    • 19

    encryption

    Hi ,
    i am new to visual basic .
    I have this scenerio .
    i have a table name paytable with columns:
    id , Account number , encrypted_acc .

    I want to write a VB program to select all the account number from the table paytable.
    and then send each account number to encryption Dll which is alredy written.
    and then store the encrypted account number in column encrypted_acc.

    can any one plese post the code i am new to VB.

    Regards
  • AIProgrammer
    New Member
    • Jul 2008
    • 28

    #2
    Hello,
    Though I am not putting in the exact code, but some guidelines are there, using these, you may make a search in MSDN to find the exact 'TYPE SIGNATURE' i.e. function definitions :
    1. Data can never be sent to a DLL that way. A DLL is already loaded in memory as a shared library, you can access it.
    2. To do so, place the DLL in the project file (.vbp) 's directory itself.
    2. Use the Declare command to declare the functions in the DLL to VB.
    3. Call these functions using exact parameters needed.
    4. Take care of whether ByVal (by value) or by ByRef ( By reference).
    5. Using the function, you may pass the values, and get the encrypted data. Maybe the function in the DLL was written as a C-function. Is it?

    Bye.

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      try to follow these steps.

      1.fetch data from database
      2.pass to dll function/procedure
      3.process that.
      4.send that back to database .

      Comment

      • sva0008
        New Member
        • Apr 2008
        • 19

        #4
        can anyone post the code for this.

        Comment

        • debasisdas
          Recognized Expert Expert
          • Dec 2006
          • 8119

          #5
          Originally posted by sva0008
          can anyone post the code for this.
          can you post what you have tried so far for further discussion on the topic.

          Comment

          Working...