struct Point {
int x;
int y;
int z;
};
struct Vect3D {
int x;
int y;
int x;
};
class Plane {
private:
Vect3D v;
Point p;
public:
// Do stuff with these structs here
};
I can do that Stewbond in my cpp file but the issue is I need to access them in .hpp file this is where my button stuff is done.
.cpp file
#include "stdafx.h"
#include "Form1.h"
using namespace Labelwriter;
// EbayData EBAYDATA1;
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
// Enabling Windows XP visual effects before any controls are created
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
// Create the main window and run it
Application::Run(gcnew Form1());
return 0;
}
and my Form1.h file
#pragma once
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
namespace Labelwriter {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace std;
/// <summary>
/// Summary for Form1
/// </summary>
//extern EbayData EBAYDATA1;
class EbayData {
// visibility will default to private unless you specify it
public:
//int dildo;
struct Struct {
char test;
//SalesRecordNumber[10];
//specify members here;
};
//Struct pussy;
};
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::DataGridView^ dataGridView1;
private: System::Windows::Forms::Button^ button1;
protected: