dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: laephy

Search: Search took 0.02 seconds.

  1. Thread: rapidxml

    by laephy
    Replies
    14
    Views
    897

    Re: rapidxml

    The problem was at the xml file. I forgot to close a child. Now the code compile and load the xml without problem. Thanks
  2. Thread: rapidxml

    by laephy
    Replies
    14
    Views
    897

    Re: rapidxml

    I have eliminate the exception in function load as follows



    void CInput::load(char *fullpath){

    ifstream file(fullpath);
    if (!file){
    puts("Couldn't open file");
    exit(0);
  3. Thread: rapidxml

    by laephy
    Replies
    14
    Views
    897

    Re: rapidxml

    I have decided to open the file in the function load. My GetInput and load function are now as follows:


    void CInterface::GetInput(){

    char *fullpath;
    fullpath =...
  4. Thread: rapidxml

    by laephy
    Replies
    14
    Views
    897

    Re: rapidxml

    I have check if the file was opened and it was not opened. For that I changed my load function as:


    void CInput::load(FILE *pFile){

    ifstream file(pFile);
    /* "Read file into vector<char>" */...
  5. Thread: rapidxml

    by laephy
    Replies
    14
    Views
    897

    Re: rapidxml

    The line that produces the error is


    doc.parse<0>(&buffer[0]);
  6. Thread: rapidxml

    by laephy
    Replies
    14
    Views
    897

    rapidxml

    Hello,

    i am trying to load and read a xml file using radipxml. Here is the code:

    Interface.h:



    #include "../DataIO/Input.h"
  7. Replies
    13
    Views
    761

    Re: main function with arguments

    I press F5 and it say argv = 1 and therefore ignore



    if (argc > 1)
    projectPathAndFile = argv[1];


    I have read that one can specify the arguments by command prompt but how can I...
  8. Replies
    13
    Views
    761

    Re: main function with arguments

    I am not sure if I set the correct debug arguments.

    Is all correct or not?
  9. Replies
    13
    Views
    761

    Re: main function with arguments

    Of course I have the source for RunProgram::runProgram and it works if I use




    fopen("C:\Development\Dll\Input.xml");
  10. Replies
    13
    Views
    761

    Re: main function with arguments

    Of course I am using the catch, only I forget to put here. Sorry
  11. Replies
    13
    Views
    761

    main function with arguments

    Hello,
    I have tried to used the main function with arguments using visual studio as follows:



    int main(int argc, char* argv[]) {
    std::string projectPathAndFile;

    if (argc > 1)
    ...
  12. Replies
    4
    Views
    1,039

    a question regarding to std vector

    I have a vector defined as follows


    vector<wstring> m_vInfo;

    which contains information about the calculation. For each calculation iteration, an element is added to the vector through the...
  13. Re: How to access a member variables from another class?

    I am newbie on visual c++ and I have a dummy question. Where is better to define the pointer in the document class CApplicationDoc.h:

    CDialog1::*pointer

    or in the Dialog class CDialog.h:
    ...
  14. How to access a member variables from another class?

    I have an sdi program with two dialog boxes with its respectively classes (CDialog1 and CDialog2). Through a bottom in the 1st dialog box I call the second dialog box. In the second dialog box, the...
  15. Thread: CComboBox

    by laephy
    Replies
    7
    Views
    1,074

    Re: CComboBox

    Thank you for your explanation and I will use the second method.

    Yes, I forgot to write the definition of m_Color, it is a integer (int m_Color) in both cases.
  16. Thread: CComboBox

    by laephy
    Replies
    7
    Views
    1,074

    Re: CComboBox

    Thank you I found the function GetCount and it works.

    There is a lot of functions related to the CComboBox and I am now learning about them.

    The next function I am learning is the GetCurSel...
  17. Thread: CComboBox

    by laephy
    Replies
    7
    Views
    1,074

    CComboBox

    Hi!

    Is there any function to get the total number of items in a Combobox?

    Laura
  18. Replies
    2
    Views
    526

    To call a Dialog Window

    Hello Everybody,

    I am new in this Forum. I have a question: how can I call from the main window application to a child window. I want to use a pushbottom.

    I want to create a pushbotton and when...
Results 1 to 18 of 18


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)