Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
GeneralRe: INT to Binary Pin
PJL12-Mar-04 15:04
PJL12-Mar-04 15:04 
GeneralRe: INT to Binary Pin
Michael Flanakin17-Mar-04 19:36
Michael Flanakin17-Mar-04 19:36 
GeneralSomething wrong with my binding to datagird. Pin
lordjpg12-Mar-04 13:08
lordjpg12-Mar-04 13:08 
GeneralRe: Something wrong with my binding to datagird. Pin
MrEyes12-Mar-04 14:30
MrEyes12-Mar-04 14:30 
GeneralRe: Something wrong with my binding to datagird. Pin
lordjpg12-Mar-04 15:30
lordjpg12-Mar-04 15:30 
GeneralAdding an Interface to my user controls Pin
TriBoy12-Mar-04 11:05
TriBoy12-Mar-04 11:05 
GeneralRe: Adding an Interface to my user controls Pin
John Fisher12-Mar-04 11:31
John Fisher12-Mar-04 11:31 
GeneralRemoting - instantiating a wellknown type Pin
Judah Gabriel Himango12-Mar-04 9:16
sponsorJudah Gabriel Himango12-Mar-04 9:16 
I've run into a problem with .NET remoting. I need the client to instantiate an object on the server, however, intantiating that object requires I pass parameters to the constructor.

// the component
public class MyObj
{
  public MyObj(string s, long l, SR someReferenceType) // where someReferenceType is a remote object
  {
  }
}


// the server
RemotingConfiguration.RegisterWellKnownServiceType(typeof(MyObj), "MyURI", WellKnownObjectMode.Singleton);


// the client - this throws an exception because there is no default constructor
RemotingServices.Connect(typeof(MyObj), "http://localhost/MyURI");


The RemotingServices.Connect call throws an exception because there is no default constructor. I need to somehow pass several value types and a remote object reference type to the object being constructed (it'd even be ok if I passed this data to the object after construction, but that doesn't seem possible either).

Any ideas?


---------------------------
He who knows that enough is enough will always have enough.

-Lao Tsu

GeneralRe: Remoting - instantiating a wellknown type Pin
Heath Stewart12-Mar-04 10:29
protectorHeath Stewart12-Mar-04 10:29 
GeneralRe: Remoting - instantiating a wellknown type Pin
Judah Gabriel Himango12-Mar-04 11:03
sponsorJudah Gabriel Himango12-Mar-04 11:03 
GeneralRe: Remoting - instantiating a wellknown type Pin
Heath Stewart12-Mar-04 15:42
protectorHeath Stewart12-Mar-04 15:42 
QuestionIs there actually a difference (speed gain etc) ? Pin
Andres Coder12-Mar-04 8:05
Andres Coder12-Mar-04 8:05 
AnswerRe: Is there actually a difference (speed gain etc) ? Pin
Jeff Varszegi12-Mar-04 8:29
professionalJeff Varszegi12-Mar-04 8:29 
AnswerRe: Is there actually a difference (speed gain etc) ? Pin
HAHAHA_NEXT12-Mar-04 10:08
HAHAHA_NEXT12-Mar-04 10:08 
AnswerRe: Is there actually a difference (speed gain etc) ? Pin
Adrian Stanley13-Mar-04 0:31
Adrian Stanley13-Mar-04 0:31 
GeneralTextBox Access Pin
jmandile12-Mar-04 7:57
sussjmandile12-Mar-04 7:57 
GeneralRe: TextBox Access Pin
Dave Kreskowiak12-Mar-04 10:21
mveDave Kreskowiak12-Mar-04 10:21 
GeneralI want to write a application like Microsoft's PowerPoint User interface... Pin
aoyee12-Mar-04 6:49
aoyee12-Mar-04 6:49 
GeneralRe: I want to write a application like Microsoft's PowerPoint User interface... Pin
Mazdak12-Mar-04 7:18
Mazdak12-Mar-04 7:18 
GeneralRe: I want to write a application like Microsoft's PowerPoint User interface... Pin
aoyee12-Mar-04 8:40
aoyee12-Mar-04 8:40 
GeneralRe: I want to write a application like Microsoft's PowerPoint User interface... Pin
aoyee13-Mar-04 5:58
aoyee13-Mar-04 5:58 
GeneralDiagnostics Book Pin
Mark Sanders12-Mar-04 5:11
Mark Sanders12-Mar-04 5:11 
GeneralRe: Diagnostics Book Pin
Heath Stewart12-Mar-04 5:18
protectorHeath Stewart12-Mar-04 5:18 
GeneralStrange Behaviour Pin
Matthew Hazlett12-Mar-04 4:42
Matthew Hazlett12-Mar-04 4:42 
GeneralRe: Strange Behaviour Pin
Heath Stewart12-Mar-04 4:53
protectorHeath Stewart12-Mar-04 4:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.