Mam taki sobie kod i chciałbym z wnętrza statycznej funkcji
int lua_func(lua_State *L)
zmienić atrybut Text textboxa textbox1. Da się to jakoś zrobić?
#pragma once
namespace PROGRAM {
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 System::Collections::Generic;
using namespace System::Threading;
using namespace std;
int lua_func(lua_State *L){
//this->textbox1->Text = "example";
lua_pushboolean(L, true);
return 1;
}
/// <summary>
/// Summary for Form1
/// </summary>
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:
/// <summary>
/// Required designer variable.
/// </summary>
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
(...)
}
#pragma endregion
(...)
};
}