-=-
.
.....
  
 
RSS
Direkomendasikan menggunakan brower Opera/Chrome/Firefox. Resolusi minimal 1024x768 | Powered by ____ |
 
  
 
Nikmati Delphi-ID dalam berbagai versi tampilan :
Basic View (LOW Bandwidth)
Default View (Full)
Mobile Edition
Main Menu
..:: onWebTools ::..
..:: onLastPosts ::..
goto Postjumlah komponen maksimal dalam sebuah project(6)
 by d4mnf1y32
 on 21.May at 12:16
goto Posttanya grayscale to biner dengan scanline(1)
 by luckynvic
 on 20.May at 20:44
goto Posttanya looping biner to matriks(1)
 by luckynvic
 on 20.May at 20:10
goto Postsql error:acces denied for user....(2)
 by nasbms
 on 19.May at 16:54
goto Postpemanggilan frame(4)
 by nasbms
 on 19.May at 16:14
goto Posttanya AvLock(0)
 by azuriza
 on 19.May at 11:24
goto PostGet TDBEdit Value Menggunakan LookUp Grid(10)
 by henry_sys
 on 18.May at 11:27
goto Postmenghitung record dalam perulangan(4)
 by idhiel
 on 16.May at 13:53
goto Posttanya ascii(4)
 by mas_kofa
 on 16.May at 12:11
goto PostRawPrint Untuk Delphi XE2(0)
 by adewijaya
 on 15.May at 22:34
goto Postdatabase error..(4)
 by idhiel
 on 15.May at 15:57
goto Postbekasi, pt arila putra mahkota(3)
 by mas_kofa
 on 15.May at 15:37
goto Postbagaimana cara membaca file *.doc dg delphi?(0)
 by ficky
 on 15.May at 06:14
goto Posttanya biner to matriks(13)
 by diandewi
 on 14.May at 20:30

..:: onLast Articles ::..
..:: New Download ::..
Pascal-id.Org
Feeds -  Popular -  Latest
RE: The Longue
8 months, 3 weeks ago
RE: belajar pascal
8 months, 3 weeks ago
RE: The Longue
8 months, 3 weeks ago
RE: belajar pascal
8 months, 3 weeks ago
RE: Perkenalan dan Absen
8 months, 3 weeks ago
RE: Alhamdulillah Buka Puasa Bersama
8 months, 4 weeks ago
RE: تَقَبَّلَ اللهُ مِنَّا وَمِنْكَ - Selamat Hari Raya Idul Fitri
8 months, 4 weeks ago
Lintas Situs
«
free web site stats and visitor tracking

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
anzfreakOffline
Location:
19 Post subject: tanya, gimana cari manggil overload function dari dll  PostPosted: 21/Oct/2009 17:10



Joined: 21-Oct-2009
Posts: 1

Status: Offline
teman2 yang baek hati,,saya mau tanya.. saya punya fungsi yang overload di dalam sebuah file DLL,, fungsi itu sudah saya export sbb:
fungsi:

      Code:

function GetErrorMsg(errcode:Integer; strParam:string) : PChar; stdcall; overload;
var strMsg:string;
begin
  if (errcode = 1) then
  begin
    strMsg := 'Failed to upload file: ID0005 File already uploaded.';
    //Result := PCHAR(strMsg);
  end
  else if (errcode = 2) then
  begin
    strMsg := DateToStr(Now)+' Unable to upload Security ID: '+strParam+' Because Security ID is not available at Security Standing Data.';
    //Result := PCHAR(strMsg);
  end
  else if (errcode = 3) then
  begin
    strMsg := DateToStr(Now)+' Unable to upload Subclient ID: '+strParam+' Because Subclient ID is not available at Subclient Standing Data.';
    //Result := PCHAR(strMsg);
  end
  else if (errcode = 4) then
  begin
    strMsg := DateToStr(Now)+' Unable to upload Client Name of Client ID: '+strParam+' Because Client ID is not available at Client Standing Data.';
    //Result := PCHAR(strMsg);
  end;
  Result := PCHAR(strMsg);
end;


function GetErrorMsg(errcode:Integer; strParam:string; fileName:string; row:Integer) : PChar; stdcall; overload;
var strMsg:string;
begin

  if (errcode = 1) then
  begin
    strMsg := 'Failed to upload file: Tes.xls Data Line: 360 Because security ID: ID0005 is not available at Security Standing Data.';
    //Result := PCHAR(strMsg);
  end
  else if (errcode = 2) then
  begin
    strMsg := DateToStr(Now)+' Failed to upload file: '+fileName+' Data Line: '+IntToStr(row)+' Because subclient ID: '+strParam+' is not available at Subclient Standing Data.';
    //Result := PCHAR(strMsg);
  end
  else if (errcode = 3) then
  begin
    strMsg := DateToStr(Now)+' Failed to upload file: '+fileName+' Data Line: '+IntToStr(row)+' Security Type of Security ID: '+strParam+' is not SUN or SBI.';
    //Result := PCHAR(strMsg);
  end
  else if (errcode = 4) then
  begin
    strMsg := DateToStr(Now)+' Failed to upload file: '+fileName+' Data Line: '+IntToStr(row)+' Security Type of Security ID: '+strParam+' is not available at Security Standing Data.';
    //Result := PCHAR(strMsg);
  end
  else if (errcode = 5) then
  begin
    strMsg := DateToStr(Now)+' Failed to upload file: '+fileName+' Data Line: '+IntToStr(row)+' Subclient ID: '+strParam+' is not available at Subclient Standing Data.';
    //Result := PCHAR(strMsg);
  end;
  Result := PCHAR(strMsg);
end;


export
      Code:

export
GetErrorMsg(errcode:Integer; strParam:string),
GetErrorMsg(errcode:Integer; strParam:string; fileName:string; row:Integer);


tetapi ketika fungsi itu dipanggil di project lain,,salah satunya tidak bekerja..ada yang bisa bantu??

thx
 
 View user's profile Send private message  
Reply with quote Back to top
n3o_cybertech
Location: NgAyUkYoKarTo
Post subject: RE: tanya, gimana cari manggil overload function dari dll  PostPosted: 21/Oct/2009 18:11
onProfessional


Joined: 10-Feb-2007
Posts: 993
Location: NgAyUkYoKarTo
sepengetahuan saya, fungsi DLL memang tidak dapat di-overload.

_________________

Delphi Rock!

Blog : MyBlog | Facebook : Add Me :)
 
 View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic





Powered by PNphpBB2 © 2003-2009 The Zafenio Team
Credits


| Register | Lost Password ? |