Click here to Skip to main content
15,918,889 members
Home / Discussions / COM
   

COM

 
QuestionHow can i use a dll from registery in windows? Pin
lichongbin25-May-07 3:56
lichongbin25-May-07 3:56 
AnswerRe: How can i use a dll from registery in windows? Pin
User 21559725-May-07 4:07
User 21559725-May-07 4:07 
QuestionRe: How can i use a dll from registery in windows? Pin
CPallini25-May-07 10:24
mveCPallini25-May-07 10:24 
QuestionHow to create client for ATL COM component? Pin
Nandu_77b25-May-07 3:16
Nandu_77b25-May-07 3:16 
AnswerRe: How to create client for ATL COM component? Pin
User 21559725-May-07 4:08
User 21559725-May-07 4:08 
AnswerRe: How to create client for ATL COM component? Pin
CPallini30-May-07 5:44
mveCPallini30-May-07 5:44 
QuestionHow to create moniker Pin
vian2524-May-07 23:09
vian2524-May-07 23:09 
QuestionHow to set a property as a DefaultPropety in COM Wrappers(CCW's) Pin
MurtyINM23-May-07 19:37
MurtyINM23-May-07 19:37 
Hi to All,

I am creating COM Wrappers(CCW's) to the existing .Net Product, which is developed using C#. In this, am getting problem with setting "Item" propertty as the Default Property. My requirement is like this:

I created 4 classess in CCW namely: PdfDocument, PdfForm,PdfFormField and PdfFormFieldList. to the respective .Net classess. Below, am giving the classess in brief. I configured my project for COM Interop .

*****************************************************************************************************************************************
PdfDocument:

public class PdfDocument
public readonly property Form() as PdfForm
get
''''''' code for returning PdfForm type
end get
end propety
end class

PdfForm:

public class PdfForm
public readonly property Fields() as PdfFormFieldList
get
''''''' code for returning PdfFormFieldList Type
end get
end property
end class

PdfFormFieldList

public class PdfFormFieldList
default public readonly property Item(byval pdfformfiled as PdfFormField) as PdfFormField
get
''''' code for returning PdfFormField type
end get
end property
end class
*****************************************************************************************************************************************

Using the above 4 classes, I want the behavior like below in classic ASP.

Code in classic ASP:

dim doc
set doc = server.createobject("DynamicPDF.PdfDocument")
''''' Instead of calling: doc.Form.Fields.Item(("name of the Pdfformfield")
response.write(doc.Form.Fields("name of the Pdfformfield")

Same code in VB6

dim doc as new PdfDocument
''''' Instead of calling: doc.Form.Fields.Item(("name of the Pdfformfield")
msgbox(doc.Form.Fields(("name of the Pdfformfield")


In Vb6, "Item" porperty is working fine. But, it is not working in classic ASP as a Default Property.In ASP, it is working fine only when I code like: doc.Form.Fields.Item(("name of the Pdfformfield")

I need your help in this regard.




AnswerRe: How to set a property as a DefaultPropety in COM Wrappers(CCW's) Pin
Dave Herren24-May-07 2:06
Dave Herren24-May-07 2:06 
QuestionButtons automatically set themselves BS_DEFPUSHBUTTON style. Pin
eat_union23-May-07 17:22
eat_union23-May-07 17:22 
QuestionVista "Ocr running error" Pin
kosovan21-May-07 23:07
kosovan21-May-07 23:07 
AnswerRe: Vista "Ocr running error" Pin
kosovan23-May-07 1:39
kosovan23-May-07 1:39 
QuestionBinding An Acoordion Ajax Control to an Access database Pin
Nada Adel21-May-07 22:46
Nada Adel21-May-07 22:46 
Questionproblem in executing DTS Pin
balageeeee21-May-07 20:07
balageeeee21-May-07 20:07 
AnswerRe: problem in executing DTS Pin
Dave Herren23-May-07 13:50
Dave Herren23-May-07 13:50 
QuestionCOM + C# Pin
Don Rolando21-May-07 9:58
Don Rolando21-May-07 9:58 
AnswerRe: COM + C# Pin
sthotakura21-May-07 10:15
sthotakura21-May-07 10:15 
QuestionHow to retain the values Pin
jannathali21-May-07 1:59
jannathali21-May-07 1:59 
AnswerRe: How to retain the values Pin
sthotakura21-May-07 10:21
sthotakura21-May-07 10:21 
AnswerRe: How to retain the values Pin
CPallini23-May-07 0:41
mveCPallini23-May-07 0:41 
QuestionRegarding Adding a Decoder Filter Pin
Raja Bose C Leo20-May-07 21:53
Raja Bose C Leo20-May-07 21:53 
QuestionWord.Documents.Open( ) not working at Windows 2000 Pin
cindy02320-May-07 17:08
cindy02320-May-07 17:08 
QuestionUsing same COM instance with multiple client ? Pin
achainard18-May-07 5:57
achainard18-May-07 5:57 
AnswerRe: Using same COM instance with multiple client ? Pin
CPallini18-May-07 10:20
mveCPallini18-May-07 10:20 
QuestionRe: Using same COM instance with multiple client ? [modified] Pin
achainard19-May-07 5:03
achainard19-May-07 5:03 

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.