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 Mike Lewis 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: *

  1. pdunncs

    initialization of code in CWinApp

    Hello, I have a problem with my MDI. When the CWinApp constructor is called in my program several initializes are skipped. Inside the appcore.cpp that houses the initialization code I have placed a break point where the initialization begins. When I step through after the 'ASSERT(AfxGetApp()...
  2. pdunncs

    ChtmlView and disk drive questions

    How do I delete the history in a ChtmlView? Also, how do I found out what drives are active (i.e. A:, D:, …)? I need to make a program that have an icon representing the drives and the user is able to open the drives. Thank you
  3. pdunncs

    Sending an address from open new window to another CHtmlView

    Hi, I am using a CHtmlView and I need to open a new window to the corresponding link when the new window option is chosen. I am able to make a new frame, I have put it on my CMultiDocTemplate (or something like that) and load the frame when the option is clicked. However, I don't know how to...
  4. pdunncs

    Communicating with C++ and C#

    Hello, I am new to C# and ASP.NET, I have previously used ASP. Inside my C# codebehind file, I open a database and get out information. Now depending on that information I would either go to the start page or show a text box and button for more information. How do I move to another page...
  5. pdunncs

    Combo Box inside a CDialogBar

    In my MainFrame class after the creation of the DialogBar I get a pointer to the IDC_Combo and use AddString on it. When I run the program, the string is inside of the edit control portion, but nothing is inside of the drop down box portion of it. When I use the code to get the selected...
  6. pdunncs

    Combo Box inside a CDialogBar

    I have a CDialogBar and I put a ComboBox and Button on it. I used the ComboBox property 'Data' and added ITEM; to it. When I load my appl. the word ITEM do not appear. My ComboBox type is a DropDown type, also I wanted the user to be able to add in new items in the combobox. How do I...
  7. pdunncs

    Protected member access, that's not protected

    I have a problem with my MDI. I have three views. Two are CHtmlViews and when one of the CHtmlView (View2) is clicked; it is suppose to call the other CHtmlView (View1) to go to that website. I have in the CApp class the global variable theApp and a public class GetHtmlView(). GetHtmlView...
  8. pdunncs

    Need to run an application from C#

    I have used ProcessStartInfo psi = new ProcessStartInfo("cmd.exe"); psi.UseShellExecute = true; psi.WindowStyle = ProcessWindowStlye.Normal; Process p = Process.Start(psi); I have cmd running in the process in the task manager, but the window does not show. Does anyone know why? Is...
  9. pdunncs

    Using Multiple Views

    I am sorry, I just now looked at this. In the following code the Frame windows will set the size of the frame that the view will be in. So one would be Frame1 with a specific size and another frame2 m_pBookViewTemplate = new CMultiDocTemplate(IDR_BOOKFRAME...
  10. pdunncs

    Inheritance

    I believe if there the parent constructor take no values, it is ok to not pass any values. But it would not hurt to call the parent in any case. Child(int nVar, CString strVar) : Parent(nVar, strVar) { ... } I don't know about the destructor, but just do it. Hope that's helpful
  11. pdunncs

    Adding views to the view list of a document

    I need help with adding a view(s) to the document view list. I know that CDocument::AddView() will add the view to the view list. The CView::OnCreate() is suppose to call the AddView(), but I don't have an OnCreate, I have Create() in my SecondView class. My FirstView does get adding to the...
  12. pdunncs

    Using Multiple Views

    Hello, I have my own MDI question, but at least this solution I do know. In the CWinApp derived class InitInstance there are some lines CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); if(!ProcessShellCommand(cmdInfo) .... Take out those lines. The ProcessShellCommand...

Part and Inventory Search

Back
Top