Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
GeneralRe: Set method of Expandable property not getting called Pin
Anonymous3-Sep-04 19:44
Anonymous3-Sep-04 19:44 
GeneralDataGrid Cell Color - C# Pin
Jo Develper3-Sep-04 2:15
Jo Develper3-Sep-04 2:15 
GeneralRe: DataGrid Cell Color - C# Pin
sreejith ss nair3-Sep-04 2:37
sreejith ss nair3-Sep-04 2:37 
GeneralRe: DataGrid Cell Color - C# Pin
Jo Develper3-Sep-04 5:17
Jo Develper3-Sep-04 5:17 
GeneralRe: DataGrid Cell Color - C# Pin
Not Active3-Sep-04 5:43
mentorNot Active3-Sep-04 5:43 
GeneralRe: DataGrid Cell Color - C# Pin
Jo Develper5-Sep-04 23:16
Jo Develper5-Sep-04 23:16 
Questioncan not return com from c# Pin
umedkurd3-Sep-04 2:11
umedkurd3-Sep-04 2:11 
AnswerRe: can not return com from c# Pin
Heath Stewart3-Sep-04 7:14
protectorHeath Stewart3-Sep-04 7:14 
A few things: first, please learn to format your code for use on CodeProject. You can use <pre></pre> tags for blocks of code, and <code></code> for inline code. This also helps separate your code from your paragraphs making it much easier to read.

Also, why two calls to Marshal.Release? Marshal.GetIUnknownForObject increments the ref count only once and I see no other code that AddRef's pUnk. This might be causing your COM server to unload if the ref count is zero and no more objects are running.

Also, I'm not sure I understand your code correctly (i.e., what you're trying to do; not COM interop which I understand very well) but you need to use Activator.CreatecomInstanceFrom if the group is actually a COM object that you've created an RCW (runtime callable wrapper) for. Just creating the Type for an RCW won't work; it needs to instantiate the COM object through its class factory.

Finally, PROGIDs should be in the forum of Library.Object.Version. It's not a hard and fast rule, but is consistent with just about every object COM object. If you want friendly names, you declare these in your IDL for native COM servers, or use the ComRegisterFunctionAttribute and ComUnregisterFunctionAttribute to additionally (class registration you still get for free from regasm.exe) register the title of the COM object using the Registry and RegistryKey classes in the Microsoft.Win32 namespace.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
GeneralRe: can not return com from c# Pin
umedkurd3-Sep-04 7:51
umedkurd3-Sep-04 7:51 
GeneralRe: can not return com from c# Pin
Heath Stewart3-Sep-04 8:15
protectorHeath Stewart3-Sep-04 8:15 
GeneralRe: can not return com from c# Pin
umedkurd3-Sep-04 18:34
umedkurd3-Sep-04 18:34 
GeneralRe: can not return com from c# Pin
Heath Stewart6-Sep-04 9:10
protectorHeath Stewart6-Sep-04 9:10 
GeneralRe: can not return com from c# Pin
umedkurd7-Sep-04 18:42
umedkurd7-Sep-04 18:42 
GeneralMultiple Document Intrface problem-Ineed help Pin
gijoebijoe3-Sep-04 2:05
gijoebijoe3-Sep-04 2:05 
GeneralRe: Multiple Document Intrface problem-Ineed help Pin
sreejith ss nair3-Sep-04 2:52
sreejith ss nair3-Sep-04 2:52 
GeneralExocortex.DSP question Pin
Shiro19813-Sep-04 1:56
Shiro19813-Sep-04 1:56 
QuestionIt allways prints to my default printer but i want to choose the printer in code? Pin
robmays3-Sep-04 1:55
robmays3-Sep-04 1:55 
GeneralCreating a XSLT File Pin
teo_x3-Sep-04 1:53
teo_x3-Sep-04 1:53 
GeneralRe: Creating a XSLT File Pin
sreejith ss nair3-Sep-04 2:55
sreejith ss nair3-Sep-04 2:55 
QuestionHow to invert pixel color of a bitmap ? Pin
sachinkalse3-Sep-04 0:24
sachinkalse3-Sep-04 0:24 
AnswerRe: How to invert pixel color of a bitmap ? Pin
sreejith ss nair3-Sep-04 2:44
sreejith ss nair3-Sep-04 2:44 
GeneralRe: How to invert pixel color of a bitmap ? Pin
sachinkalse5-Sep-04 22:17
sachinkalse5-Sep-04 22:17 
GeneralPluggin' in the Plug-In - HMOG Pin
Sebastian Schneider3-Sep-04 0:20
Sebastian Schneider3-Sep-04 0:20 
GeneralCant change the Expandable property from property grid Pin
pradeep_pc3-Sep-04 0:15
pradeep_pc3-Sep-04 0:15 
GeneralRe: Cant change the Expandable property from property grid Pin
sreejith ss nair3-Sep-04 2:40
sreejith ss nair3-Sep-04 2: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.