#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    67
    Rep Power
    7

    Question Can Any One Help Me Convert From Delphi To VB.net or At-least C#


    i need following code in vb.net (or at-least in c#)

    Code:
    Function SendCommand(cmd: String): boolean;
    Var
         copyDataStruct           : TCopyDataStruct;
         receiverHandle           : THandle;
    Begin
         result := false;
         copyDataStruct.dwData := 0;        //0=string
         copyDataStruct.cbData := 1 + Length(cmd);
         copyDataStruct.lpData := PChar(cmd);
    
         receiverHandle := FindWindow(PChar('TAvroMainForm1'), Nil);
         If receiverHandle = 0 Then
              Exit;
    
    
         SendMessage(receiverHandle, WM_COPYDATA, 0, Integer(@copyDataStruct));
         Result := True;
    End;
    any help would be highly appreciated..

    thanks in advance
  2. #2
  3. Lord of the Dance
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Oct 2003
    Posts
    4,201
    Rep Power
    2012

IMN logo majestic logo threadwatch logo seochat tools logo