Can u get the second dialog's handle,if so u can use postmessage()
Later buggers harm more.
Can u get the second dialog's handle,if so u can use postmessage()
Later buggers harm more.
Is it ok?
Later buggers harm more.
The compiler will give the class initialize implicitly.In the book "Inside the C++ Object Model", it detailed specifically.
Later buggers harm more.
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
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.
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.
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.
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.
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.
I'm using the "MFC ActiveX DLL" wizard to produce my control,has it implement IDispatch interface on default?
Later buggers harm more.
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.
I need the web page to create multi ActiveX control dynamically,how can i do?
Later buggers harm more.
Thanks a lot
Later buggers harm more.
(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.
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.
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.
I think if there's no input,you can make a own input,just as the master exe.
Later buggers harm more.
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.
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.
I don't think there's a difference between Debug and Release mode for WinProc(),please check your code and make sure.