|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Member
Iscritto dal: Sep 2005
Messaggi: 80
|
[Visual C++] Oggetti String
Salve
Sto imparando ad usare l'IDE di visual c++ Express edition. Non avendo trovato manuali adeguati, sto usando c# per creare dei file sorgenti da importare in c++. Ho creato pertanto in c# una AboutBox form e sto trasferendo le proprietà di questa finestra in c++.AboutBox (C#) utilizza un oggetto String: Codice:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
namespace Project_Boote
{
partial class AboutBox : Form
{
public AboutBox()
{
InitializeComponent();
this.Text = String.Format("Informazioni su {0}", AssemblyTitle);
...omissis...
}
...omissis...
}
Fosse stato C++ Builder (che ho utilizzato in passato) avrei pensato ad un file ".h", ma qui le cose mi sembrano molto diverse. L'help on line mi sembra abbastanza dispersivo e non sono riuscito a trovare esempi Come posso risolvere il problema ADL |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Oct 2006
Città: milano
Messaggi: 1439
|
#include <string>
|
|
|
|
|
|
#3 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
|
|
|
|
|
|
#4 |
|
Senior Member
Iscritto dal: Oct 2006
Città: milano
Messaggi: 1439
|
pensavo solo non sapesse come importare la classe string
|
|
|
|
|
|
#5 |
|
Member
Iscritto dal: Sep 2005
Messaggi: 80
|
It works!!!!
Grazie ADL |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 20:26.










Sto imparando ad usare l'IDE di visual c++ Express edition. Non avendo trovato manuali adeguati, sto usando c# per creare dei file sorgenti da importare in c++. Ho creato pertanto in c# una AboutBox form e sto trasferendo le proprietà di questa finestra in c++.








