Originally posted by: Ashwi Ambekar
I need to use the HexEdit in my visual basic code. I registerd the OCX, now when I call SetData, I get error while compiling ,
"Function or interface marked as restricted, or function uses automation type not supported in Visual basic.
Originally posted by: Sadru
This is an excellent progam. Any suggestion how to changeData size (8/16/32/64).
ReplyOriginally posted by: Rockystars
I would to open and save a file with this project, but I am a newbee in C++ . Sone body can help me to do it, please?
Thank you
bye
Originally posted by: Mike Philips
http://www.exontrol.com/sg.jsp?content=products/exeditors
Regards,
A complete collection of editors in a single file:
Mike
Originally posted by: YiDong Hu
I use this contrl to open a mp3 file more than 4M byte,but it can't work even after I modified most of the int variable to unsigned long variable. Can you tell me how to deal with this? Thanks a lot!
ReplyOriginally posted by: final
HexEdit Class is great. But it seems it has a little problem. I tried to insert large data then trying to edit or change it. Afterwards it hangs my PC. I don't know what's wrong. I'm working for it but I can't really solve it. Can you please help me in doing this?
By the way thanks for the code
ReplyOriginally posted by: Paul E. Bible
if (m_pData)
Thanks very much,
Your CHexEditCtrl class leaks memory from m_pData. I added the following lines to the destructor method, which fixed the problem:
delete m_pData;
Otherwise, this is a very good implementation.
Paul
Originally posted by: Jo Vandale
void CHexEdit::OnNcPaint()
The following is a solution based on the tip from Rob Baldwin (2000/04/04). Add a window message handler for WM_NCPAINT to CHexEdit class.
This is another fix for the cursor problem.
{
/* Display Caret at first data position */
CreateEditCaret();
m_currentAddress= 0;
RepositionCaret(m_currentAddress);
ShowCaret();
CEdit::OnNcPaint(); // Be sure and call the parent class
}
Originally posted by: Steward Scott
DestroyCaret();
The call to RedrawWindow asserts because the window does not yet exist at this point. This change makes sure that the window exists before it attempts to call RedrawWindow().
To fix the problem, in the SetSel function, insert an if before the call to RedrawWindow, as seen below:
m_selStart = s;
m_selEnd = e;
if (! IsWindow(m_hWnd) )
return;
RedrawWindow();
if(m_editPos.x == 0 && m_bShowAddress)
CreateAddressCaret();
else
CreateEditCaret();
SetCaretPos(m_editPos);
ShowCaret();
Reply
Originally posted by: Steward Scott
DestroyCaret();
The call to RedrawWindow asserts because the window does not yet exist at this point. This change makes sure that the window exists before it attempts to call RedrawWindow().
To fix the problem, in the SetSel function, insert an if before the call to RedrawWindow, as seen below:
m_selStart = s;
m_selEnd = e;
if (! IsWindow(m_hWnd) )
return;
RedrawWindow();
if(m_editPos.x == 0 && m_bShowAddress)
CreateAddressCaret();
else
CreateEditCaret();
SetCaretPos(m_editPos);
ShowCaret();
Reply