C3861 Error (I really tried)
I promise I searched high and low for the solution. You're my last resort.
I am getting the errorError 6 error C3861: 'saveSessionLurch': identifier not found 420 1 cs482newUI
Here is my code for XMLExport.h
#ifndef XMLEXPORT_H_
#define XMLEXPORT_H_
#include <vcclr.h>
#include <string>
using namespace std;
class XMLExport{
public:
void saveSessionLurch();
XMLExport();
};//end class XMLExport
#endif
this is my code for XMLExport.cpp:
#include "StdAfx.h"
#include "XMLExport.h"
void XMLExport::saveSessionLurch(){
}//end SaveSessionLurch
this will eventually do something but I am just trying to get it to compile as of right now.
and here is the code for Form1.h. I actually cut out most of the code that isnt relevant to this question. this is the top of the code:#pragma once
#include "Cell.h"
#include "Session.h"
#include "systemObjectWrapper.h"
#include "XMLExport.h"
and this is where the error occurs. The SaveFileDialog opens up so I know the click is working:
private: System::Void saveSessionButton_Click(System::Object^ sender,System::EventArgs^ e){
SaveFile开发者_如何学运维Dialog^ saveFileDialog1 = gcnew SaveFileDialog;
saveFileDialog1->ShowDialog()
saveSessionLurch();//THIS IS WHERE THE ERROR IS
}
Thank you very much in advance for your help. It will be well rewardedYou need to call saveSessionLurch
on an instance of the XMLExport
class.
精彩评论