<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Von Delphi zu C++ Builder]]></title><description><![CDATA[<p>Hallo,<br />
ich habe einen existirenden Form der wurde schon programmiert und ich möchte diesen Form ableiten und bunutzen damit ich mit meinem Form am Enden behalten kann mit allen was schon in den existierenden Form ist . aber ich habe eine Hilfe Datei dabei und die bitten nur einen Code unter Delphi. es sieh so aus(Siehe Unten). und ich möchte jetzt wissen ob mir Jemand diesen Code in C++ Builder umwandeln kann.<br />
Danke.<br />
Die Hilfe Datei findet man unter ExpressScheduler.(developerExpress)</p>
<pre><code class="language-cpp">Here is the code, which implements the custom Event modal dialog:
// Delphi
unit CustomizedEventEditorForm;
// ...
type
  TcxSchedulerEventEditorCustomized = class(TcxSchedulerEventEditor)
    gbClient: TcxGroupBox;
    lbFirstName: TcxLabel;
    teFirstName: TcxTextEdit;
    lbLastName: TcxLabel;
    teLastName: TcxTextEdit;
    lbGender: TcxLabel;
    cbGender: TcxComboBox;
  private
    { Private declarations }

  protected
    procedure LoadEventValuesIntoControls; override;
    procedure UpdateEventValuesFromControls; override;
  public
    { Public declarations }
  end;

var
  cxSchedulerEventEditorCustomized: TcxSchedulerEventEditorCustomized;

implementation

uses
  cxSchedulerDialogs;

{$R *.dfm}

procedure TcxSchedulerEventEditorCustomized.LoadEventValuesIntoControls;

begin
  inherited LoadEventValuesIntoControls; // call the parent’s method to load the data into the inherited editing controls located on the form
  try
    // load the data into the custom editing controls
    // no checking for a null value is needed. The null value is automatically replaced with empty string in the editing controls
    teFirstName.EditValue := Event.GetCustomFieldValueByName('FName');
    teLastName.EditValue := Event.GetCustomFieldValueByName('LName');

    cbGender.EditValue := Event.GetCustomFieldValueByName('Gender');
  except
    on E: Exception do
      ShowMessage('Can''t load data' + #13#10 + E.Message);
  end;
end;

procedure TcxSchedulerEventEditorCustomized.UpdateEventValuesFromControls;
begin
  inherited UpdateEventValuesFromControls; // call the parent’s method to post the data from the inherited editing controls located on the form 

  try
    // post the data from the custom editing controls
    Event.SetCustomFieldValueByName('FName', teFirstName.EditValue);
    Event.SetCustomFieldValueByName('LName', teLastName.EditValue);
    Event.SetCustomFieldValueByName('Gender', cbGender.EditValue);
    FModified := True;
  except
    on E: Exception do
      ShowMessage('Can''t post data' + #13#10 + E.Message);  

  end;
end;

initialization
  // to use the cxEventEditorClass constant include the cxSchedulerDialogs unit in the uses clause
  cxEventEditorClass := TcxSchedulerEventEditorCustomized; // indicate that the new Event modal dialog will be invoked at runtime
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/149789/von-delphi-zu-c-builder</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 05:25:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/149789.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Jun 2006 11:59:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Von Delphi zu C++ Builder on Fri, 09 Jun 2006 11:59:09 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich habe einen existirenden Form der wurde schon programmiert und ich möchte diesen Form ableiten und bunutzen damit ich mit meinem Form am Enden behalten kann mit allen was schon in den existierenden Form ist . aber ich habe eine Hilfe Datei dabei und die bitten nur einen Code unter Delphi. es sieh so aus(Siehe Unten). und ich möchte jetzt wissen ob mir Jemand diesen Code in C++ Builder umwandeln kann.<br />
Danke.<br />
Die Hilfe Datei findet man unter ExpressScheduler.(developerExpress)</p>
<pre><code class="language-cpp">Here is the code, which implements the custom Event modal dialog:
// Delphi
unit CustomizedEventEditorForm;
// ...
type
  TcxSchedulerEventEditorCustomized = class(TcxSchedulerEventEditor)
    gbClient: TcxGroupBox;
    lbFirstName: TcxLabel;
    teFirstName: TcxTextEdit;
    lbLastName: TcxLabel;
    teLastName: TcxTextEdit;
    lbGender: TcxLabel;
    cbGender: TcxComboBox;
  private
    { Private declarations }

  protected
    procedure LoadEventValuesIntoControls; override;
    procedure UpdateEventValuesFromControls; override;
  public
    { Public declarations }
  end;

var
  cxSchedulerEventEditorCustomized: TcxSchedulerEventEditorCustomized;

implementation

uses
  cxSchedulerDialogs;

{$R *.dfm}

procedure TcxSchedulerEventEditorCustomized.LoadEventValuesIntoControls;

begin
  inherited LoadEventValuesIntoControls; // call the parent’s method to load the data into the inherited editing controls located on the form
  try
    // load the data into the custom editing controls
    // no checking for a null value is needed. The null value is automatically replaced with empty string in the editing controls
    teFirstName.EditValue := Event.GetCustomFieldValueByName('FName');
    teLastName.EditValue := Event.GetCustomFieldValueByName('LName');

    cbGender.EditValue := Event.GetCustomFieldValueByName('Gender');
  except
    on E: Exception do
      ShowMessage('Can''t load data' + #13#10 + E.Message);
  end;
end;

procedure TcxSchedulerEventEditorCustomized.UpdateEventValuesFromControls;
begin
  inherited UpdateEventValuesFromControls; // call the parent’s method to post the data from the inherited editing controls located on the form 

  try
    // post the data from the custom editing controls
    Event.SetCustomFieldValueByName('FName', teFirstName.EditValue);
    Event.SetCustomFieldValueByName('LName', teLastName.EditValue);
    Event.SetCustomFieldValueByName('Gender', cbGender.EditValue);
    FModified := True;
  except
    on E: Exception do
      ShowMessage('Can''t post data' + #13#10 + E.Message);  

  end;
end;

initialization
  // to use the cxEventEditorClass constant include the cxSchedulerDialogs unit in the uses clause
  cxEventEditorClass := TcxSchedulerEventEditorCustomized; // indicate that the new Event modal dialog will be invoked at runtime
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1074550</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1074550</guid><dc:creator><![CDATA[kouja]]></dc:creator><pubDate>Fri, 09 Jun 2006 11:59:09 GMT</pubDate></item><item><title><![CDATA[Reply to Von Delphi zu C++ Builder on Fri, 09 Jun 2006 12:23:41 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">// TcxSchedulerEventEditorCustomized.h
class TcxSchedulerEventEditorCustomized : public TcxSchedulerEventEditor
{
    gbClient TcxGroupBox;
    lbFirstName TcxLabel;
    teFirstName TcxTextEdit;
    lbLastName TcxLabel;
    teLastName TcxTextEdit;
    lbGender TcxLabel;
    cbGender TcxComboBox;
  private:
  //  { Private declarations }

  protected:
    void LoadEventValuesIntoControls();
    void UpdateEventValuesFromControls();
  public:
   // { Public declarations }
}

TcxSchedulerEventEditorCustomized cxSchedulerEventEditorCustomized; //Dont know what you mean here?

/// TcxSchedulerEventEditorCustomized.cpp
#include &quot;TcxSchedulerEventEditorCustomized.h&quot;
#include &quot;cxSchedulerDialogs.h&quot; //??? not sure

void TcxSchedulerEventEditorCustomized::LoadEventValuesIntoControls()
{
  try
  {
    teFirstName.EditValue = Event.GetCustomFieldValueByName(&quot;FName&quot;);
    teLastName.EditValue = Event.GetCustomFieldValueByName(&quot;LName&quot;);

    cbGender.EditValue = Event.GetCustomFieldValueByName(&quot;Gender&quot;);
  }
  catch( Exception E ) //?? Your exceptions class
  {
      ShowMessage(); //TODO String? Or Char? Or Ansistring?
  }
}

void TcxSchedulerEventEditorCustomized.UpdateEventValuesFromControls()
{
  try
  {
    Event.SetCustomFieldValueByName(&quot;FName&quot;, teFirstName.EditValue);
    Event.SetCustomFieldValueByName(&quot;LName&quot;, teLastName.EditValue);
    Event.SetCustomFieldValueByName(&quot;Gender&quot;, cbGender.EditValue);
    FModified = True;
  }
  catch( Exception E ) 
  {
     ShowMessage(); //TODO String? Or Char? Or Ansistring?
  }
}

// in your maincode
  cxEventEditorClass = TcxSchedulerEventEditorCustomized;
</code></pre>
<p>Nicht getestet und sicher noch Fehler drin.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1074574</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1074574</guid><dc:creator><![CDATA[Buena Vista]]></dc:creator><pubDate>Fri, 09 Jun 2006 12:23:41 GMT</pubDate></item><item><title><![CDATA[Reply to Von Delphi zu C++ Builder on Fri, 09 Jun 2006 12:28:49 GMT]]></title><description><![CDATA[<p>Ich denke mal, dass diese ganzen Tcx-Klassen von VCL-Klassen abgeleitet sind. Das bedeutet aber, das man unter C++ hier nur mit Pointern arbeiten kann. Das macht alles etwas komplizierter.<br />
Warum soll das eigentlich in C++ umgewandelt werden? Der Builder enthält auch einen Pascal-Compiler und kann das somit auch direkt übersetzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1074588</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1074588</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 09 Jun 2006 12:28:49 GMT</pubDate></item><item><title><![CDATA[Reply to Von Delphi zu C++ Builder on Fri, 09 Jun 2006 12:58:10 GMT]]></title><description><![CDATA[<p>die Tatsache ist , dass ich noch nie ein Pascal Buch aufgesclagen habe und was es nicht womit ich anfangen soll, deswegen ist für mich denke ich mal besser wenn ich die Hilfe Datei die unter Delphi in c++ umwandel und vertehe , vielleicht ist einfacher: Vielleicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1074613</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1074613</guid><dc:creator><![CDATA[kouja]]></dc:creator><pubDate>Fri, 09 Jun 2006 12:58:10 GMT</pubDate></item><item><title><![CDATA[Reply to Von Delphi zu C++ Builder on Fri, 09 Jun 2006 13:06:13 GMT]]></title><description><![CDATA[<p>Deswegen sage ich ja, übersetze deine Pascal-Datei direkt mit dem C++Builder.<br />
Wenn du es wirklich umschreiben (lassen) willst, wäre es nützlich die Deklaration der Klasse TcxSchedulerEventEditor zu kennen (die dazugehörige Headerdatei). Du willst ja immerhin von dieser Klasse ableiten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1074620</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1074620</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 09 Jun 2006 13:06:13 GMT</pubDate></item><item><title><![CDATA[Reply to Von Delphi zu C++ Builder on Fri, 09 Jun 2006 13:28:45 GMT]]></title><description><![CDATA[<p>Ich habe keine Pascal Datei die ich im C++ Builder übersetzen soll, ausser die Datei von cxSchedulerEventEditor , aber in dieser Datei wenn ich diesen Code dort schreibe zeigt er mir 1000 Fehler.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1074629</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1074629</guid><dc:creator><![CDATA[kouja]]></dc:creator><pubDate>Fri, 09 Jun 2006 13:28:45 GMT</pubDate></item><item><title><![CDATA[Reply to Von Delphi zu C++ Builder on Fri, 09 Jun 2006 14:14:23 GMT]]></title><description><![CDATA[<p>Hallo, ich hab die Datei umgestezt(umgeschrieben) aber nach der Ausführung zeigt er mir folgende Fehler:</p>
<p>[C++ Fehler] cxSchedulerEventEditorCustomized.h(42): E2113 Virtuelle Funktion 'TcxSchedulerEventEditorForm1::LoadEventValuesIntoControls()' verursacht Konflikte mit der Basisklasse 'TcxSchedulerEventEditorForm'<br />
Er weist auf diese Stelle in die Header Datei(</p>
<pre><code class="language-cpp">Void  LoadEventValuesIntoControls();
</code></pre>
<p>[C++ Fehler] cxSchedulerEventEditorCustomized.h(43): E2113 Virtuelle Funktion 'TcxSchedulerEventEditorForm1::UpdateEventValuesFromControls()' verursacht Konflikte mit der Basisklasse 'TcxSchedulerEventEditorForm'</p>
<p>und hier ist</p>
<pre><code class="language-cpp">void UpdateEventValuesFromControls();
</code></pre>
<p>[C++ Fehler] VersuchMainForm12.cpp(207): E2303 Typname erwartet</p>
<pre><code class="language-cpp">cxEventEditorClass =(diese Stelle) TcxSchedulerEventEditorForm1;
</code></pre>
<p>[C++ Fehler] VersuchMainForm12.cpp(207): E2108 Ungültige Verwendung von typedef 'TcxSchedulerEventEditorForm1'</p>
<pre><code class="language-cpp">cxEventEditorClass =TcxSchedulerEventEditorForm1(hier am Ende);
</code></pre>
<p>Bei mir ist TcxSchedulerEventEditorForm1; TcxSchedulerEventEdiorCustomized;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1074645</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1074645</guid><dc:creator><![CDATA[kouja]]></dc:creator><pubDate>Fri, 09 Jun 2006 14:14:23 GMT</pubDate></item><item><title><![CDATA[Reply to Von Delphi zu C++ Builder on Fri, 09 Jun 2006 15:37:39 GMT]]></title><description><![CDATA[<p>Hallo</p>
<blockquote>
<p>verursacht Konflikte mit der Basisklasse 'TcxSchedulerEventEditorForm'</p>
</blockquote>
<p>bedeutet das die Funktion in der abgeleiteten Klasse nicht wie erfordert den selbten Prototyp (Parameter, Rückgabewert) hat wie die gleichlautende virtuelle Funktion der Basisklasse</p>
<blockquote>
<p>[C++ Fehler] VersuchMainForm12.cpp(207): E2303 Typname erwartet</p>
</blockquote>
<blockquote>
<p>Ungültige Verwendung von typedef 'TcxSchedulerEventEditorForm1'</p>
</blockquote>
<p>Ich <em>vermute</em> richtig wäre es so</p>
<pre><code class="language-cpp">TcxSchedulerEventEditorForm1 *cxEventEditorClass = new TcxSchedulerEventEditorForm(??);
</code></pre>
<p>Aber ich schließe mich Braunstein an, so ein paar aus dem Kontext gerissene Brocken reichen nicht aus. Sowohl die Deklaration der Basisklasse <em>TcxSchedulerEventEditor</em> als auch die der <em>TcxSchedulerEventEditorCustomized</em> sind dazu notwendig. Und wenn du offenbar so wenig Ahnung von den Grundlagen der OOP sowohl in Delpi als auch in C++ hast, solltest du lieber erstmal die Grundlagen lernen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1074696</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1074696</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 09 Jun 2006 15:37:39 GMT</pubDate></item></channel></rss>