Click here to Skip to main content
15,914,014 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: STL vector storing thread Pin
_tasleem30-Nov-06 23:11
_tasleem30-Nov-06 23:11 
Questioncan you help me? Pin
china.net23-Nov-06 4:32
china.net23-Nov-06 4:32 
AnswerRe: can you help me? Pin
prasad_som24-Nov-06 20:34
prasad_som24-Nov-06 20:34 
Questioncalling methods on _module Pin
tom groezer22-Nov-06 3:09
tom groezer22-Nov-06 3:09 
AnswerRe: calling methods on _module Pin
led mike22-Nov-06 5:37
led mike22-Nov-06 5:37 
QuestionTransparent controls Pin
damir_tk21-Nov-06 11:06
damir_tk21-Nov-06 11:06 
AnswerRe: Transparent controls Pin
damir_tk21-Nov-06 11:30
damir_tk21-Nov-06 11:30 
Questionhow do I Accessing a C# dll in VC++? Pin
malayalite19-Nov-06 15:31
malayalite19-Nov-06 15:31 
I have a class that I wrote I C# and I want to use it in a VC++ project without turning the C# class into a COM object. These are the steps that I've been given by a colleague:
I don't have code sample but I have steps how to do it. But my problem is how do I do step 9? Does anyone have a code sample of how to access the C# methods in VC++ through a type library??

Much appreciated!

L

1. Create a C# class
2. Generate a key for it - sn -k keyfile.snk
3. Put an assembly directive at top of file
[(Assembly: AssemblyKeyFile("keyfile.snk")]
4. Compile
5. regasm file.dll /tlb to generate the COM Type Library
6. gacutil -i file.dll to place file in GAC
7. Copy the generated typelibraries into the directory of your ATL/C++ project
8. #import file.tlb no_namespaces named_guids (look up the reff for exact syntax)
9. Compile ATL/C++ code and you will have access to the interfaces through the types in the imported tlb
AnswerRe: how do I Accessing a C# dll in VC++? Pin
led mike20-Nov-06 5:37
led mike20-Nov-06 5:37 
Questioncan somebody help me? Pin
china.net19-Nov-06 3:31
china.net19-Nov-06 3:31 
AnswerRe: help me ,please Pin
Stephen Hewitt19-Nov-06 15:28
Stephen Hewitt19-Nov-06 15:28 
Questionreplacment of CComModule in ATL7 Pin
tom groezer16-Nov-06 1:22
tom groezer16-Nov-06 1:22 
AnswerRe: replacment of CComModule in ATL7 Pin
prasad_som16-Nov-06 1:44
prasad_som16-Nov-06 1:44 
GeneralRe: replacment of CComModule in ATL7 Pin
tom groezer22-Nov-06 4:03
tom groezer22-Nov-06 4:03 
Questionshow or hiding tool bar Pin
salman kazi15-Nov-06 18:07
salman kazi15-Nov-06 18:07 
QuestionFont Information Pin
Gupta Suraj14-Nov-06 8:10
Gupta Suraj14-Nov-06 8:10 
QuestionSpecialization Pin
Juan Antonio Bermejo14-Nov-06 6:15
Juan Antonio Bermejo14-Nov-06 6:15 
AnswerRe: Specialization Pin
Joaquín M López Muñoz18-Nov-06 4:26
Joaquín M López Muñoz18-Nov-06 4:26 
GeneralRe: Specialization Pin
Juan Antonio Bermejo19-Nov-06 20:44
Juan Antonio Bermejo19-Nov-06 20:44 
AnswerRe: Specialization Pin
Zac Howland20-Nov-06 5:45
Zac Howland20-Nov-06 5:45 
QuestionSubstitute of CComModule _Module in VC2005 Pin
tom groezer13-Nov-06 18:59
tom groezer13-Nov-06 18:59 
Questionis socket class is blocking Pin
vineeshV13-Nov-06 6:06
vineeshV13-Nov-06 6:06 
AnswerRe: is socket class is blocking Pin
led mike13-Nov-06 11:38
led mike13-Nov-06 11:38 
JokeRe: is socket class is blocking Pin
Chris Meech17-Nov-06 8:14
Chris Meech17-Nov-06 8:14 
JokeRe: is socket class is blocking Pin
Jörgen Sigvardsson17-Nov-06 8:34
Jörgen Sigvardsson17-Nov-06 8:34 

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.