Hi , thanks for your reply. pre-line is not pre-comile, i need to call the *.bat before any sort of compilation starts..... can u still help me? Yaron Ask not what the application can do for you, ask what you can do for your application
Yaron Nir
Posts
-
Pre-Compile Actions -
Pre-Compile ActionsHello, I know in the project settings of VC++ you can perform some actions only in 'pre-link' and 'post-build' times. i have a *.bat file that i want it to run before the compilation starts..... any1 knows how can i do it? thanks in advanced Yaron Ask not what the application can do for you, ask what you can do for your application
-
Hanldes question - need experts opinionthanks for reply, i will try out the www.sysinternals.com ... and see if it helps me.... Ask not what the application can do for you, ask what you can do for your application
-
Hanldes question - need experts opinionthanks for the reply, I am not using either soft u've mentined.... i only used task manager and GDIObj.exe viewer..... i need to track down "HANDLE" leaks because my application increasing the opertating system handle counter and at somepoint it exceeds the maximum handles number..... i can not find in my code where it happens, i need an out-side monitor....what can u recoomend? Ask not what the application can do for you, ask what you can do for your application
-
Hanldes question - need experts opinionthanks for the reply, will glowcode help me track down "HANDLE" leaks? Ask not what the application can do for you, ask what you can do for your application
-
Hanldes question - need experts opinionHi all, I was monitoring my applicaiton using the task manager for Handle creation and destructions. I've viewed my code and where i have CreateEvent , there is CloseHandle. plus i use GDIObject utilities to check for un-handled GDI objects and there weren't any...... what else can produce a hadnle???? how can i monitor my code for that?? can any1 help? thanks in advanced Yaron Ask not what the application can do for you, ask what you can do for your application
-
BSTR --> CString ?the best & easy way to conver BSTR to string is use the com_util helper as follows: _bstr_t tmpBSTR = _com_util::ConvertStringToBSTR(szString); or the other way around: CString szString = _com_util::ConvertBSTRToString((BSTR)tmpBSTR); you can check out the definitions of this functions in COMUTIL.H hope this helps ya Yaron Ask not what the application can do for you, ask what you can do for your application
-
OwnerDraw ListCtrl problem - help!Hi all, I have an owner draw list ctrl. i want to force a vertical scroll to be shown when the dialog that the list sits on appears. this is the code i've tried : ListView_SetExtendedListViewStyle(m_lc.m_hWnd, LVS_EX_FLATSB|LVS_EX_FULLROWSELECT ); now i've inserted some columns and then: m_lc.ModifyStyle(0,WS_VSCROLL); m_lc.SetScrollRange(SB_VERT,0,100); m_lc.SetScrollPos(SB_VERT,0); m_lc.ShowScrollBar(SB_VERT); this doesn't show the vertical scroll bar. the bar only show when the limit of inserted items succeeds. can any1 show me what to do in order to force the scroll bar? thanks in advanced Yaron Ask not what the application can do for you, ask what you can do for your application
-
ListCtrl Ownder Draw problemHi, i have created my own list ctrl that inherites from CListCtrl and has the property ownder draw fixed. I want to force it to show vertical scroll bar. i wrote the following code: m_lc.ModifyStyle(0,WS_VSCROLL); m_lc.SetScrollRange(SB_VERT,0,100); m_lc.SetScrollPos(SB_VERT,0); m_lc.ShowScrollBar(SB_VERT); if i hook with spy++ to the list ctrl , i can see that the style was changed and now has WS_VSCROLL, but i don't see the vertical scroll bar. it only appears when many items has been inserted to the list.... can any1 help? thanks Yaron Ask not what the application can do for you, ask what you can do for your application
-
Scroll bar question - need experts help hereHi, thanks for reply. when should i call this function, shall i call it when OnSize() occurs??? Yaron Ask not what the application can do for you, ask what you can do for your application
-
Scroll bar question - need experts help hereI am trying to to remove the horizontal bar so it won't ever appear.... can u help? thanks Ask not what the application can do for you, ask what you can do for your application
-
Hiding vertical scrollbar in CListCtrlHello, I have the same problem in horizontal scroll, i am trying to make it disappear. i tried also in the OnSize same as you and it didn't work.... i would like to know if u solved the problem, if u did can u tell me how please? thanks in advanced Yaron Ask not what the application can do for you, ask what you can do for your application
-
Scroll bar question - need experts help hereHi, i am trying to disable the horizontal scroll bar in list ctrl. the scroll doesn't appear until i add a lot of items in the list (it appears because the vertical scroll bar appears as well). here is the code i use void CMyListCtrl::OnStyleChanging(int nStyleType,LPSTYLESTRUCT lpStyleStruct) { if (nStyleType != GWL_STYLE) { CListCtrl::OnStyleChanging(nStyleType,lpStyleStr uct); return; } lpStyleStruct->styleNew &= ~WS_HSCROLL; SetWindowLong(m_hWnd,GWL_STYLE,lpStyleStruct->styleNew); } this indeed change the style of the list not to have WS_HSCROLL bar, but the scroll bar is still shown.... please help me i am really desperate, this is the 4th post i am asking for help thanks Yaron Ask not what the application can do for you, ask what you can do for your application