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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Sun
  • Order by date
  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...
  16. Sun

    Running appication from behind a Proxy ????

    Hi All,<br>I want to find out if a client is behind a proxy how to detect it.To be more specific, I have an application which comunicates with a Java Server, it works for Intranets, I have used CSocket class. Now If I want it to work on <b>Internet</b> then what should I do, ESPECIALLY when it...
  17. Sun

    output int variable to screen??

    hey thats quite simple see what you can do is<br> Declare 2 global variables or u can make them members of the Doc if u do not like globals.<br> char szBuff[20];<br> POINT pt;<br> <br> then in MouseMove what u can do is this<br> void CMouseView::OnMouseMove(UINT nFlags, CPoint point) <br> { <br>...
  18. Sun

    How to write into combobox

    or may be you can try using AddString(String);<br> it will add a string at the zero based index position<br> for the first time, and after that a call to AddString(String) just appends it to the list.<br> And you can use this piece of code to keep the last item currently selected.<br> <br> int...
  19. Sun

    How to display an icon on a button

    Try doing this<br> add a icon resource, say IDC_ICON1 in the resources.<br> then in the code, do<br> HICON hIcon = ::LoadIcon(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDC_ICON1));<br> then you have a button<br> try doing<br> pButton-&gt;SetIcon(hIcon);<br> This should do it.<br> If it does not...
  20. Sun

    Is there a way to compile java code to a native format?

    I think your problem may get solved if you use<br> Visual J++.Try it out.<br> All the best.<br> I have a similar problem<br> I want to compile java code to a format which is native to <br> Linux<br>

Part and Inventory Search

Back
Top