List Info

Thread: Crystal 8 UDF's




Crystal 8 UDF's
user name
2006-11-13 15:53:44

Paul Bennett wrote:
> I am trying to create a Crystal 8 User Defined Function dll which
>; takes a single integer as a parameter and packs that integer up into
> a broadcast Message as the wparam parameter.
>
>; My code is shown below.
>
> function LaunchApplication (ParamBlock : PUFParamBlock) : UFError;

Is this the function exported by your DLL? It should probably use the
stdcall calling convention, not register.

> var Param1 : PUFParamListElement; //a pointer to the first parameter
> var n : integer;
> fWakeup : Cardinal;
> MyWakeup: PChar;
> begin
>; Param1 := GetParam (ParamBlock, 1); //the first param is the AppID
>; to launch
> //check if the correct number of parameters is passed to our
> function
>
> if (Param1 = nil) then
> begin
>; MyWakeup := Error;
> fWakeup := RegisterWindowMessage(MyWakeup);
> If fWakeup <> 0 Then
> nResult := PostMessage(hWnd_BROADCAST, fWakeUp, n, n);

What is the value of n?

Why are you storing an error string in a variable named fWakeup, as though
it's the same status the wakeup message you store in that variable later?
Go ahead and use different variables with appropriate names. It will make
the code easier to read.

And what is nResult?

--
Rob

__._,_.___
.

__,_._,___
TPrinter or winSpool help please
user name
2006-11-13 18:33:18

Is there anyone who is familiar with the winSpool or
TPrinter Class who can help me with getting the
Printer Tray Bin for example.
I wrote a small application that would pull back all
the print jobs from a particular server for example if
server name = \XMT-Print Then What it is that I am
trying to capture in addition to what I already have
which is
Page, user, ect.., I need to return the tray bin that
the print job was printed from.
if it was 11 1/2 x 7 or 8 1/2 x 11 I need to track the
paper type.. can anyone please help..?
thanks

MC

__________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

__._,_.___
.

__,_._,___
[1-2]

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