Click here to Skip to main content
15,892,746 members
Home / Discussions / COM
   

COM

 
GeneralRe: The application has failed to start.... Pin
Scot Brennecke9-Jul-08 14:17
professionalScot Brennecke9-Jul-08 14:17 
QuestionC++ ATL DLL Addin for Windows Mail is blocked by Vista's DEP Pin
dolly4-Jul-08 1:36
dolly4-Jul-08 1:36 
AnswerRe: C++ ATL DLL Addin for Windows Mail is blocked by Vista's DEP Pin
Scot Brennecke9-Jul-08 14:14
professionalScot Brennecke9-Jul-08 14:14 
QuestionExporting function using raw COM Pin
sandy_103-Jul-08 19:36
sandy_103-Jul-08 19:36 
AnswerRe: Exporting function using raw COM Pin
_AnsHUMAN_ 3-Jul-08 19:40
_AnsHUMAN_ 3-Jul-08 19:40 
GeneralRe: Exporting function using raw COM Pin
sandy_103-Jul-08 19:46
sandy_103-Jul-08 19:46 
AnswerRe: Exporting function using raw COM Pin
Vitaly Tomilov3-Jul-08 22:13
Vitaly Tomilov3-Jul-08 22:13 
QuestionHow to instantiate an .net object with parameterized constructor in VB6? Pin
Saranya B3-Jul-08 19:07
Saranya B3-Jul-08 19:07 
Hello everybody,

I hope someone can help me...

My .net code goes like this...

public class ProxyFacade : BaseProxyFacade

{

ProxyConfiguration _configuration = new ProxyConfiguration();

public ProxyFacade(Uri Uri)

{

_configuration.Url = Uri;

}

public Student IncreaseAge(Student StudObj)

{

StudentServiceClient client;

base.ProxyConfiguration = _configuration;

base.PreProceedHandler();

client = new StudentServiceClient(base.BaseProxy, base.BaseProxy.EndPointAddress);

client.Open();

return client.IncreaseAge(StudObj);

}

}


My Issue: I have registered this dll as COM component.
When I try to instantiate this ProxyFacade from VB6, I am not able to give the object reference with New Keyword?

Do I have to set anything in the .net side? What is the correct way to instantiate this .net object registered as COM?

My VB6 code:

Private Sub cmd_CallCOM_Click()
Dim objStud As New ProxyLibrary.Student
Dim a As Integer
objStud.Age = 11
objStud.Name = "Johnie"
objStud.IsOutStanding = False
Dim objFacade As ProxyLibrary.StudentServiceClient
Dim b As ProxyFacade

 'a = objFacade.IncreaseAge()
'Set objFacade = GetObject("http://localhost:3507/StudentException/Student%20Service.svc/rest")
lbl_Age.Caption = objFacade.IncreaseAge(objStud).Age
End Sub


When i tried with GetObject, again error...

I think i am taking a wrong way to instantiate this object which has parameterized constructor...

Any help plssssssssss


Tnx in advance,
Saran
QuestionCoCreateInstance Pin
alchong3-Jul-08 13:44
alchong3-Jul-08 13:44 
AnswerRe: CoCreateInstance Pin
alchong8-Oct-08 12:45
alchong8-Oct-08 12:45 
QuestionWould COM still be recognized? Pin
Vitaly Tomilov3-Jul-08 13:00
Vitaly Tomilov3-Jul-08 13:00 
AnswerRe: Would COM still be recognized? Pin
Vitaly Tomilov3-Jul-08 23:16
Vitaly Tomilov3-Jul-08 23:16 
AnswerRe: Would COM still be recognized? Pin
dementia12314-Jul-08 4:32
dementia12314-Jul-08 4:32 
GeneralRe: Would COM still be recognized? Pin
Vitaly Tomilov15-Jul-08 22:45
Vitaly Tomilov15-Jul-08 22:45 
QuestionConvert Visual Studio 2005 ATL project into VC 6.0 Pin
dolly3-Jul-08 1:51
dolly3-Jul-08 1:51 
QuestionVC# for MTA COM component development Pin
scody2-Jul-08 23:36
scody2-Jul-08 23:36 
AnswerRe: VC# for MTA COM component development Pin
Ju@ncho4-Jul-08 3:19
Ju@ncho4-Jul-08 3:19 
Questionpass character string to COM Pin
MKUser29-Jun-08 21:34
MKUser29-Jun-08 21:34 
AnswerRe: pass character string to COM Pin
Vi229-Jun-08 21:54
Vi229-Jun-08 21:54 
GeneralRe: pass character string to COM Pin
MKUser29-Jun-08 22:50
MKUser29-Jun-08 22:50 
GeneralRe: pass character string to COM Pin
Vi229-Jun-08 23:14
Vi229-Jun-08 23:14 
GeneralRe: pass character string to COM Pin
MKUser29-Jun-08 23:45
MKUser29-Jun-08 23:45 
GeneralRe: pass character string to COM Pin
Vi230-Jun-08 21:04
Vi230-Jun-08 21:04 
GeneralRe: pass character string to COM Pin
MKUser1-Jul-08 3:20
MKUser1-Jul-08 3:20 
GeneralRe: pass character string to COM Pin
Vi21-Jul-08 17:40
Vi21-Jul-08 17:40 

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.