Note that there are some explanatory texts on larger screens.

plurals
  1. POsyntax error : missing ';' before identifier 'iDlg'
    primarykey
    data
    text
    <p>I am trying to get a dialog box [import] to launch from another dialog box [baseline]. I am including the required ".h" files however I am simply not able to create an instance of the import class. The error I get is this:</p> <pre><code>Error 1 error C2146: syntax error : missing ';' before identifier 'iDlg' h:\shaunak\projects\sar_ccd\sar_ccd\baseline.h 202 1 Sar_CCD </code></pre> <p>The line of code that causes this [baseline.h]:</p> <pre><code>#include "Markup.h" #include&lt;stdio.h&gt; #include&lt;math.h&gt; #include "baseline_func.h" #include "resource.h" #include "Functions.h" #include &lt;stdlib.h&gt; #include "Sar_CCDDoc.h" #include "Sar_CCDView.h" #include &lt;vector&gt; #include "MemAlloc.h" #include "ReadFiles.h" #include&lt;vector&gt; #include&lt;map&gt; #include "afxwin.h" #include "import.h" #include "Geocode.h" **&lt;SNIP: Taking out the irrelevant lines&gt;** afx_msg void OnDestroy(); virtual void PostNcDestroy(); afx_msg void OnBnClickedNxtBase(); CButton nextBaseline; import iDlg; //doesnt work! CGeocoding cx; //works!!! }; </code></pre> <p>However, if I create and instance of another class [Geocoding] using the same sysntax like so, it works fine:</p> <pre><code>#include "Geocoding.h" CGeocoding cx; </code></pre> <p>Please help me figure out why.</p> <p>Full code: </p> <p>baseline.h: <a href="http://freetexthost.com/on06wref6c" rel="nofollow">http://freetexthost.com/on06wref6c</a> import.h: <a href="http://freetexthost.com/x4e4dkwrve" rel="nofollow">http://freetexthost.com/x4e4dkwrve</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload