houdhoud39
Messages postés1Date d'inscriptionsamedi 9 août 2008StatutMembreDernière intervention30 novembre 2011
-
Modifié par houdhoud39 le 30/11/2011 à 22:52
Bonjour,
j'ai un prb mon pgm ne s'éxécute pas
voici le code de l'interface graphique se connecter
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using RDV;
using ServeurRDV;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Activation;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
namespace Secrétariat
{
public partial class Form1 : Form
{
interStr str = null;
public Form1()
{
TcpChannel canel = new TcpChannel();
ChannelServices.RegisterChannel(canel, false);
interStr intr = Activator.CreateInstance(typeof(implémentation), null, new Object[] { new UrlAttribute("Tcp://localhost:1234") }) as interStr;
//RemotingConfiguration.RegisterActivatedClientType(typeof(implémentation), "tcp://localhost:1234");
//implémentation str = new implémentation();
//RemotingConfiguration.RegisterActivatedClientType(typeof(implémentation), "tcp://localhost:1234");
//implémentation g = new implémentation();
interStr str = Activator.GetObject(typeof(implémentation), "tcp://localhost:1234") as interStr;