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 bkrike 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 leinad49

  1. leinad49

    CommonDialog without stop the application

    Many thanks for your answer Robert. I'm sure that will be very useful for a lot of my applications!!. But unfortunately I need that commondialog in some applications that are using the timer control instead of the API timer at the moment. Finally I used the following steps. I created an ActiveX...
  2. leinad49

    CommonDialog without stop the application

    Hello to everybody!! I have an application running to control one process. Then during the execution of that process (it can't stop!!), the user can open a CommonDialog box (Open files) and select some file. But the problem is that CommonDialog box is a modal dialog and all the process is...
  3. leinad49

    How to get Document pointer to use by modal dialog

    At last I'm using a pointer defined in dialog class that is pointing to a document object. Then before call DoModal() function the View pass the value to the initiated dialog.
  4. leinad49

    How to get Document pointer to use by modal dialog

    Ok, by how to get the pointer to Document object. The owner window of that dialog is CMainFrame, no? I can't use GetDocument() directly...
  5. leinad49

    How to get Document pointer to use by modal dialog

    Hello!! I have in my application one modal dialog that has to use the stored data in the Document object. Then I don't know how to get that pointer to access its data from dialog. Please if anyone can help I will appreciate!!! THANKS IN ADVANVE
  6. leinad49

    Tree control

    I think you can get the node calling the following member function of the TreeView class: CTreeCtrl::GetSelectedItem(); This function returns a handle to the current selected node Daniel
  7. leinad49

    How to extract a string from the statement

    Try with this function Works as follows: CString sResult=GetSecondString(&quot;hello world&quot;); (in this case sResult=&quot;world&quot;) //THE CODE: CString& GetSecondString(CString& Data) { bool bFound=false; CString sTempData=&quot;&quot;; for(int i=0;i<Data.GetLenght();i++) {...
  8. leinad49

    ocx registor error

    Have you test with regsvr32.exe in your WINDOWS\SYSTEM? SALUDOS!!
  9. leinad49

    How to manage large subrutines in Visual C++

    Hello!! I'd like to know how can I do to run a waste time subrutine doing work the current window the user is working with. I mean to run framework calculations (in an alone and independent subrutine) while the user works with the application without affect the user's window response. Any help...
  10. leinad49

    Create a dll file?

    Hello!! You're right!! It's difficult to have a brief explanation about that, but I'll try... OK, let's go thru a little program skeleton that can be useful for you... DEVELOPING THE DLL: (a DLL with a function called ReadConstant as example...) 1. Use Win32 Dynamic Link Library from...
  11. leinad49

    Finding handle (hwnd) in a MFC Appwizard (exe) project

    Hello!! The handle I think you need is the handle of your application window, it should be in the data member variable of CWnd class. Also is a public variable, then you can access it calling referencing dictly. CWnd::m_hWnd. It stores the HWND you are looking for. Try it. I Hope it can help you

Part and Inventory Search

Back
Top