Original Sender : "Hadi Wijaja" <[EMAIL PROTECTED]>
---------------------------------
> >Langsung aja nih, bisa nggak sih file *.dll yang dicreate
> >dengan visual
> >basic, dijalankan dengan program yang dicreate dengan delphi
> >atau c++ ? Atau
> >sebaliknya ?
>
> bisa. Cuman yang harus diperhatikan adalah function/procedure
> declaration di program yang akan memanggil *.DLL tsb., kalo ndak
> sesuai dengan yang dideklarasikan di *.DLL bakalan ndak mau
> jalan.
-----------------
Minta tolong yah..., nih saya lampirkan file 8255.cpp & 8255.def -nya:
----------------------------------------------------------------------------
----------------
825.cpp listing :
#include <stdio.h>
#include <conio.h> // contains Visual C++'s inp and out functions
// ------------------------------------------------------
// FUNC: Out8255
// DESC: uses Microsoft's Visual C++ _outp() function
// to output a PortData to PortAddress
// ------------------------------------------------------
short _stdcall Out8255( int PortAddress, int PortData )
{
short Dummy;
// Need Dummy since _outp officially returns int
// short is a 16-bit integer in Win32 C++
// whereas int is 32-bit integer Win32 C++
// use (short) to force returning 16-bit integer
// back to VB
Dummy = (short)(_outp( PortAddress, PortData ));
return(Dummy);
}; // end of Out8255
// ----------------------------------------------------
// FUNC: In8255
// DESC: uses Microsoft's Visual C++ _inp() function
// to read PortAddress
// ----------------------------------------------------
short _stdcall In8255( int PortAddress )
{
short PortData;
// short is a 16-bit integer in Win32 C++
// whereas int is 32-bit integer in Win32 C++
// use (short) to force returning 16-bit integer
// back to VB
PortData = (short)(_inp( PortAddress ));
return( PortData );
}; /* end of In8255 */
------------------------------------------------
8255.def listing :
LIBRARY 8255
DESCRIPTION DLL FOR 8255 CARD
EXPORTS
Out8255 @1
In8255 @2
---------------------------------------------------
Bisa tolong dituliskan nggak code pemanggilannya ? contoh
aplikasinya....gitu
> >And satu lagi, gue baca di buku delphi 3 (karangan lokal) ada
> >info untuk
> >bisa create file berbasis dos di delphi (di option-nya
> >project), tapi koq
> >nggak bisa yah ?
> emang bisa kamu tambahin compler directive:
>
> {$APPTYPE CONSOLE}
>
> di *.dpr kamu, cuman nanti aplikasi nya kurang lebih jadi spt.
> Turbo Pascal.
--------------
di tambahinya di mana yah...di listing paling atas ?
Sorry yah, kalau pertanyaannya rada aneh, soalnya baru main delphi sih....,
biasanya pake pascal, jadi bingung....
> oh, ya, kalo mau tanya soal beginian mendingan subscribe aja ke
> [EMAIL PROTECTED], caranya kirim mail ke [EMAIL PROTECTED], dg.
> body message: SUBSCRIBE delphi
---------------
saya sudah kirim mail ke [EMAIL PROTECTED], dan sudah dapat mail
confirmasi, tapi waktu di kirim kunci pengaktifan, ditolak ama server
centrin, terus saya rubah smtp dengan telkom.net, terkirim, tapi ada pesan
error dari server itb.ac.id....bisa tolong dibantu nggak ?
Pesan error tersebut :
Hi. This is the qmail-send program at mail.telkom.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<[EMAIL PROTECTED]>>:
Sorry, I couldn't find any host named itb.ac.id>. (#5.1.2)
--- Below this line is a copy of the message.
Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 7042 invoked from network); 24 Dec 1999 17:56:44 -0000
Received: from unknown (HELO hadispc) (202.146.241.245)
by telkom.net with SMTP; 24 Dec 1999 17:56:44 -0000
Message-ID: <022501bf4e3a$cdab79a0$f5f192ca@hadispc>
From: "Hadi Wijaja" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]">
Subject:
Date: Sat, 25 Dec 1999 01:14:54 +0700
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
auth 70b4c63e subscribe delphi [EMAIL PROTECTED]
Thank berat
regards
HADI
----------------------------------------------------------------
Compu-Mania MailingList is provided by PT Centrin Utama
Maintained by : [EMAIL PROTECTED]
To Post a msg : Send mail to [EMAIL PROTECTED]
To Unsubscribe : Mail to [EMAIL PROTECTED]
BODY : unsubscribe Compu-Mania
For more information, send mail to [EMAIL PROTECTED]
with "HELP" in the BODY of your mail (without quote).
----------------------------------------------------------------