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

C++ºÍflexʵÏÖÁÄÌìÊÒ¹¦ÄÜ

¹«Ë¾°²ÅÅ¿ªÊ¼×ö·þÎñÆ÷£¬Ã»ÓнӴ¥¹ýÕâЩ¶«Î÷¡£´ÓÁ㿪ʼѧϰ¡£
ÏîÄ¿ÊÇ×ö¸öÁÄÌìϵͳ¿Í»§¶ËÓÃflex£¬·þÎñÆ÷ÓÃC++£¬ÈÃÎÒÏȳöDemo¡£
·þÎñÆ÷²¿·Ö²ÎÕÕWindowsÍøÂç±à³ÌÒ»ÊéÖеÄselectÀý×Ó£¬»ù±¾Ò»Ñù£¬Ö»ÊÇ°ÑÀý×ÓÖеĵĵ¥¸ö»ØÓ¦ÏûÏ¢¸Ä³ÉÁËȺ·¢ÏûÏ¢¡£
ËäÈ»ÎÒ¶ÔselectÄ£ÐÍ»¹²»ÊìϤ£¬µ«ÊÇÎÒÖªµÀÈç¹ûÒªÔÚÒ»¸öÌ×½Ó×ÖÉÏ·¢ÏûÏ¢¾Í±ØÐëÉèÖÃFD_SET    WriteSet£¬Èç¹ûÒªÔÚÒ»¸öÌ×½Ó×ÖÉ϶ÁÏûÏ¢¾Í±ØÐëÉèÖÃFD_SET    ReadSet£¬ÉèÖþÍÊǵ÷Óú¯ÊýFD_SET(SOCKET S, FD_SET* Set)¡£(¾ÍÒòΪÃ÷°×ÁËÕâÒ»µã²Å¸Ä³öÁËȺ·¢)
Ä£Ðͺöడ£¬ÂýÂýѧ¡£
ÏÈÌù´úÂë
·þÎñÆ÷ CSelectIO Àà ¾ÍÊǸÄдÁËÊéÉϵÄÀý×Ó
SelectIO.h:
class CSelectIO
{
public:
CSelectIO(void);
virtual ~CSelectIO(void);
public:
bool Init(int port);
private:
void Strat();
void Send();
bool CreateSocketInformation(SOCKET s);
void FreeSocketInformation(DWORD Index);
private:
int TotalSockets;
LPSOCKET_INFORMATION SocketArray[FD_SETSIZE];
SOCKET ListenSocket;
SOCKET AcceptSocket;
SOCKADDR_IN InternetAddr;
WSADATA wsaData;
FD_SET WriteSet;
FD_SET ReadSet;
DWORD Flags;
DWORD SendBytes;
DWORD RecvBytes;
DWORD Total;
WSABUF SendDataBuf;
};
SelectIO.cpp:
#include "StdAfx.h"
#include "SelectIO.h"
CSelectIO::CSelectIO(void)
:TotalSockets(0)
{
}
CSelectIO::~CSelectIO(void)
{
}
bool CSelectIO::Init(int port)
{
//³õʼ»¯
int ret;
if ((ret = WSAStartup(0x0202,&wsaData)) != 0)
{
printf("WSAStartup() failed with error %d\n", ret);
WSACleanup();
return false;
}
//´´½¨¶Ë¿Ú
if ((ListenSocket = WSASocket(AF_INET, SOCK_STREAM, 0, NULL, 0, WSA_FLAG_OVERLAPPED)) == INVALID_SOCKET)
{
printf("WSASocket() failed with error %d\n", WSAGetLastError());
return false;
}
InternetAddr.sin_family = AF_INET;
InternetAddr.sin_addr.s_addr = htonl(INADDR_ANY);
InternetAddr.sin_port = htons(port);
//°ó¶¨
if (bind(ListenSocket, (PSOCKADDR) &InternetAddr, sizeof(InternetAddr))
== SOCKET_ERROR)
{
printf("bind() failed with error %d\n",


Ïà¹ØÎĵµ£º

¼´Ê±±¨±íFlex¹¤¾ßÌõʹÓÃÖ®µ÷ÕûÁпí

ÈóǬ¼´Ê±±¨±í²»½ö¿ÉÒÔͨ¹ýÍÏקµÄ·½Ê½ÇáËÉʵÏÖ¸÷ÖÖ³£¼ûÀàÐ͵Äweb±¨±íÖÆ×÷£¬¶øÇÒÔÚÕ¹ÏÖ±¨±íʱ»¹ÌṩÁËÁé»îµÄFlex¹¤¾ßÌõ£¬¿ÉÒÔͨ¹ýFlex¹¤¾ßÌõʵÏÖµ÷ÕûÁÐ¿í¡¢ÅÅÐòºÍ¹ýÂËÏÔʾÊý¾ÝµÈ¹¦ÄÜ¡£ÏÂÃæ¾ÍÏȼòµ¥µÄ½éÉÜÒ»ÏÂÈçºÎʹÓÃFlex¹¤¾ßÌõµ÷ÕûÁÐ¿í¡£ ÎÒÃÇÉè¼ÆÒ»¸ö¼òµ¥ÀàÐ͵ı¨±í£¬±¨±í²é¿´ÈçÏÂͼ ÔÚÉÏͼÖÐÎÒÃÇ¿ÉÒÔ¿´µ½£¬µ±¹ÍÔ±µØÖ·¹ý³ ......

FlexµÄDateChooser×é¼þÖÐÎÄÏÔʾ·½·¨

1£¬Ö±½ÓÉèÖÃÊôÐÔ£º
Ô´´úÂëÈçÏ£º
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:ri="AAA.test.*" >

<mx:DateChooser dayNames="[ÈÕ,Ò»,¶þ,Èý,ËÄ,Îå,Áù]"
monthNames="[Ò»ÔÂ,¶þÔÂ,ÈýÔÂ,ËÄÔÂ,ÎåÔÂ,ÁùÔÂ,ÆßÔÂ,°ËÔÂ,¾ÅÔÂ,Ê®ÔÂ,ʮһÔÂ,Ê®¶þÔÂ]" />
......

J2EE¼¯³ÉFlex»·¾³´î½¨

Ïà¹ØÏÂÔØ
FlexÕýʽ°æEXEÏÂÔصØÖ·£º
http://trials.adobe.com/Applications/Flex/FlexBuilder/3/FB3_WWEJ.exe
FlexÕýʽ°æ²å¼þÏÂÔصØÖ·£º
http://trials.adobe.com/Applications/Flex/FlexBuilder/3/FB3_WWEJ_Plugin.exe
 
LCDS
¹Ù·½ÏÂÔØ£¨ÐèÒªÏÈ×¢²á£©
 
https://www.adobe.com/cfusion/tdrc/index.cfm?p ......

Flex no.2

--------------ex2_01_solution  ѡȡʱ¼ä-----------------------
 ...
   private function dateChangeHandler():void
   {
    // The Alert.show() message displays a static string plus the selected date in the startDate control
   ......

flexÖУ¬´ø×îС»¯£¬×î´ó»¯£¬¹Ø±ÕµÄPanel

package
{
import mx.containers.Panel;
import mx.controls.Button;
import flash.events.Event;
import mx.events.FlexEvent;
import flash.events.MouseEvent;
import mx.controls.Alert;
/**
* This class is used to create a Custom Panel
* with Maximum, Minimum, close
* and also drag p ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ