Check out site for programming issues http://discuss.fogcreek.com/techInterview/default.asp Feel free to spread word fro thsi site
kasturirawat
Posts
-
programming issues -
secondary thread to add data to the controlI’ve a WinForm application and a TreeView control on it. I’m creating another thread to add data to the control. So far I’m able to achieve this behavior, but sometimes secondary thread is not destroyed. I know it is not recommended, but I’d like to know more about my options and why I should not do this. Thanks
-
Secondary ThreadI’ve a WinForm application and a TreeView control on it. I’m creating another thread to add data to the control. So far I’m able to achieve this behavior, but sometimes secondary thread is not destroyed. I know it is not recommended, but I’d like to know more about my options and why I should not do this. Thanks
-
services and UII know that services and UI are No-No and Microsoft says that it is not recommended ( But their SQL server service does the same and so a lot of other third party services….Where can I find explanation for this). I’m trying to display user interface from my VB.Net service. I can run my service under system account and check “allow to interact with desktop”, however my Form hangs. What are my options? (1) Can I start another UI application from my service have them talk i.e. service can talk to application? Thank you for helping me with this Kasturi
-
Common Control and Microsoft Layer For UnicodeI’m using Microsoft Layer For Unicode on 98. I’m not using any of CCM_Get/SETUNICODEFORMAT messages. Some of the common control as property sheet acts weired when I use IE 4. If I upgrade to IE 5, every things works as expected. I could not find any Microsoft documentation which says that I’ve to use IE 5, with UNICODe support. Is there any documentation on this? I guess it is requirement to use IE 5 with UNICOWS, but I was hoping to find some doc to justify this Thanks Kasturi
-
MCSD 70-316Hi, I'm preparing for "Exam 70-316*—Developing and Implementing Windows-based Applications with Microsoft Visual C# .NET and Microsoft Visual Studio .NET". Any suggestion\help and cpmments would be apprecaited. Kasturi
-
Network Neighborhood IconMS doc says to change Network Neighborhood Icon Modify key HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\ DefaultIcon = shell32.dll,17 When I change default "shell32.dll,17" to "shell32.dll,7", it does not change icon on Win XP and Win2K. Any thoughts?
-
WideCharToMultiByteFollowing code gives assertion fail under VS 7 (sometime with 6) void StringFromWide(const wchar_t* pwch, int cch, char *psz, int szLen) { if(cch == 0) { cch = wcslen(pwch); // TODO it will display only first four char } if(cch > szLen) cch = szLen; WideCharToMultiByte(CP_ACP, 0, pwch, cch, psz, cch, NULL, NULL); psz[cch] = '\0'; } As workaround I'm using following code void StringFromWide(const wchar_t* pwch, int cch, char *psz, int szLen) { size_t szt; if(cch == 0) { szt = wcslen(pwch); cch = sizeof(szt) ;// but this will retrieve four chars only } if(cch > szLen) cch = szLen; WideCharToMultiByte(CP_ACP, 0, pwch, cch, psz, cch, NULL, NULL); psz[cch] = '\0'; } What is missing here?
-
Icon IDs for ImagelistI want to specify IDs, not file path.
-
Icon IDs for ImagelistHow can I specify standard Icon IDs for Imagelist such as STD_COPY ( for Copy ). I could not find any way to specify such IDs to non-standard icons too. Is it possible at all to load icon using IDs in .Net?
-
Deploying C# Application? -
Deploying C# Application?How did you create setup project? what attributes you specified in setup prg? Did you look at "WalkThrough" doc on MSDN? Send me some more detail, I hope I'll be able to help you.
-
drag & drop as in explorerHi, I’m trying to implement drag & drop (explorer like application) in my application using C#. appreciate some guidance on this. Thanks
-
OpenThemeDataHi, I'm trying to write caption on my main window. hTheme = OpenThemeData(hWnd, L"MyClass"); but above code always returns hTheme as NULL. Am I missing soemthing here? Thanks for help.
-
lParam to LPNMHDRHi, I’m trying to use wndProc for ListView in C#. LRESULT CALLBACK MainWndProc( HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM lParam) { switch (uMessage) { case WM_NOTIFY: ListViewNotify(hWnd, lParam) } } LRESULT ListViewNotify(HWND hWnd, LPARAM lParam) { //Any idea how can I write following code in C#. //C Code is LPNMHDR lpnmh = (LPNMHDR) lParam; // Translate in C#??????? } Any help on this would be great.
-
handling WM_NOTIFYHi, Any suggestion on handling WM_NOTIFY, LVN_ODCACHEHINT and LVN_ODFINDITEM events from C# app? -Kasturi
-
LVN_ODCACHEHINT and LVN_ODFINDITEMI’m using List-view controls with the LVS_OWNERDATA style and I’m trying to handle notification messages LVN_ODCACHEHINT and LVN_ODFINDITEM. Any help on this would be great.
-
PostMesssage Virtual key codeIt works with DOS window for AlphaNumerics. But any idea how to translate $ and & to VK_Key?
-
PostMesssage Virtual key codeI’m trying to send data to console window using PostMessage with WM_KEYDOWN. The third and fourth param for postmessage are WPARAM wParam, // virtual-key code LPARAM lParam // key data i.e. PostMessage( hwndDOS, WM_KEYDOWN, ‘K’, 0X10250001 ); Any idea how to translate my array (ascii data such as abcd, <> fg etc ) to third and fourth parameter? Thanks
-
"event bubbling" for winform controlThanks for responding to my post. Unfortunately I can not post any code. I’ll try to be clearer about my question this time. I have a composite control, combination of standard control (say text box). Every time any onClick happens on this child(text box) control, I want to pass this event to parent(composite) control. -Kasturi