void AddString(String^ str) { // Accessing the fourth argument using Arg4 CLR_RT_HeapBlock& arg4 = stack.Arg4(); // Convert the string to a null-terminated character array char* pStr = (char*)marshal_asThis example pushes a string onto the stack as the fourth argument to a managed method. The package library for CLR_RT_StackFrame is the .NET Micro Framework.(str); // Push the string onto the stack arg4.SetObjectReference((void*)pStr); }