Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

C++ into delphi syntax

ruliandiruliandi Member Posts: 15
How to convert this C++ syntax into delphi?

.
.
.
//Variabel declaration
static COPYDATASTRUCT* copyData = NULL; I think.
PTCHAR text = NULL;
.
.
.

copyData = (COPYDATASTRUCT*) lParam;
text = (PTCHAR) copyData->lpData;
SetWindowText(textBox, text);
return TRUE;



thanks!!


Comments

  • zibadianzibadian Member Posts: 6,349
    : How to convert this C++ syntax into delphi?
    :
    : .
    : .
    : .
    : //Variabel declaration
    : static COPYDATASTRUCT* copyData = NULL; I think.
    : PTCHAR text = NULL;
    : .
    : .
    : .
    :
    : copyData = (COPYDATASTRUCT*) lParam;
    : text = (PTCHAR) copyData->lpData;
    : SetWindowText(textBox, text);
    : return TRUE;
    :
    :
    :
    : thanks!!
    :
    :
    :
    Here's de Delphi declarations based on the code:
    [code]
    var
    copyData: PCopyDataStruct = nil;
    text: PChar = NULL;
    [/code]
    [code]
    copyData := PCopyDataStruct(lParam);
    text := copyData.lpData;
    SetWindowText(textBox, text);
    [/code]
    I don't know the COPYDATASTRUCT itself, but it appears to be some object class or record.
  • ruliandiruliandi Member Posts: 15
    : : How to convert this C++ syntax into delphi?
    : :
    : : .
    : : .
    : : .
    : : //Variabel declaration
    : : static COPYDATASTRUCT* copyData = NULL; I think.
    : : PTCHAR text = NULL;
    : : .
    : : .
    : : .
    : :
    : : copyData = (COPYDATASTRUCT*) lParam;
    : : text = (PTCHAR) copyData->lpData;
    : : SetWindowText(textBox, text);
    : : return TRUE;

    : :
    : :
    : :
    : : thanks!!
    : :
    : :
    : :
    : Here's de Delphi declarations based on the code:
    : [code]
    : var
    : copyData: PCopyDataStruct = nil;
    : text: PChar = NULL;
    : [/code]
    : [code]
    : copyData := PCopyDataStruct(lParam);
    : text := copyData.lpData;
    : SetWindowText(textBox, text);
    : [/code]
    : I don't know the COPYDATASTRUCT itself, but it appears to be some object class or record.
    :

  • ruliandiruliandi Member Posts: 15
    : : How to convert this C++ syntax into delphi?
    : :
    : : .
    : : .
    : : .
    : : //Variabel declaration
    : : static COPYDATASTRUCT* copyData = NULL; I think.
    : : PTCHAR text = NULL;
    : : .
    : : .
    : : .
    : :
    : : copyData = (COPYDATASTRUCT*) lParam;
    : : text = (PTCHAR) copyData->lpData;
    : : SetWindowText(textBox, text);
    : : return TRUE;

    : :
    : :
    : :
    : : thanks!!
    : :
    : :
    : :
    : Here's de Delphi declarations based on the code:
    : [code]
    : var
    : copyData: PCopyDataStruct = nil;
    : text: PChar = NULL;
    : [/code]
    : [code]
    : copyData := PCopyDataStruct(lParam);
    : text := copyData.lpData;
    : SetWindowText(textBox, text);
    : [/code]
    : I don't know the COPYDATASTRUCT itself, but it appears to be some object class or record.
    :


    Ok, thanks b4, i'll try it!
Sign In or Register to comment.