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

delphiµ÷ÓÃC#дµÄweb·þÎñÀý×Ó

×î½üÒ»¸öÏîÄ¿Óõ½ÁËdelphiµ÷ÓÃC#дµÄweb·þÎñµÄ¹¦ÄÜ¡£ÓÃÁËÒ»ÌìµÄʱ¼äÕÒÔ­Òò£¬ÖÕÓÚ²âÊÔͨ¹ýÁË¡£
ÕâÊÇÒ»¸öͨ¹ýweb·þÎñ°ÑÒ»¸öÕÕÆ¬ÉÏ´«µ½ÍøÕ¾Ö¸¶¨Î»Öõķ½·¨¡£ÏȲâÊÔÁËN´Î¶¼²»³É¹¦£¬Í¨¹ý¸ú×Ù·¢ÏÖdelphi¸ù±¾Ã»´«¹ýÀ´ÈκÎÖµ£¬Í¨¹ý²é×ÊÁÏ·¢ÏÖVS2005 ĬÈÏÊÇÓÃµÄ SoapDocumentProtocol¶øDelphi ÊÇʹÓÃµÄ SoapRpcProtocol.Õâ»áÔì³ÉËùÒÔ¿Í»§¶Ë´«¹ýÈ¥µÄ×Ö·û´®±ä
³Énull£¬ÐèÒªÔÚÉú³ÉµÄ½Ó¿Úµ¥ÔªµÄINITIALIZATION ²¿·Ö¼ÓÉÏÒ»¾ä£ºInvRegistry.RegisterInvokeOptions(TypeInfo(ServiceSoap), ioDocument);
¸ã¶¨ÁË¡£
·þÎñ´úÂ룺
    [WebMethod]
    public int UploadFile(byte[] fs, string FileName)
    {
        try
        {
            ///¶¨Ò岢ʵÀý»¯Ò»¸öÄÚ´æÁ÷£¬ÒÔ´æ·ÅÌá½»ÉÏÀ´µÄ×Ö½ÚÊý×é¡£
            ///¶¨Òåʵ¼ÊÎļþ¶ÔÏ󣬱£´æÉÏÔØµÄÎļþ¡£
            string FullFilename = Server.MapPath("photo\\") +  FileName;
            if (File.Exists(FullFilename)) { File.Delete(FullFilename); }
            FileStream f = new FileStream(FullFilename, FileMode.Create, FileAccess.Write);
            f.Write(fs, 0, fs.Length);
            f.Close();
            f = null;
            return 1;
        }
        catch
        {
            return 2;
        }
    }
delphi¿Í»§¶Ë´úÂ룺
procedure TFrmUpLoad.btn2C


Ïà¹ØÎĵµ£º

Using COM+ object pooling with Delphi 6

 URL: http://edn.embarcadero.com/article/27568
Abstract: Delphi 6 introduces support for COM+ object pooling, which can provide significant performance improvements under some circumstances. We take a look at Delphi 6s object pooling support. By Vincent Parrett.
Typically, when a client appl ......

Format¸ñʽ Delphi

Delphi formatµÄÓ÷¨
Ò»¡¢Formatº¯ÊýµÄÓ÷¨
FormatÊÇÒ»¸öºÜ³£Óã¬È´ÓÖËÆºõºÜ·³µÄ·½·¨£¬±¾ÈËÊÔͼ¶ÔÕâ¸ö·½·¨µÄ°ïÖú½øÐÐһЩ·­Ò룬ÈÃËüÓÐÒ»¸öÍêÕûµÄ¸Åò£¬ÒÔ¹©´ó¼Ò²éѯ֮Óãº
Ê×ÏÈ¿´ËüµÄÉùÃ÷£º
function Format(const Format: string; const Args: array of const): string; overload;
ÊÂʵÉÏFormat·½·¨ÓÐÁ½¸öÖÖÐÎʽ£¬Á ......

·­ÒëÒ»°ëµÄDelphi»ã±à°ïÖú

 The built-in assembler allows you to write assembly code within Delphi programs. It has the following features:
ÄÚǶµÄ»ã±àÆ÷ÔÊÐíÔÚdelphi³ÌÐòÖÐÊéд»ã±à´úÂ룬ËûÓÐÈçÏÂÌØÐÔ£º
Allows for inline assembly
ÔÊÐíÄÚǶ»ã±à
    Supports all instructions found in the Intel Pentium III, In ......

Delphi±àÒëÖ¸Áî˵Ã÷

¡¶DelphiÏÂÉîÈëWindowsºËÐıà³Ì¡·£¨¸½Â¼A Delphi±àÒëÖ¸Áî˵Ã÷£©
Õª³­ÈË£ºÂé×Ó qq:71892967
Delphi¿ìËÙ¸ßСµÄ±àÒëÆ÷Ö÷ÒªÀ´×ÔObject PASCALµÄÑϽ÷£¬Ê¹ÓÃDelphiËæÊ±¶¼ÔÚÓë±àÒëÆ÷½»Á÷£¬´ó²¿·ÖÇé¿öϲ»ÐèÒª¸ÉÉæ±àÒëÆ÷µÄÔËÐУ¬µ«ÊÇÓÐʱҲÐèÒª¶Ô±àÒëÆ÷½øÐбØÒªµÄÉèÖá£
*************************************************** ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ