From e6077c30d14e9d662e8843c554db86c0d366d0b6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 6 Jun 2024 13:44:12 +0900 Subject: Rename str nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/activeqt-dotnet.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/html/activeqt-dotnet.html') diff --git a/doc/html/activeqt-dotnet.html b/doc/html/activeqt-dotnet.html index 348c07944..e61772f87 100644 --- a/doc/html/activeqt-dotnet.html +++ b/doc/html/activeqt-dotnet.html @@ -137,16 +137,16 @@ managed programming language. public: Worker(); - TQString statusString() const; + TQString statusString() const; public slots: - void setStatusString(const TQString &string); + void setStatusString(const TQString &string); signals: - void statusStringChanged(const TQString &string); + void statusStringChanged(const TQString &string); private: - TQString status; + TQString status; };

The TQt class has nothing unusual for TQt users, and as even the TQt @@ -180,7 +180,7 @@ function statusStringChanged(String*) (__event), the equivalent of the respective signal in the TQt class.

Before we can start implementing the wrapper class we need a way to convert TQt's datatypes (and potentionally your own) into .NET -datatypes, e.g. TQString objects need to be converted into objects +datatypes, e.g. TQString objects need to be converted into objects of type String*.

When operating on managed objects in normal C++ code, a little extra care must be taken because of the CLR's garbage collection. A normal @@ -201,16 +201,16 @@ to the String object, even if it has been moved by the garbage collector, and it can be used just like a normal pointer.

-

    #include <ntqstring.h>
+
    #include <tqstring.h>
 
     #using <mscorlib.dll>
     #include <vcclr.h>
 
     using namespace System;
 
-    String *TQStringToString(const TQString &qstring)
+    String *TQStringToString(const TQString &tqstring)
     {
-        return new String(qstring.ucs2());
+        return new String(tqstring.ucs2());
     }
 

    TQString StringToTQString(String *string)
-- 
cgit v1.2.3