Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

delphiдµÄÒ»¸öcom×é¼þÔÚC#Öе÷Ó÷½·¨Ê§°Ü

µ÷ÓÃdelphiдµÄÒ»¸öcom×é¼þ£¬·½·¨ÊÇ
procedure test(out Param1: Integer); safecall;


×¢²ácomÖ®ºóÔÚc#ÖÐÒýÓö¼Ã»ÓÐÎÊÌâ

............´´½¨²¿·Ö¾ÍÊ¡ÂÔ²»Ð´ÁË
............
int v_int;
test(out v_int); µ÷ÓÃtest

µ«ÊÇÔËÐгö´í£¬
·þÎñÆ÷³öÏÖÒâÍâÇé¿ö¡£ (Òì³£À´×Ô HRESULT:0x80010105 (RPC_E_SERVERFAULT))


Õâ¸ö¼òµ¥µÄÒ»¸ö·½·¨£¬¶¼²»ÐУ¬ÊDz»ÊÇdelphiÖÐcom·½·¨µÄ²ÎÊýÀàÐÍд·¨²»¶Ô»¹ÊÇʲôԭÒò£¬»¹Çë¸ßÈËÏêϸ½â´ð¡£
½«COM×é¼þ·âװΪ.dll£¬ÔÙµ÷ÓÃÊÔһϡ£

ÔÚÄãµÄCOM´ò¶Ïµã£¬È»ºóʵʱµ÷һϣ¬ÎÒÓÐDELPHIдµÄCOMÔÚC#³É¹¦µ÷Ó㬲¢ÇÒºÜÎȶ¨¡£

[Quote=ÒýÓà 2 Â¥ sqldebug_fan µÄ»Ø¸´:]
ÔÚÄãµÄCOM´ò¶Ïµã£¬È»ºóʵʱµ÷һϣ¬ÎÒÓÐDELPHIдµÄCOMÔÚC#³É¹¦µ÷Ó㬲¢ÇÒºÜÎȶ¨¡£
[/Quote


ÄãµÄÒâ˼ÊÇÔÚdelphiÖеÄcom´úÂëÖÐÉè¶Ïµã£¬ÔÚc#µ÷ÊÔ¸úÖУ¿£¿£¿£¿£¿

ÓÐЩ²»Ã÷°×£¬ÄÜ·ñÏêϸÌṩÏ´úÂëÎÒ²âÊÔÏ¡£

ÎÒ¾ÍÊÇÏÂÃæÕâÑùµ÷Óõİ¡¡£ºÜ¼òµ¥µÄÒ»¸öcom·½·¨Ñ½£¬¾ÍÊÇ·ÃÎÊÒ»¸öÊý×Ö£¬¶¼Ê§°ÜÁË¡£
int v_int;
ComObj.ComObjClass aCom = new ComObj.ComObjClass();
aCom.test(out v_int);





ÒýÓÃ
ÔÚÄãµÄCOM´ò¶Ïµã£¬È»ºóʵʱµ÷һϣ¬ÎÒÓÐDELPHIдµÄCOMÔÚC#³É¹¦µ÷Ó㬲¢ÇÒºÜÎȶ¨¡£



ÄÜÏêϸ˵˵ÄãµÄ·½·¨Âð£¿ÔÚÏߵȡ£¡£¡£

Õâ¸öÎÒÒ²ÓйýÁË,¾ÍÊÇÔÚ±¾µØµ÷ÊÔûÓÐÎÊÌâ,Ò»µ½·þÎñÆ÷¾Í³ö´í,ºóÀ´ÎҸɴ಻ҪÄÇdllÁË,ÎÒÏëÎÊÌâÊÇ·þÎñÆ÷µÄȨÏÞÎÊÌâ

ÒýÓÃ
Õâ¸öÎÒÒ²ÓйýÁË,¾ÍÊÇÔÚ±¾µØµ÷ÊÔûÓÐÎÊÌâ,Ò»µ½·þÎñÆ÷¾Í³ö´í,ºóÀ´ÎҸɴ಻ҪÄÇdl


Ïà¹ØÎÊ´ð£º

sqlССµÄÒÉÎÊ - .NET¼¼Êõ / C#

¿ÉÄÜÒòΪ¹¤×÷µÄÔ­Òò ½Ó´¥Êý¾Ý¿âÕâ¿é±È½ÏÉÙ£¬Ö®Ç°¶¼ÊÇ×ö³ÌÐòÕâ¿é£¬Êý¾Ý¿âÕâ¿é¶¼ÓÐרÃŵÄÈËÀ´×ö ·Ö¹¤¶¼ºÜÃ÷ϸ ËùÒÔ¶ÔÊý¾Ý¿âÕâÒ»¿éÍêÈ«²»Á˽⡣ǰ¶Îʱ¼ä È¥ÃæÊÔÁ˼¸¼Ò¹«Ë¾ ¼¸ºõ¶¼ÊÇÔÚÊý¾Ý¿âÕâ¿é¹ÒµôµÄ Á¬¸ö¼òµ¥µÄSQ ......

Ç¿ÁÒ½¨ÒéDELPHI°æ¸ü»»´ó°æ - Delphi / ·Ç¼¼ÊõÇø

hongqi162¡¢windindance
´Ë2È˳¤ÆÚ²»ÔÚÏߣ¬ÌرðÊÇwindindance
¸ü»»ÓÐÄÜÁ¦µÄÈËÉÏ
hongqi162»¹ÊǾ­³£ÉÏÀ´×ª×ªµÄ

ÒýÓÃ
¸ü»»ÓÐÄÜÁ¦µÄÈËÉÏ
ÆäʵҲ²»ÊÇʲôÄÜÁ¦µÄÔ­Òò£¬Ö÷Òª¿ÉÄÜÊÇʱ¼äÎÊÌâ°É
¹¤×÷µÄ»¹ÒªÉÏ°à£¬Ñ§Ï ......

C#ºÍÊý¾Ý¿âSQL - MS-SQL Server / »ù´¡Àà

ÎÒÃÇC#×öÒ»¸ö´°Ìå ÍùÊý¾Ý¿âÀï²åÈëÊý¾Ý
  SqlConnection cn = new SqlConnection("Data Source=20090713-1752\\SQLEXPRESS;Initial Catalog=goods;Integrated Security=True");
  ......

Õâ¸öSQLÓï¾äÓÐʲôÎÊÌâ? - Delphi / ·Ç¼¼ÊõÇø

select * from shuju.DB where ¿ªÅ̼Û-ÊÕÅ̼Û<=0.02
¿ªÅÌ¼Û ÓëÊÕÅÌ¼Û ÊÇÊý¾Ý¿âÀïµÄ×Ö¶Î
select * from aTableName where ((¿ªÅ̼Û-ÊÕÅ̼Û) <=0.02 )

¿ªÅ̼۱ÈÊÕÅ̼۵ÍÁ½·ÖÒÔϵÄÇé¿ö

Mark!!!!!!

se ......

±éÀúÒ»¸öxml²¢Êä³öÖ¸¶¨½ÚµãµÄÖµ - .NET¼¼Êõ / C#

ÎÒÓÐÒ»¸öÀàËƵÄxmlµÄ string£¬Ïëͨ¹ý±éÀúÔõô¸öxml Êä³öÎÒÏëÒªµÄelementµÄÖµ
xml Ϊ£º
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
  <RequestType>DISCOVER_XML_ME ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ