User Profile

Collapse

Profile Sidebar

Collapse
danishce
danishce
Last Activity: Sep 14 '07, 03:16 PM
Joined: Apr 2 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • danishce
    started a topic Calling VB.Net Dll using Visual C++
    in .NET

    Calling VB.Net Dll using Visual C++

    Hello,

    I am using VS.NET 2003. I am making a DLL in VB.NET for use in a Visual C++ application. The problem is my Visual C++ application does not execute functions in .Net dll.
    I started a new class library project and here's the code in the class module:

    Public Class ClsMerchant
    Public Function TestMerchant()
    dim vexist as integer
    vexist=1
    return...
    See more | Go to post

  • danishce
    replied to Call Visual C++ DLL using VB.NET
    in .NET
    Thanks all.its working
    See more | Go to post

    Leave a comment:


  • danishce
    started a topic Memory error using Visual C Dll in VB.Net Program
    in .NET

    Memory error using Visual C Dll in VB.Net Program

    I am using Visual C Dll in my vb.net application which pass parameters

    from my application and return value. some times it returns data ok and

    some time it does not return data or return incorrect values.i think

    there is a memory problem so how can i handle memory in my vb.net

    application so it display data correctly. the code for my application

    is:

    <DllImport("D:\ Dot...
    See more | Go to post

  • danishce
    replied to Call Visual C++ DLL using VB.NET
    in .NET
    Yes it works. but how i pass vb.net buffer array to visual C pointer variable.I want to set the value of m_buffer variable which pass value to dll pointer variable buffer but it gives me the NullException error.(object reference not set to an instance of an object).my code is:

    Imports System.Runtime. InteropServices
    Dim m_buffer(1024) As Byte

    <DllImport("myd ll.dll", CallingConventi on:=CallingConv ention.StdCall) >...
    See more | Go to post

    Leave a comment:


  • danishce
    replied to Call Visual C++ DLL using VB.NET
    in .NET
    My code for calling Visual C DLL named "MYDll.dll" in vb.net is:

    <System.Runtime .InteropService s.DllImport("My Dll.dll", _
    SetLastError:=F alse)> _
    Public Shared Function SayHello(ByVal T_VININ As String) As String
    End Function

    Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
    Dim tes As...
    See more | Go to post

    Leave a comment:


  • danishce
    started a topic Call Visual C++ DLL using VB.NET
    in .NET

    Call Visual C++ DLL using VB.NET

    I getting error on calling DLL that was made in VC++ 6 from my vb.net application . i am right clicking on the project in Solution explorer, and trying to add a reference. In the reference window,
    under the browse tab, i try to add a reference to my dll. I have also copied that dll into the project directory.
    But when i select the dll and click on ok i get a message box saying"A reference to the dll could not be added.
    ...
    See more | Go to post

  • danishce
    started a topic MSComm Receive Hex Data Error

    MSComm Receive Hex Data Error

    Hello All:
    I am receiving data in hex format using serial communication MSCOMM control.The data reads ok but when it find hex(0) means EndofFile character in ASCII it exits and does not read data after the EndofFile character.
    The code for receiving hex data is:

    Private Sub MSComm1_OnComm( ByVal sender As Object, ByVal e As System.EventArg s) Handles MSComm1.OnComm

    Dim m_cardData As String...
    See more | Go to post

  • Basically i am developing a message interface document and send/receive data to server from my application using winsock TCP/IP. There is a MAC field in the document which apply CBC MAC encryption to plain text that i send to server and return 8 byte key in output.Then i send this 8 byte key with my plain text and the server check my message with their interface. At the server end their is a third party involved which developed server interface...
    See more | Go to post

    Leave a comment:


  • danishce
    replied to Generate Key using Cipher Block Chaining MAC
    in .NET
    ComputeHash function is available in MD5CryptoServic eProvider Class but in DESCryptoServic eProvider Class ComputeHash is not available instead it will provide ICryptoTransfor m function which uses CreateEncryptor method.

    I studied that DES provide 8 byte output key but unable to generate the output key in 8 byte.waiting for any help?
    See more | Go to post

    Leave a comment:


  • danishce
    replied to Generate Key using Cipher Block Chaining MAC
    in .NET
    I have studied that DES CBC algorithm generate 64 bits (8 byte Hex) encrypted output but when i implement the algorithm in vb.net it gives the same length output as my plain text.i need help on how i obtain 8 byte encrypted output.

    Private key() As Byte = {1, 2, 3, 4, 5, 6, 7, 8}
    Private iv() As Byte = {65, 110, 68, 26, 69, 178, 200, 219}

    Dim plainText As String
    plainText = "HelloWorldhjsl kajldalkdjlaksj dlakdja"...
    See more | Go to post

    Leave a comment:


  • danishce
    replied to Generate Key using Cipher Block Chaining MAC
    in .NET
    Hi,

    I need to calculate the Cryptographic checksum using ISO/IEC 9797-1 MAC
    algorithm with cipher block chaining MAC. The resultant MAC length must be 8 bytes.
    As a sample, the data I am working on now is:
    Data = '72C29C2371CC9B DB65B779B8E8D37 B29ECC154AA56A8 799FA E2F498F76ED92F2 '
    Kmac = '7962D9ECE03D1A CD4C76089DCE131 543'


    Resultant MAC[Kmac](Data)='5326532 0' (I want to know how...
    See more | Go to post

    Leave a comment:


  • danishce
    started a topic ISO/IEC 9797-1 CBC MAC using vb.net
    in .NET

    ISO/IEC 9797-1 CBC MAC using vb.net

    Hi,

    I need to calculate the Cryptographic checksum using ISO/IEC 9797-1 MAC
    algorithm with cipher block chaining MAC. The resultant MAC length must be 8 bytes.
    As a sample, the data I am working on now is:
    Data = '72C29C2371CC9B DB65B779B8E8D37 B29ECC154AA56A8 799FAE2F498F76E D92F2'
    Kmac = '7962D9ECE03D1A CD4C76089DCE131 543'


    Resultant MAC[Kmac](Data)='5326532 0' (I want to know how...
    See more | Go to post

  • danishce
    started a topic VB.Net Encrypted Key Generation
    in .NET

    VB.Net Encrypted Key Generation

    I want to generate 8 byte key using CBC MAC by applying encryption to whole message in vb.net.My code is:

    //Main form Code
    Imports System.Security .Cryptography
    Dim plainText As String
    Dim cipherText As String

    Dim passPhrase As String
    Dim saltValue As String
    Dim hashAlgorithm As String
    Dim passwordIterati ons As Integer
    Dim...
    See more | Go to post

  • danishce
    started a topic winsock Data Sending Problem
    in .NET

    winsock Data Sending Problem

    I am developing a client/server application using vb.net winsock programming.
    I am sending data to Server and at the same time receive the incoming data from the server.
    Everything works fine but when i goto next form and send data again to server it gives error.
    Please help me?
    See more | Go to post

  • danishce
    started a topic VB.NET Winsock Client/Server Data sending Problem
    in .NET

    VB.NET Winsock Client/Server Data sending Problem

    Hello All:
    I am developing a client/server application using vb.net winsock programming.
    I am sending data to Server and at the same time receive the incoming data from the server.
    My application have 3 Windows Forms.
    1-FrmInquiry
    2-FrmSale
    3-FrmBalance
    When i send and receive data from FrmInquiry to server it works fine but
    My problem is when i go to any other form(ex FrmSale) from FrmInquiry...
    See more | Go to post

  • danishce
    replied to Generate Key using Cipher Block Chaining MAC
    in .NET
    The 642 ASCII Characters are in Simple Plain Text and i want to generate 8 Byte key on applying CBC MAC to whole message. I dont know how to achieve this in vb.net?
    See more | Go to post

    Leave a comment:


  • danishce
    replied to Generate Key using Cipher Block Chaining MAC
    in .NET
    Still i can not find solution to my problem on generating 8 byte hex key by applying CBC MAC to whole message using vb.net.
    Any one can help me out?
    See more | Go to post

    Leave a comment:


  • danishce
    replied to Print Report directly to Printer
    in .NET
    Thanks All for helping me out,I have finally succeeded using following code:
    Dim obj As New CrystalDecision s.CrystalReport s.Engine.Report Document
    Dim m_rptname As String
    m_rptname = System.Environm ent.CurrentDire ctory & "\MiniStatement .rpt"
    obj.Load(m_rptn ame)
    obj.PrintToPrin ter(1, True, 0, 0)
    See more | Go to post

    Leave a comment:


  • danishce
    replied to Print Report directly to Printer
    in .NET
    MyReport.PrintT oPrinter(1,Fals e,0,0)
    In the above code, how i create report object named MyReport because when i create object the report name does not appear.Report name is "RptStatement.r pt"
    dim MyReport as new RptStatement
    it gives the error.
    Please help me out on how i create report object or can i miss any referenece to report?
    See more | Go to post

    Leave a comment:


  • danishce
    replied to Generate Key using Cipher Block Chaining MAC
    in .NET
    The example described in this website used for encrypting data but i want to generate 8 byte key in output through applying CBC MAC to whole message.
    suppose sample message is 642 ASCII characters
    message=0005422 000002789454602 028020263020024 8898712120..... .
    the key generate by applying CBC MAC through this message is
    key=24598762

    this is my requirement to generate 8 byte key by applying CBC MAC to whole...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...