Ovo je prva greska:
error C2143: syntax error : missing ';' before '^'
A linija na koju pokazuje je:
Form1^ f; <-- ovo je privatni atribut klase Form2 u datoteci "Form2.h"
// Form2.h
Code:
#pragma once
#include "Form1.h"
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
namespace Proba1 {
/// <summary>
/// Summary for Form2
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public ref class Form2 : public System::Windows::Forms::Form
{
private:
Form1^ f; <-- ovde je greska
public:
Form2(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
...
Hocu da iz Form2 promenim nesto na Form1 tako sto cu konstruktoru klase Form2 proslediti instancu klase Form1 (ovo sam radio u C# milion puta i nikakvih problema nisam imao)
@VerbatimBOT
OK, postavicu temu i na taj forum