|
hi ,
Plz suggest me a book which can teach me abt Port access programming .
sukhdeep
|
|
|
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn_serial.asp
This same article in MSDN Library contains also sample application.
|
|
|
|
|
I made an explorer bar using ATL COM. I initially made the explorer bar using the registry entries, but that doesn't meet my needs because I need to do some processing. Does anyone have advice of how I'd show an HTML page in the explorer bar? Any insight would be appreciated.
Thanks
Melinda
|
|
|
|
|
I'm replying to my own thread, heh.
I could use a HTML control and host it in the explorer bar. Then I could use IWebBrowser2::Navigate() to browse around the Internet because the HTML control has a member CComPtr<IWebBrowser2>. I read that I could use the ATL class CAxWindow<>...how do I create that as the host in the explorer bar?
Thanks.
Melinda.
|
|
|
|
|
I have an edit control which has autocomplete feature. I could activate it by calling SHAutoComplete function.
Now I would like to add an url to the history if it doesn't exist in the url history.
How can I do this ?
Orcun Colak
|
|
|
|
|
Take a look at this interesting reg key: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs . You could manually iterate values to see if an item exists, adding the new URL if it doesn't; or use IUrlHistoryStg::AddUrl()[^]
|
|
|
|
|
|
Hi folks,
I need a ligth CEdit enhancement that allows me to automatically insert carriage-return/line feed when the text does not match the control width. Just before spending a day in coding it I wish to know if someone has something similar. If not I will be glad to share it w/ you if interested otherwise I'll be glad to save a day (it's getting hot in Italy);P.
Regards,
Andrea
|
|
|
|
|
If I understand you, you should just be able to check the Multiline check box in the edit controls properties.
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
No, it does not work: multiline allows the text to be displayed in more than a line, but does nothing about the placement of CR/LF chars.
This functionality is present in the static text box!
thanx
|
|
|
|
|
Uncheck the "Auto HScroll" checkbox.
Regards,
Alvaro
When birds fly in the right formation, they need only exert half the effort. Even in nature, teamwork results in collective laziness. -- despair.com
|
|
|
|
|
Thanx a lot guy.
I really appreciated it
|
|
|
|
|
I want to make my button click do two different things : one for when the button is pressed normally and the other for when the shift key is held down and the button pressed. So what do I look for within my click handler that can branch me off into one response or another?
Appreciate your help,
ns
|
|
|
|
|
in your handler use
SHORT nShift = ::GetKeyState(VK_SHIFT);
Max.
Maximilien Lincourt
For success one must aquire one's self
|
|
|
|
|
Thank you so much!!!!! its just what I need....
Appreciate your help,
ns
|
|
|
|
|
what about GetAsyncKeyState()? simply enter the button handler and test the shift key status. could this be a nice solution?
regards,
andrea
|
|
|
|
|
I'd prefer GetKeyState - it reflects they keyboard state of the message currently processed (i.e. it's "closer to the actual click")
Italian is a beautiful language. amare means to love, and amara bitter.
sighist | Agile Programming | doxygen
|
|
|
|
|
I am interested in caturing the packet using winpcap and then send it to the other destination after changing some attributes of packet.
I have captured the packet but unable to send it to the specific destination please if you can help me with sample code or website reference.
Reply me soon
|
|
|
|
|
Hi all!!
I have a form on wich I dynamically create an ActiveX using the Create method of it (the ActiveX is a member variable of my FormView).
What now if I want to remove tha ActiveX?? How can I do this ??? I don't know a lot about ActiveX...
Can somebody help me?
Thanks
|
|
|
|
|
Just call DestroyWindow() for the CWnd the ActiveX is associated with.
Italian is a beautiful language. amare means to love, and amara bitter.
sighist | Agile Programming | doxygen
|
|
|
|
|
Great !! Thanks a lot
|
|
|
|
|
I want to Create a Frame/view/doc structure On a ActiveX Control,but It will be Found Memory leak! And I Found that the reasons is :
CDocManager* CDocManager::pStaticDocManager;
CPtrList* CDocManager::pStaticList;
How Can I avoid Memroy leak?
the Following is My Code :
BOOL Create()
{
if( m_pFrameWnd )
{
if( IsWindow(m_pFrameWnd->m_hWnd) ) return TRUE;
}
CSingleDocTemplate * pDocTemplate;
pDocTemplate = new CSingleDocTemplate(IDR_MAPTYPE,
RUNTIME_CLASS(CMapDoc),
RUNTIME_CLASS(CMapFrame),
RUNTIME_CLASS(CMapView));
CMapDoc * pDoc = new CMapDoc;
CCreateContext Context;
Context.m_pCurrentDoc = pDoc;
Context.m_pNewDocTemplate = pDocTemplate;
Context.m_pNewViewClass = RUNTIME_CLASS(CMapView);
Context.m_pLastView = NULL;
Context.m_pCurrentFrame = NULL;
CMapFrame * pFrameWnd = new CMapFrame;
m_pDoc = pDoc;
m_pFrameWnd = pFrameWnd;
m_pDocTemplate = pDocTemplate;
CRect rcMap;
GetClientRect(&rcMap);
BOOL ret = m_pFrameWnd->Create(AfxRegisterWndClass(CS_DBLCLKS), NULL, WS_CHILD|WS_VISIBLE, rcMap,this,NULL,&Context);
m_pFrameWnd->ShowWindow(SW_SHOW);
return ret;
}
ZHANGYIFEI
|
|
|
|
|
This is just a guest, but are you deleting m_pDoc, m_pFrameWnd, m_pDocTemplate when you are finised with them? Normaly, I would put code in the destructor to insure that all allocated member items where freed when the class/object was destroyed.
Trust in the code Luke. Yea right!
|
|
|
|
|
sorry ,this can't resolve the proplem!
you may try it by yourself!look what happen!
ZHANGYIFEI
|
|
|
|
|
Sorry, but there is not enough information for me to fix it. If you have not already, I would recommend you run it through "Bounds Checker" (trail version available). If the memory is allocated in that small piece code you gave then it should be easy to find.
Trust in the code Luke. Yea right!
|
|
|
|