View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0002043 | JEDI VCL | 00 JVCL Components | public | 2004-08-09 04:30 | 2004-08-09 14:07 | 
| Reporter | ralf.kaiser | Assigned To | user72 | ||
| Priority | normal | Severity | feature | Reproducibility | always | 
| Status | resolved | Resolution | fixed | ||
| Product Version | 3.00 BETA | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0002043: Please add function "UnregisterServer" (included here) to JvJCLUtils.pas | ||||
| Description | Can someone with CVS write access please add this function to the unit JvJCLUtils? There is a RegisterServer-function but no way to unregister a COM-server. function UnRegisterServer(const ModuleName: string): Boolean; type TProc = procedure; var Handle: THandle; DllUnRegServ: Pointer; begin Result := False; Handle := LoadDLL(ModuleName); try DllUnRegServ := GetProcAddress(Handle, 'DllUnregisterServer'); if Assigned(DllUnRegServ) then begin TProc(DllUnRegServ); Result := True; end; finally FreeLibrary(Handle); end; end;  | ||||
| Additional Information | Maybe it would be good to test if the DLL can be unregistered with "DllCanUnloadNow" before Unregistering?? | ||||
| Tags | No tags attached. | ||||
| 
		 | 
	Please note that the name of the function has to be "DllUnregisterServer" (with "register" in small caps). I have copied these lines from the newsgroup where i posted it wrong too :-( | 
| 
		 | 
	Corrected. | 
| 
		 | 
	Updated in CVS | 
| Date Modified | Username | Field | Change | 
|---|---|---|---|
| 2004-08-09 04:30 | ralf.kaiser | New Issue | |
| 2004-08-09 04:45 | ralf.kaiser | Note Added: 0004973 | |
| 2004-08-09 05:11 | obones | Note Added: 0004974 | |
| 2004-08-09 05:11 | obones | Description Updated | |
| 2004-08-09 14:07 | 
				 | 
			Status | new => resolved | 
| 2004-08-09 14:07 | 
				 | 
			Resolution | open => fixed | 
| 2004-08-09 14:07 | 
				 | 
			Assigned To | => user72 | 
| 2004-08-09 14:07 | 
				 | 
			Note Added: 0004975 |