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
E

eraccn

@eraccn
About
Posts
34
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Passing a string
    E eraccn

    Can u get the second dialog's handle,if so u can use postmessage()

    Later buggers harm more.

    C / C++ / MFC tutorial

  • Access Denied when MapViewOfFile [modified]
    E eraccn

    Is it ok?

    Later buggers harm more.

    C / C++ / MFC help question

  • member variable initialization
    E eraccn

    The compiler will give the class initialize implicitly.In the book "Inside the C++ Object Model", it detailed specifically.

    Later buggers harm more.

    C / C++ / MFC question

  • Access Denied when MapViewOfFile [modified]
    E eraccn

    The class is used for recording informations which may be massive.In the initialization: m_qwFileSize = 0x4000000; m_qwFileOffset = 0; m_T = 600 * m_siInfo.dwAllocationGranularity; m_hMappingFile = ::CreateFileMapping(m_hFile,NULL,PAGE_READWRITE,0,m_qwFileSize + sizeof(TCHAR),NULL); m_lpStartLoc = ::MapViewOfFil(m_hMappingFile,FILE_MAP_ALL_ACCESS,static_cast(m_qwFileOffset >> 32),static_cast(m_qwFileOffset & 0xFFFFFFFF),m_dwBytesInBlock); When the view's size is larger than 60%,I re-mapping the file:

    if (m_qwFileOffset >= m_T){
    		m_T = m_qwFileOffset + 600 * m_siInfo.dwAllocationGranularity;
    		::UnmapViewOfFile(m_lpStartLoc);
    
    		__int64 qwOldFileOffset = m_qwFileOffset;
    		RndToSysAllocGranularity(m_qwFileOffset);
    
    		__int64 qwOffVar = qwOldFileOffset - m_qwFileOffset;
    		
    		m_lpStartLoc = ::MapViewOfFile
    (m_hMappingFile,FILE_MAP_ALL_ACCESS,static_cast(m_qwFileOffset >>
    32),static_cast(m_qwFileOffset & 0xFFFFFFFF),m_dwBytesInBlock);
    		
    		PBYTE pByte = reinterpret_cast(m_lpStartLoc);
    		pByte += qwOffVar;
    		m_lpStartLoc = pByte;}
    

    in the RndToSysAllocGranularity(), I allocate the File offset: if (dwRemains){ __int64 dwDevided = dwValue / m_siInfo.dwAllocationGranularity; dwValue = (dwDevided + 1) * m_siInfo.dwAllocationGranularity;} When it works, I get the errors and its error code is 0x5,it means access denied.Why? Later buggers harm more. modified on Tuesday, December 18, 2007 7:57:40 PM

    modified on Tuesday, December 18, 2007 8:08:17 PM

    C / C++ / MFC help question

  • Handling files larger than 4GB
    E eraccn

    you may use CreateFileMapping and ViewMapOfFile to map such files into your process address,__int64 will be ok. DWORD dwFileLo = ::GetFileSize(hFile,dwFileHi); ASSERT(dwFileLo != INVALID_FILE_SIZE); __int64 qwFileSize = dwFileHi << 32 | (dwFileLo & 0XFFFFFFFF);

    Later buggers harm more.

    C / C++ / MFC c++ question

  • errors while using class wizard
    E eraccn

    The question you've posted may be the following reason: 1.your codes are in removable disk and the connection line is not connected very well; 2.your project files are all read-only; If neither of above,you'd better reinstall your VC.

    Later buggers harm more.

    C / C++ / MFC help c++ tutorial

  • Motion sensing
    E eraccn

    Dear friend,I've encounter the same question as yours,I think you'd better to have some knowledge about Module Identify which I'm not sure to translate into english correctly,in such method,you can find a way to solve your question. By the way,I have my opinion:you may transfer your compressed image to bimap which is uncompressed and compare them in bits.

    Later buggers harm more.

    C / C++ / MFC algorithms performance help question

  • how to call function exposed by IDispatch in ActiveX control?
    E eraccn

    how does script language to use my function exposed by IDispatch?for Example:there is a function declare as: long add(long n1,long n2),the script how to call this function?

    Later buggers harm more.

    ASP.NET tutorial com tools question

  • How does web pages use the ActiveX's function?
    E eraccn

    how does script language to use my function exposed by IDispatch?for Example:there is a function declare as: long add(long n1,long n2),the script how to call this function?

    Later buggers harm more.

    C / C++ / MFC tutorial com tools question

  • Question about ActiveX control.
    E eraccn

    I'm using the "MFC ActiveX DLL" wizard to produce my control,has it implement IDispatch interface on default?

    Later buggers harm more.

    C / C++ / MFC question com

  • Question about ActiveX control.
    E eraccn

    I've designed an ActiveX control,this time,i wanna this control can receive the input from other application.For more detail, I wanna the web page can give parameters to such control,how do i modify my control?use property and event?By the way, how does the web page to use my control's property and event?Thanks a lot.

    Later buggers harm more.

    C / C++ / MFC question com

  • Dynamic Create ActiveX control
    E eraccn

    I need the web page to create multi ActiveX control dynamically,how can i do?

    Later buggers harm more.

    C / C++ / MFC question com

  • why does my activex control register unsuccessfully?
    E eraccn

    Thanks a lot

    Later buggers harm more.

    C / C++ / MFC question c++ com sysadmin docker

  • The ActiveX Control embeded in Web
    E eraccn

    (1) -MFC is static link -No -No (2)Yes,it is. (3)No signed but marked as scripting safe. (4)allow all active control access.

    Later buggers harm more.

    C / C++ / MFC com docker question learning

  • why does my activex control register unsuccessfully?
    E eraccn

    I've tested in ActiveX test container which runs very well,when user have register such control,it runs quickly.But when I've use web to automatically register this control,it always represents red x on web.By the way,I use MFC activeX with MFC share DLL and open all the access right for activex control,meanwhile, I've add the server ip to trusted zone.Can somebody give me a help?

    Later buggers harm more.

    C / C++ / MFC question c++ com sysadmin docker

  • How does ActiveX embeded in IE to Get Message?
    E eraccn

    The Control has been register on the machine,when the user close,refresh or click "x" button on the embeded site,how does my control receive these messages? Thanks a lot.

    Later buggers harm more.

    C / C++ / MFC com question

  • how to get which address call my function
    E eraccn

    I think if there's no input,you can make a own input,just as the master exe.

    Later buggers harm more.

    C / C++ / MFC debugging tutorial

  • The ActiveX Control embeded in Web
    E eraccn

    The Control has been testified by "ActiveX Test Container" which runs very well,then I use Microsoft ActiveX Control Pad to plug in this control. IE code like this: USBClientActiveXEx //inf like this [Add.Code] yyy.ocx=yyy.ocx yyy.inf=yyy.inf [yyy.ocx] file=thiscab clsid={622FA9EC-C889-4138-A2D2-A6CCB092C914} RegisterServer=yes FileVersion=1,0,0,1 [yyy.inf] file=thiscab of course,the cab file includes yyy.ocx and yyy.inf files.But when I place the page in Apachy,remote user can't register the control,what's the matter?

    Later buggers harm more.

    C / C++ / MFC com docker question learning

  • Bind Error with IIS
    E eraccn

    When I've installed IIS Server in my machine,one program wrote before will report bind error,but that just bind 6543 port,I suppose that port has been occupied by IIS,however,when I use "netstat -an" or other port viewer,this port hasn't used yet.What's the problem?

    Later buggers harm more.

    C / C++ / MFC help sysadmin windows-admin question

  • WindowProc() in debug and release mode
    E eraccn

    I don't think there's a difference between Debug and Release mode for WinProc(),please check your code and make sure.

    C / C++ / MFC debugging question announcement
  • Login

  • Don't have an account? Register

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