Hi,



You need a handle to the windows process id. The example below gets the ID of Axapta.



    DLL         user            = new DLL('USER32');

    DLLFunction getActiveWindow = new DLLFunction(user,'GetActiveWindow');

    WINGDI      Absi;

    ;

    GetActiveWindow.returns(EXTTYPES::DWORD);

    Absi=new WINGDI(getActiveWindow.call());

    Absi.setBKMode(1);



Mit freundlichen Grüßen / Best regards / Med venlig hilsen



Jesper Jørgensen

NMS - Entwicklung Axapta

arvato systems Technologies GmbH

An der Autobahn 18

33311 Gütersloh

http://www.arvato-systems.de <BLOCKED::http://www.arvato-systems.de/>

E-Mail: [EMAIL PROTECTED]

Phone: 05242 / 40 80 54

Fax:      05242 / 40 80 40

Mobile: 0172 / 571 03 34

____________________________________________________________________________________________

"Der Inhalt dieser Nachricht oder eventueller Anlagen ist vertraulich und ausschließlich für den bezeichneten Adressaten bestimmt. Bitte stellen Sie sicher, dass die Information in dieser Nachricht ausschließlich an die adressierten Personen gelangt. Sollte diese Nachricht versehentlich an Sie gesendet worden sein, dann informieren Sie bitte umgehend den Absender und löschen Sie die Nachricht. Vielen Dank."

"The information in this e-mail and any attachments is confidential. The information must only be held in areas that have controlled and limited access to the addressed persons. If this e-mail has been sent to you in error, please immediately notify the sender and delete the e-mail. Thanks."

  _____ 

Von: abdulabsi [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. Februar 2005 15:38
An: development-axapta@yahoogroups.com
Betreff: [development-axapta] Error when calling WINGDI method..!





Hi guys,

I am facing a probelm in calling one of the Axapta WINGDI class
methods called setBKMode(int i).

I am call it from a testing job:-

static void Job5(Args _args)
{
    WINGDI Absi;
    ;
    Absi=new WINGDI(1);

   Absi.setBKMode(1);
}

When I run this job I got "DLL funtion was not found,Can not creat
DLL function" Error.

Any advises..!

Regards,
Absi










  _____ 

Yahoo! Groups Links

*      To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
 
*      To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
 
*      Your use of Yahoo! Groups is subject to the Yahoo! <http://docs.yahoo.com/info/terms/>  Terms of Service.



[Non-text portions of this message have been removed]





Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to