how to using shockwave flash component in vc++
vc programmer 1
Posts
-
shockwave flash -
port on/off checking after my program is slowi was tried as u say but i don't success..
-
(System Analysis) Questioni'm computer student. i want to know about system analysis. now,i learn about business system analysis. 1.What is the purpose of documentation? 2.When would you begin to document a system? 3.What should be included in the documentation for a new system? please answer me.. thank you so kind all...
-
port on/off checking after my program is slowi want to port is open or close. example................ if (serial.Open(5,38400)) { MessageBox("Port 5 is open"); serial.Close(); } com 5 is network serial com port. VLINX ESP Server make virtual com port for my computer. when com5 is power on,i open com5(OK). when com5 is power off,i open com5(very slow my application)
-
port on/off checking after my program is slowi using serial Class for my vc++ project. i check sometime this port is on or off. (it more than one port) it may be 1 to 3 port. if port is close(power off),my project is slow. how can i control my project more faster. code here --------- // Serial.cpp #include "stdafx.h" #include "Serial.h" CSerial::CSerial() { memset( &m_OverlappedRead, 0, sizeof( OVERLAPPED ) ); memset( &m_OverlappedWrite, 0, sizeof( OVERLAPPED ) ); m_hIDComDev = NULL; m_bOpened = FALSE; } CSerial::~CSerial() { Close(); } BOOL CSerial::Open( int nPort, int nBaud ) { if( m_bOpened ) return( TRUE ); char szPort[15]; char szComParams[50]; DCB dcb; wsprintf( szPort, "COM%d", nPort ); m_hIDComDev = CreateFile( szPort, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, NULL ); if( m_hIDComDev == NULL ) return( FALSE ); memset( &m_OverlappedRead, 0, sizeof( OVERLAPPED ) ); memset( &m_OverlappedWrite, 0, sizeof( OVERLAPPED ) ); COMMTIMEOUTS CommTimeOuts; CommTimeOuts.ReadIntervalTimeout = 0xFFFFFFFF; CommTimeOuts.ReadTotalTimeoutMultiplier = 0; CommTimeOuts.ReadTotalTimeoutConstant = 0; CommTimeOuts.WriteTotalTimeoutMultiplier = 0; CommTimeOuts.WriteTotalTimeoutConstant = 5000; SetCommTimeouts( m_hIDComDev, &CommTimeOuts ); wsprintf( szComParams, "COM%d:%d,n,8,1", nPort, nBaud ); m_OverlappedRead.hEvent = CreateEvent( NULL, TRUE, FALSE, NULL ); m_OverlappedWrite.hEvent = CreateEvent( NULL, TRUE, FALSE, NULL ); dcb.DCBlength = sizeof( DCB ); GetCommState( m_hIDComDev, &dcb ); dcb.BaudRate = nBaud; dcb.ByteSize = 8; unsigned char ucSet; ucSet = (unsigned char) ( ( FC_RTSCTS & FC_DTRDSR ) != 0 ); ucSet = (unsigned char) ( ( FC_RTSCTS & FC_RTSCTS ) != 0 ); ucSet = (unsigned char) ( ( FC_RTSCTS & FC_XONXOFF ) != 0 ); if( !SetCommState( m_hIDComDev, &dcb ) || !SetupComm( m_hIDComDev, 10000, 10000 ) || m_OverlappedRead.hEvent == NULL || m_OverlappedWrite.hEvent == NULL ){ DWORD dwError = GetLastError(); if( m_OverlappedRead.hEvent != NULL ) CloseHandle( m_OverlappedRead.hEvent ); if( m_OverlappedWrite.hEvent != NULL ) CloseHandle( m_OverlappedWrite.hEvent ); CloseHandle( m_hIDComDev ); return( FALSE ); } m_bOpened = TRUE; return( m_bOpened ); } BOOL CSerial::Close( void ) { if( !m_bOpened || m_hIDComDev == NULL ) return( TRUE ); if( m_OverlappedRead.hEvent != NULL ) CloseHandle( m_OverlappedRead.hEvent ); if( m_OverlappedWrite.hE
-
Debug Assertion Failedcan i pass CStringArray from dll. example... CStringArray my(void) { CStringArray a; --- a.Add("a"); a.Add("b"); a.Add("c"); a.Add("d"); -- return a; } i can not pass CStringArray from dll. error C2558: class 'CStringArray' : no copy constructor available i don't know. how can i control CStringArray in dll?
-
Debug Assertion Failedcan u tell me about heap..(memory allocate) i'm just small programmer. so,i can't handle. how can i keep?
-
Debug Assertion Failedmy code here---------> test.h ------ TEST_API void TestCStringArray(CStringArray* _testarray); test.cpp -------- TEST_API void TestCStringArray(CStringArray* _testarray) { _testarray->Add("test1"); _testarray->Add("test2"); _testarray->Add("test3"); _testarray->Add("test4"); } ============================================================ using dll code here------> typedef void (*EXTERNAL_TESTCSTRINGARRAY) (CStringArray* _testarray); EXTERNAL_TESTCSTRINGARRAY dll_testcstringarray; CStringArray _testarray; dll_testcstringarray(&_testarray); for (int i=0;i<_testarray.GetSize();i++) { m_ist.AddString(_testarray.GetAt(i)); } what i missing? i don't know? how can i solve this error???
-
i can not pass CStringArray from dllgreat! this work ... but i have problem.. i accepted result and then error appear... i don't know what happen.. Debug Assertion Failed Program:debug\My.exe File:dbgheap.c Line:1011 Expression:_CrtIsValidHeapPointer(pUserData) Debug Assertion Failed Program:debug\My.exe File:dbgheap.c Line:1076 Expression:_pFirstBlock(pHead) Application Error The instruction at "0x10008ba5" refrenced memory at "0xddddddf1":The memory could not be "read".
-
Debug Assertion Failed"my application is dialog base application" and i using sample dll. i execute this application.. following error appear... i don't know this error type. Debug Assertion Failed Program:debug\My.exe File:dbgheap.c Line:1011 Expression:_CrtIsValidHeapPointer(pUserData) Debug Assertion Failed Program:debug\My.exe File:dbgheap.c Line:1076 Expression:_pFirstBlock(pHead) Application Error The instruction at "0x10008ba5" refrenced memory at "0xddddddf1":The memory could not be "read".
-
i can not pass CStringArray from dlli can not pass CStringArray from dll.... my dll code here................... My.h ---- MY_API CStringArray MyName; MY_API void GetmyName(CStringArray _myname); My.cpp ------ MY_API void GetmyName(CStringArray _myname) { for(int i=0;i
-
available serial com emulationwww.codeproject.com/useritems/serial_portsenum_fifo.asp
-
available serial com emulationhow can i emulation available serial com? can i emulate serial com from my vc++ project?
-
my dll error ('CString' : undeclared identifier)yes! i understand for your suggesting. thank you so kind...
-
my dll error ('CString' : undeclared identifier)MFC header and library files what i need MFC header and library.. #include "windows.h" #include "afx.h" i try above header files. i can not access CString. how can i do?
-
my dll error ('CString' : undeclared identifier)dll doesn't know CString what problems. can i use directly CString? i want to use CString::mid function. mydll.cpp(198) : error C2065: 'CString' : undeclared identifier
-
network serial port emulationhow to get network serial port emulation ????? i want to get serial port information. can i get? i want to get this serial port is usable or unuseable?
-
out of memory errorwhen i run this code,message box appear "out of memory error". someone please explain me.Why? following my code--->> void CIPAddressDlg::OnButton1() { CListBox *pList = (CListBox*) GetDlgItem(IDC_LIST2); pList->ResetContent(); PMIB_IPNETTABLE pIPNetTable = NULL; PMIB_IPNETROW pIPNetRow; in_addr ia; char *szTypes[4] = {"Other", "Invalid", "Dynamic", "Static"}; GetIpNetTable((PMIB_IPNETTABLE) m_pBuffer, &m_ulSize, TRUE); m_pBuffer = new BYTE[m_ulSize]; if (NULL != m_pBuffer) { pList->AddString("Start get ip net table"); m_dwResult = GetIpNetTable((PMIB_IPNETTABLE) m_pBuffer, &m_ulSize, TRUE); if (m_dwResult == NO_ERROR) { pIPNetTable = (PMIB_IPNETTABLE) m_pBuffer; for ( unsigned int x = 0; x < pIPNetTable->dwNumEntries; x++) { pIPNetRow = &(pIPNetTable->table[x]); m_strText.Format(" Index: %lu\r\n", pIPNetRow->dwIndex); pList->AddString(m_strText); m_strText.Format("MAC address length: %lu\r\n", pIPNetRow->dwPhysAddrLen); pList->AddString(m_strText); m_strText.Format(" MAC address: %02x-%02x-%02x-%02x-%02x-%02x\r\n", pIPNetRow->bPhysAddr[0], pIPNetRow->bPhysAddr[1], pIPNetRow->bPhysAddr[2], pIPNetRow->bPhysAddr[3], pIPNetRow->bPhysAddr[4], pIPNetRow->bPhysAddr[5]); pList->AddString(m_strText); ia.S_un.S_addr = pIPNetRow->dwAddr; m_strText.Format(" IP address: %s\r\n", inet_ntoa(ia)); pList->AddString(m_strText); m_strText.Format(" Type: %s\r\n", szTypes[pIPNetRow->dwType - 1]); pList->AddString(m_strText); } } else { m_strText.Format("GetIpNetTable() failed.Result = %lu\r\n", m_dwResult); pList->AddString(m_strText); } delete [] m_pBuffer; } }
-
Cannot open include file: 'Iphlpapi.h': No such file or directoryi have IPHelper demo.so,i'm running this demo,but to no avail. following error is appear. how can i run this demo. stdafx.h(24) : fatal error C1083: Cannot open include file: 'Iphlpapi.h': No such file or directory #include #pragma comment(lib, "Iphlpapi.lib") Iphelper ->http://www.codeproject.com/internet/IPHelper.asp
-
network device enumeration>>>>>how to know network device enumeration<<<<< i have already get PC Ip address. but i have not other network device information. can i know other network information. now, i have Iphelper demo. this exe display all ip address (pc & other device). can only display device(eg.network bar code). i want to know how many device are contain in my entire network.(not computer)