delphi 2009 SQLStoredProcÖ´ÐдíÎó˵û²ÎÊý£¿
SQLStoredProc.StoredProcName:='[dbo].[UpDIMS]';
SQLStoredProc.ParamByName('@Mindex').AsInteger:=mInfo.Mindex;
SQLStoredProc.ParamByName('@Longitude').AsInteger:=mInfo.Longitude;
SQLStoredProc.ParamByName('@Latitude').AsInteger:=mInfo.Latitude;
SQLStoredProc.ParamByName('@Angle').AsInteger:=mInfo.Angle;
SQLStoredProc.ParamByName('@Speed').AsInteger:=mInfo.Speed;
SQLStoredProc.ParamByName('@Time').AsInteger:=mInfo.Time;
SQLStoredProc.ExecProc;
´æ´¢¹ý³ÌÈçÏ£º
ALTER PROCEDURE [dbo].[UpDIMS]
-- Add the parameters for the stored procedure here
@Mindex int,
@Longitude int,
@Latitude int,
@Angle int,
@Speed int,
@Time datetime
AS
BEGIN
--ÅжÏdb_infoÖÐÊÇ·ñ´æÔڼǼ
if(select count(*)
from db_info where Mindex=@Mindex)>0
update db_info set Longitude=@Longitude,Latitude=@Latitude,Speed=@Speed,Angle=@Angle,[Time]=@Time where Mindex=@Mindex
else
insert into db_info values(@Mindex,@Longitude,@Latitude,@Speed,@Angle,@Time)
insert into db_info_his values(@Mindex,@Longitude,@Latitude,@Speed,
Ïà¹ØÎÊ´ð£º
VC++ ÖУ¬ &±äÁ¿Ãû¡£ ÊÇʲôÒâ˼¡£ DelphiÖÐ ºÍËûÒ»ÑùµÄ·ûºÅ ÊÇÄĸö¡¢£¿
´ó¼Ò¶¼ÈÏΪ£¬CÓïÑÔÖ®ËùÒÔÇ¿´ó£¬ÒÔ¼°Æä×ÔÓÉÐÔ£¬ºÜ´ó²¿·ÖÌåÏÖÔÚÆäÁé»îµÄÖ¸ÕëÔËÓÃÉÏ¡£Òò´Ë£¬ËµÖ¸ÕëÊÇCÓïÑÔµÄÁé»ê£¬Ò»µã¶¼²»Îª¹ý¡£Í¬Ê±£¬ ......
¸÷λ¸ßÊָϿì°ï°ïæ¡£
ÏÖÔÚÓÐÒ»¸ödelphiдµÄdll£¬º¯ÊýÖÐÓÐPIntegerµÄ·µ»Ø²ÎÊý£¬ÔÚdelphiÖпÉÒÔÕý³£µ÷Ó㬵«ÊÇÎÒÔÚvbÀïдµÄʱºò¾Í²»ÖªµÀ¸ÃÔõôÀ´µ÷ÓÃÁË¡£
Çë¿´´úÂë
ÒÔÏÂÊÇdelphiÖеĺ¯Êý¶¨ÒåºÍµ÷ÓôúÂ룬ÄÜÕý³£ÔËÐ ......
¼±Óá£ÁªÏµQQ£º8775262£¬Ð»Ð»¡£
ÐèÒª½øÐÐDllImportµÄµØ·½Ö±½ÓдDLLImport.·½·¨Ãû¡£
È磺DLLImport.GlobalAddAtom(¡¡);
Îļþ£ºUShare.pas
Delphi(Pascal) code:
unit UShare;
interface
uses Windows, Me ......
ÒªÇóÄÜʵÏÖ¶þÈËÔŲ́ͬµçÄÔÉ϶ÔÕ½µÄ ²»ÓÃÌ«»¨ÉÚ ×îºÃ»¹¼ÓÉÏÈË»ú¶ÔÕ½µÄ ¼±Ðè ˰ïÏÂæ°¡Ñ½!!!!!!!!
up
baidu£¬google
up
http://www.codepub.com/software/view-software-4061.html
ÍøÕ¾ÉÏÓÐ
......