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 Huskey

  1. Huskey

    .NET, C# how much differences from C++

    thanks for the reply. sorry for the confusion. I was in the rush when typing the message. I'd like to find out the difference between VC.NET and Visual C++. I have consulted many people about this. Some of them told me that VC.NET is the high level version of VC++. Is that true?? What are its...
  2. Huskey

    .NET, C# how much differences from C++

    Hi, Can anyone please tell me what is the difference between Visual C++.NET and Visual C, Visual C++. What are their main application, for .NET and C#. Please, help!
  3. Huskey

    What is polymorphic class and handle means???

    Hi, Can anyone please explain me the meaning and differences of polymorphic class, handle, dynamic_cast, down_cast, up_cast and static_cast in details? What is the difference between both? Handle<Table> result = dynamic_cast(Table *, input)); Table* result = dynamic_cast(Table*, input); I...
  4. Huskey

    How to use ifstream &amp;

    Hi, I have a problem here and hope any experts out there could help. I used ODBC to import a database. This database has been successfully loaded into a new storage structure I named it as VisualTable which can essentially be perceived as a matrix with integer entries. My problem is now how to...
  5. Huskey

    Calling a new document

    Hi qednick, thank you for your reply. What i mean is that I still cant work it out how to store my CXGridDoc as a blank template and then use CCommandLineInfo to open that template instead of creating a new document. Sorry for my knowledge in Visual C++. I am a new programmer who has no idea...
  6. Huskey

    Calling a new document

    Hi GedNick, It still does not work but I will try what you have suggested me. Thank you for your time and help. I deeply appreciate that. best regards,
  7. Huskey

    How to make use of ifstream &amp;

    Hi, I have a problem. If the function is only taking ifstream, e.g. VirtualTable::Load(ifstream &stream) {...... } what kind of values I should supply? Let's say, my data is in class CDatabase? I got this error: D:\Test\MainFrm.cpp(182) : error C2664: 'Load' : cannot convert parameter 1...
  8. Huskey

    Calling a new document

    Hi qednick, Thanks very much. I can open a document after double clicking on the tree item with the code you have suggested. However, the document appears is based on the default CTestDoc. Is there any way to make the document that appears based on the new document class I defined as CXGRIDDOC...
  9. Huskey

    Calling a new document

    Hi, thank you so much for your replies. I have solved part of my problem with the help of your code. Thank you! This is the code I am using. Whenever I double click the item on the tree, a message &quot;I am here&quot; appears. I assume that the pointer has passed the required message to...
  10. Huskey

    Calling a new document

    Hi, Thank you very much for your explanation. I am a bit clear now. I have tried exactly what you have told me... I have a compilation error: . . . if (hParentt == htiSpcs1) { #define kDoThis 1234 CWnd* pMainFrameWnd = ::AfxGetMainWnd()...
  11. Huskey

    Calling a new document

    Hi can you please explain me in more detail perhaps with a sample code... In my code, double click on the item of the tree will run this void function: OnDblClickTree1 and then invoke the new document class. The sample of my code: void CTestView::OnDblClickTree1(NMHDR* pNMHDR, LRESULT*...
  12. Huskey

    Calling a new document

    Hi, Any idea how to call a document from a CDocument? For example, my application is a MDI. I have three main application class: CtestApp CtestDoc CtestView My program is using Tree Ctrl. So, in my Ctestview, I need to click on the item on the Tree to invoke a new document. How to do that...
  13. Huskey

    How to define a SQL query?

    Hi I have been trying for few weeks to display the table imported onto the Grid. The database is imported into the decisiontable using the code: BOOL CODBCTableImporter::APPLYSTRUCTURE() {.. ... ODBCTableImporter *importer =...
  14. Huskey

    Display Table on Grid

    Hi I have been trying for few weeks to display the table imported onto the Grid. The database is imported into the decisiontable using the code: BOOL CODBCTableImporter::APPLYSTRUCTURE() {.. ... ODBCTableImporter *importer =...
  15. Huskey

    Refresh the Tree List

    Hi, I have inserted a table name into my Tree structure. However, I cant see the table name unless I do something with the dialog e.g. moving, maximise or minimise the dialog before the change can be seen effectively. It seem to me that the tree list is not updated after the table is inserted...

Part and Inventory Search

Back
Top