// Primes.cpp : main project file.
#include "stdafx.h"
#include "Form1.h"
#include "math.h"
usingnamespace Primes;
usingnamespace std;
void print(char text)
{
//right here I want this to change the text of the 'output' box
//to the string carried by 'text'. This is my non-working idea
//based on Form1.h, and since my native programming language is
//Lua, (more specifically, RBX.Lua) it appears to be perfectly
//acceptable.
Form1.output.Text=L"Hello";
}
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
Application::Run(gcnew Form1());
print("hello");//not meant to pass the variable until it's figured out
return 0;
}
@krakow10
In Form1.h there should be a line similar to this->output->Text=L""; in InitializeComponent() afaik you cant access the Form object since it is a temporary sent directly to Application::Run.