Click here to Skip to main content
15,923,273 members
Home / Discussions / C#
   

C#

 
GeneralRe: controlling 'min occurs' in WSDL Pin
Heath Stewart12-May-04 13:03
protectorHeath Stewart12-May-04 13:03 
Generalhello, it's me the C# n00b again, I have some questions about C# ^_^; Pin
C# n00b12-May-04 11:07
C# n00b12-May-04 11:07 
GeneralRe: hello, it's me the C# n00b again, I have some questions about C# ^_^; Pin
Heath Stewart12-May-04 11:11
protectorHeath Stewart12-May-04 11:11 
GeneralRe: hello, it's me the C# n00b again, I have some questions about C# ^_^; Pin
TigerNinja_12-May-04 12:14
TigerNinja_12-May-04 12:14 
GeneralRe: hello, it's me the C# n00b again, I have some questions about C# ^_^; Pin
C# n00b12-May-04 14:10
C# n00b12-May-04 14:10 
GeneralRe: hello, it's me the C# n00b again, I have some questions about C# ^_^; Pin
Dave Kreskowiak12-May-04 14:26
mveDave Kreskowiak12-May-04 14:26 
GeneralCOM registration Pin
student666912-May-04 9:25
student666912-May-04 9:25 
GeneralRe: COM registration Pin
Heath Stewart12-May-04 9:42
protectorHeath Stewart12-May-04 9:42 
Yes it is possible. Your installer should run "regasm.exe /codebase assembly.dll" on the target machine when the assembly has been copied over. This assembly can be found in the "%WINDIR%\Microsoft.NET\Framework\v1.x.xxxx" directory of the target machine, if .NET is installed. Replace "x.xxxx" with the version you want to target, or detect the latest version of .NET.

How you do it depends on what installer you use. You could use the Windows Installer project in VS.NET to do this. This allows you to also get the path of the file easily what it will be when copied to the target machine.

On a side note, make sure you followed good COM guidelines, like using fixed GUIDs using the GuidAttribute for your interfaces and classes, and never use auto-generated class interfaces. Also specify ClassInterfaceType.None on your class, explicitly define your class interface, and implement that as the first interfaces. Microsoft doesn't do this in their samples in the .NET Framework SDK, but they do recommend it elsewhere and as someone with many years of COM experience I can tell you that you must follow good COM guidelines or you'll run into problems, such as never changing a released interface. Always derive a new one, append "2", "3", and so on for each new version (just like you'd see in various API documentation on MSDN).

 

Microsoft MVP, Visual C#
My Articles
GeneralTextBox: erasing the old lines Pin
goldoche12-May-04 9:11
goldoche12-May-04 9:11 
GeneralRe: TextBox: erasing the old lines Pin
Jeff Varszegi12-May-04 9:25
professionalJeff Varszegi12-May-04 9:25 
GeneralRe: TextBox: erasing the old lines Pin
leppie12-May-04 13:25
leppie12-May-04 13:25 
GeneralRe: TextBox: erasing the old lines Pin
Jeff Varszegi13-May-04 2:02
professionalJeff Varszegi13-May-04 2:02 
GeneralDebugging Pin
Anonymous12-May-04 9:00
Anonymous12-May-04 9:00 
GeneralRe: Debugging Pin
Jeff Varszegi12-May-04 9:06
professionalJeff Varszegi12-May-04 9:06 
GeneralRe: Debugging Pin
Jeff Varszegi12-May-04 9:33
professionalJeff Varszegi12-May-04 9:33 
GeneralRe: Debugging Pin
Anonymous12-May-04 12:56
Anonymous12-May-04 12:56 
GeneralSystem.Environment.MachineName exception Pin
Member 9993512-May-04 8:39
Member 9993512-May-04 8:39 
GeneralRe: System.Environment.MachineName exception Pin
Jeff Varszegi12-May-04 9:03
professionalJeff Varszegi12-May-04 9:03 
GeneralRe: System.Environment.MachineName exception Pin
Member 9993512-May-04 9:05
Member 9993512-May-04 9:05 
GeneralRe: System.Environment.MachineName exception Pin
Jeff Varszegi12-May-04 9:08
professionalJeff Varszegi12-May-04 9:08 
GeneralRe: System.Environment.MachineName exception Pin
Member 9993512-May-04 9:22
Member 9993512-May-04 9:22 
GeneralRe: System.Environment.MachineName exception Pin
Jeff Varszegi12-May-04 9:32
professionalJeff Varszegi12-May-04 9:32 
GeneralRe: System.Environment.MachineName exception Pin
Member 9993512-May-04 9:45
Member 9993512-May-04 9:45 
GeneralRe: System.Environment.MachineName exception Pin
Heath Stewart12-May-04 9:33
protectorHeath Stewart12-May-04 9:33 
GeneralRe: System.Environment.MachineName exception Pin
Member 9993512-May-04 9:40
Member 9993512-May-04 9: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.