Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Sun

  1. Sun

    Dialog box stopped working

    Hi Jenny, To answer the first part: Just check the Dialog Properties and find out whether the Property "Visible" is Checked or no. And for the Second Part: 1. Right click on the desktop 2. Select Properties->Effects and check whether "Hide keyboard navigation indicators until I...
  2. Sun

    Beginner - Screwed up his system - MFC (exe) - Regedit!!!

    Yes renaming regedit.exe to regedit.com will definitely launch the registry editor. Sun
  3. Sun

    reading image

    Hi, Is the image a file ?. I mean a BMP or something of that sort ? In any case you can use the following APIs to read/write an Image. CreateBitmap CreateBitmapIndirect CreateCompatibleBitmap CreateDIBitmap CreateDIBSection ExtFloodFill GetDIBits LoadBitmap SetDIBits StretchBlt StretchDIBits...
  4. Sun

    The following syntex errors are occ

    Hi, Just add the following line in the .h file of the dialog. #include "resource.h" This should fix your problem. Regards, Sun
  5. Sun

    file handling question in platform SDK... not MFC

    Hi Venkat, I can help you with the Searching : BOOL FileOperation(TCHAR *strSrc, TCHAR* strDest) { WIN32_FIND_DATA FindFileData; HANDLE hFind; hFind = FindFirstFile(strSrc, &FindFileData); if (hFind == INVALID_HANDLE_VALUE) { printf ("Invalid File Handle. Get Last Error reports...
  6. Sun

    how can i do with this bug?

    Hi, This error can occur if the file, subdirectory, or disk on which it resides is read-only. In this case, make the file writable or move the file to a writable disk This error may be caused by not having enough file handles. Close some open applications and recompile Trying to open a file...
  7. Sun

    How to disable default Function Key (F10) messages?

    Hi, You can set up windows hook using the API SetWindowsHookEx with the WH_KEYBOARD option.By doing this u can trap the F10 key first in your application and then let it go for default processing. Regards Sun
  8. Sun

    DOM interfaces XML

    Help will be appreciated very very much. What I am doing is retrieving objects and collecting the properties of those objects I am forming an XML String. The XML Structure looks somewhat like this <Root> <Child> <GrandChild> <GrandChild> <GrandChild> . . <Child>...
  9. Sun

    Changing Static Label Text Dynamically

    Hi Scott, Both of the Above are true. Your Label ID = IDC_MYLABEL : You can use SetDlgItemText(IDC_LABEL, _T(&quot;My New Text Goes here&quot;)); as well as GetDlgItem(IDC_MYLABEL)->SetWindowText(_T(&quot;My New Text Goes here&quot;)); Regards Sun
  10. Sun

    Device Context Creation

    Hi, What you can do is you can do a CreateCompatibleDC(). if you want to do it outside OnDraw() what you can do is you can go a CDC* pDC = GetDC(); CDC dcMemory; dcMemory.CreateCompatibleDC(pDC); dcMemory.BitBlt(0,0,400,500,pointer to the device context from where you want to draw on the...
  11. Sun

    Cannot delete a CObArray object!!

    Hi Vincent, Do you get a compile time error at this statement, CObArray * tmp = new CObArray; Well I get this error at both the statements. And can u please tell me why are u doing a new to allocate memory for a CObArray Object. Awaiting your reply. Thanx and Regards Sun
  12. Sun

    deleting an entire directory

    Hi, Try using SHFileOperation() This Api recursively deletes the directory and the files and directories beneath that directory Regards SUN
  13. Sun

    How do I Create an Activex exe ?????

    Hi I am developing a Activex Exe. That exe is going to be an MDI application, with child windows in it, the problem that I am facing is that I want the client to create only one instance of that Activex Exe, so how do I do that, I guess there is a concept of Singleton Objects, in which only...
  14. Sun

    how to use Tree View to implement a directory structure

    The best place to look for all this is in the MSDN library.<br>All the information you need about tree views and controls is present there.<br><br>Regards,<br>Sun
  15. Sun

    display an icon on a button

    Hi Sumedha,<br>See what I did was, I put a button on a Dialog Box, then in the Resource View goto the properties of the button, there on the <b>STYLES</b> tab, select <font color=red>Icon</font>.<br>Then I added an Icon resource, if you have a <font color=red>.ICO</font>, copy it in the...

Part and Inventory Search

Back
Top