DM_simtoolTest.h:39: error: conversion from `int (*)(int)' to non-scalar type `std::string' requested
<p>My code:</p>

<p>Functionality: It is a function expects a three arguments and create a file.</p>

<pre><code>void performLog(string strStoredProcName, int nCount, double time)

{
    int tme=(int) time;

    int hour=tme/3600;

    tme=tme%3600;

    int min=tme/60;

    tme=tme%60;
    int sec=tme;

    char *StrLen;
    int len = 0;
    int lenpass = 0;

    StrLen = &amp;strStoredProcName[0];
    len = strlen(StrLen);

    lenpass = 41 - len;

       fstream outFile( "Perform.out", ios_base::out | ios_base::app );

        if ( ! outFile ) 
        {
            cerr &lt;&lt; "Cannot open 'Perform.out' for output" &lt;&lt; "\n" &lt;&lt; endl;
            exit(-1);
        }

    if (paramLogCreation == false)
    {

        outFile &lt;&lt; "**************Performance Log*********************" &lt;&lt; "\n" &lt;&lt; endl; 
        outFile &lt;&lt; "DB Type: MYSQL" &lt;&lt; "\n" &lt;&lt; endl;
        outFile &lt;&lt; "-----------------------------------------------------------------------------------------" &lt;&lt; "\n" &lt;&lt; "\t" &lt;&lt; "\t" &lt;&lt; "\t" &lt;&lt; "\t" &lt;&lt; "Stored Procedure Statitics" &lt;&lt; "\n" &lt;&lt; endl;
        outFile &lt;&lt; "-----------------------------------------------------------------------------------------" &lt;&lt; "\n" &lt;&lt; endl;
        outFile &lt;&lt; "Store Procedure Name" &lt;&lt; setw(30) &lt;&lt; "Execution Count" &lt;&lt; setw(30) &lt;&lt; "Time Taken to Execute" &lt;&lt; "\n" &lt;&lt; endl; 
        paramLogCreation = true ;        
    }


    outFile &lt;&lt; strStoredProcName &lt;&lt; setw(lenpass) &lt;&lt; nCount &lt;&lt; setw(20) &lt;&lt;hour&lt;&lt;"::"&lt;&lt;min&lt;&lt;"::"&lt;&lt;sec &lt;&lt;"\n" &lt;&lt; endl;
    outFile.close();
}
</code></pre>

<p>Here i am writing a unit test cases, for the code , which i have written, This function is one of the functions in that.
Please help me , how to resolve this issue.
Please i am very new one to the C++ and need to know the where i committed mistake.</p>
