Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
V

vc programmer 1

@vc programmer 1
About
Posts
23
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • shockwave flash
    V vc programmer 1

    how to using shockwave flash component in vc++

    C / C++ / MFC c++ adobe tutorial

  • port on/off checking after my program is slow
    V vc programmer 1

    i was tried as u say but i don't success..

    C / C++ / MFC c++ com question

  • (System Analysis) Question
    V vc programmer 1

    i'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...

    IT & Infrastructure question business

  • port on/off checking after my program is slow
    V vc programmer 1

    i 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)

    C / C++ / MFC c++ com question

  • port on/off checking after my program is slow
    V vc programmer 1

    i 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

    C / C++ / MFC c++ com question

  • Debug Assertion Failed
    V vc programmer 1

    can 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?

    C / C++ / MFC debugging performance help

  • Debug Assertion Failed
    V vc programmer 1

    can u tell me about heap..(memory allocate) i'm just small programmer. so,i can't handle. how can i keep?

    C / C++ / MFC debugging performance help

  • Debug Assertion Failed
    V vc programmer 1

    my 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???

    C / C++ / MFC debugging performance help

  • i can not pass CStringArray from dll
    V vc programmer 1

    great! 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".

    C / C++ / MFC c++

  • Debug Assertion Failed
    V vc programmer 1

    "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".

    C / C++ / MFC debugging performance help

  • i can not pass CStringArray from dll
    V vc programmer 1

    i 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

    C / C++ / MFC c++

  • available serial com emulation
    V vc programmer 1

    www.codeproject.com/useritems/serial_portsenum_fifo.asp

    C / C++ / MFC question c++ com

  • available serial com emulation
    V vc programmer 1

    how can i emulation available serial com? can i emulate serial com from my vc++ project?

    C / C++ / MFC question c++ com

  • my dll error ('CString' : undeclared identifier)
    V vc programmer 1

    yes! i understand for your suggesting. thank you so kind...

    C / C++ / MFC c++ help question

  • my dll error ('CString' : undeclared identifier)
    V vc programmer 1

    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?

    C / C++ / MFC c++ help question

  • my dll error ('CString' : undeclared identifier)
    V vc programmer 1

    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

    C / C++ / MFC c++ help question

  • network serial port emulation
    V vc programmer 1

    how 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?

    C / C++ / MFC sysadmin tutorial question

  • out of memory error
    V vc programmer 1

    when 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; } }

    C / C++ / MFC database performance help question

  • Cannot open include file: 'Iphlpapi.h': No such file or directory
    V vc programmer 1

    i 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

    C / C++ / MFC com help question

  • network device enumeration
    V vc programmer 1

    >>>>>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)

    C / C++ / MFC csharp sysadmin tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups