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

C#

 
GeneralRe: an error with tabpage Pin
Heath Stewart19-Apr-04 4:17
protectorHeath Stewart19-Apr-04 4:17 
Generalignore my last comment Pin
robmays16-Apr-04 21:53
robmays16-Apr-04 21:53 
GeneralPassing data between forms Pin
Chintan Vaishya15-Apr-04 23:57
Chintan Vaishya15-Apr-04 23:57 
GeneralRe: Passing data between forms Pin
Colin Angus Mackay16-Apr-04 2:14
Colin Angus Mackay16-Apr-04 2:14 
GeneralReflection Pin
Braulio Dez15-Apr-04 23:36
Braulio Dez15-Apr-04 23:36 
GeneralRe: Reflection Pin
Heath Stewart19-Apr-04 4:32
protectorHeath Stewart19-Apr-04 4:32 
GeneralUsing ActiveX In a windows service Pin
Big Trev15-Apr-04 22:42
Big Trev15-Apr-04 22:42 
GeneralRe: Using ActiveX In a windows service Pin
Heath Stewart19-Apr-04 4:37
protectorHeath Stewart19-Apr-04 4:37 
With ActiveX, the PATH environment variable doesn't really matter (it can, but is not typically necessary, because...). When an ActiveX control is registered, it's server's path (the executable that contains the control) is registered in the Windows registry under HKEY_CLASS_ROOT\CLSID. This is one thing that makes COM so attractive - you don't have to worry about where the file is (thus helping to eliminate DLL hell, so long as you follow good COM guidelines about interface naming and the like).

Make sure the ActiveX DLL (or OCX or whatever) is registered correctly using regsvr32.exe.

The other possibility is that the interop assembly was not found. When you import an ActiveX control (or even a typelib) interop assemblies are generated, which are also called Runtime Callable Wrappers, or RCWs. Those assemblies must be either in the same directory as the service executable, in the probing path (configurable in the .config file, which must also be in the same directory as the service executable and named the same as the executable + ".config"), using the <assemblyBinding> section in your .config file, or installed into the Global Assembly Cache (GAC), which requires that the assembly be signed (it's easy, just use sn.exe -k KeyFile.snk to generate a key pair).

 

Microsoft MVP, Visual C#
My Articles
Generalpassing strings between ATL and c# Pin
rana7415-Apr-04 16:25
rana7415-Apr-04 16:25 
GeneralRe: passing strings between ATL and c# Pin
Mike Dimmick16-Apr-04 1:01
Mike Dimmick16-Apr-04 1:01 
GeneralRe: passing strings between ATL and c# Pin
RNEELY16-Apr-04 7:03
RNEELY16-Apr-04 7:03 
Generalerror progation from ATL to c# Pin
rana7415-Apr-04 16:24
rana7415-Apr-04 16:24 
GeneralRe: error progation from ATL to c# Pin
Mike Dimmick16-Apr-04 2:30
Mike Dimmick16-Apr-04 2:30 
QuestionCalling COM methods from a module NOT ALLOWED? Pin
normanordas15-Apr-04 15:28
normanordas15-Apr-04 15:28 
AnswerRe: Calling COM methods from a module NOT ALLOWED? Pin
Mike Dimmick16-Apr-04 0:59
Mike Dimmick16-Apr-04 0:59 
GeneralRe: Calling COM methods from a module NOT ALLOWED? Pin
normanordas16-Apr-04 3:00
normanordas16-Apr-04 3:00 
AnswerRe: Calling COM methods from a module NOT ALLOWED? Pin
Heath Stewart16-Apr-04 4:10
protectorHeath Stewart16-Apr-04 4:10 
GeneralRe: Calling COM methods from a module NOT ALLOWED? Pin
normanordas18-Apr-04 15:45
normanordas18-Apr-04 15:45 
GeneralRe: Calling COM methods from a module NOT ALLOWED? Pin
Heath Stewart19-Apr-04 2:22
protectorHeath Stewart19-Apr-04 2:22 
QuestionHow do you deal with checkboxes in C#??? Pin
adonisv15-Apr-04 10:43
adonisv15-Apr-04 10:43 
AnswerRe: How do you deal with checkboxes in C#??? Pin
Judah Gabriel Himango15-Apr-04 10:50
sponsorJudah Gabriel Himango15-Apr-04 10:50 
AnswerRe: How do you deal with checkboxes in C#??? Pin
Daniel Turini15-Apr-04 10:55
Daniel Turini15-Apr-04 10:55 
GeneralWhat a coincidence! Pin
adonisv15-Apr-04 12:01
adonisv15-Apr-04 12:01 
AnswerRe: How do you deal with checkboxes in C#??? Pin
Nnamdi Onyeyiri15-Apr-04 11:01
Nnamdi Onyeyiri15-Apr-04 11:01 
GeneralSetup Project with Crystal Pin
hxxbin15-Apr-04 10:22
hxxbin15-Apr-04 10:22 

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.