Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,


Q 1. Does GacInstall(string assemblyname) & RegisterAssembly(string assemblyname) been implemented/does the source code exist for the same. ?

ie., project having below binaries for subjecting to registration(Win32 dll's, COM dll's, .NET Dll's/assemblies with COM Interfaces, pure .NET dll's/assemblies.

Q 2. my Application is of Unmanaged C++, I need to embed the above calls does I need to perform any compiler switch settings(because invoking managed calls as above).

ie., how to invoke mixed mode call, from Unmanaged code to managed code though I have enabled the project settings to /CLR Safe

and

..
C++
#using <mscorlib.dll>

//I could not get autocompletion for the below namespaces 

#include "Abc.h"

.......

#using namespace System;

#using namespace System.Enterpriseservices.internal.publish;

{

Publish p = new Publish();

p.GacInstall(string assemblypath);

}


int Somefunc(void)

{

.....

return 0;

}

Details: VS 2010 IDE , Windows 7 O/S.

Regards,

VishaK_90


--------------------------------------------------------------------------------
Posted
Updated 10-May-13 0:48am
v2

1 solution

Q1. They are both Microsoft products so the source code is probably not available unless you buy a developer subscription to MSDN.

Q2. Why are you trying to embed these calls into unmanaged code; your purpose is not clear?
 
Share this answer
 
Comments
Vishal_K89 13-May-13 2:23am    
Q2) Since, my project is having references for registration and it is written in Unmanaged C++, and GacInstall(...) and Registerassembly(...) falls in the domain of managed code, hence, I need to invoke these calls from Unmanaged to managed,

Workarounds: 1) Though Compiler Switch settings I had changed the /CLR Safe and /RTC too but still I could not get it working.

Regards,
VishaK_90
Richard MacCutchan 13-May-13 2:54am    
I still do not understand what you are trying to do. There is never any need to use these calls in a project that is pure unmanaged C++. If you are creating a C++/CLI project then you need to use managed code calls as described in the documentation.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900