Click here to Skip to main content
15,918,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How I can resize the web page size in Microsoft web browser? Pin
Parthi_Appu19-Nov-06 19:44
Parthi_Appu19-Nov-06 19:44 
QuestionWriting an iterator for your class Pin
HondaCBR60019-Nov-06 18:29
HondaCBR60019-Nov-06 18:29 
AnswerRe: Writing an iterator for your class Pin
Sceptic Mole19-Nov-06 22:14
Sceptic Mole19-Nov-06 22:14 
Questionsetfocus not working Pin
prithaa19-Nov-06 17:21
prithaa19-Nov-06 17:21 
AnswerRe: setfocus not working Pin
Parthi_Appu19-Nov-06 17:25
Parthi_Appu19-Nov-06 17:25 
AnswerRe: setfocus not working Pin
toxcct20-Nov-06 0:50
toxcct20-Nov-06 0:50 
AnswerRe: setfocus not working Pin
Mark Salsbery20-Nov-06 6:53
Mark Salsbery20-Nov-06 6:53 
QuestionHow do I access a c# class from vc++? Pin
malayalite19-Nov-06 16:08
malayalite19-Nov-06 16:08 
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 access a c# class from vc++? Pin
Christian Graus19-Nov-06 17:00
protectorChristian Graus19-Nov-06 17:00 
GeneralRe: How do I access a c# class from vc++? Pin
malayalite19-Nov-06 18:27
malayalite19-Nov-06 18:27 
GeneralRe: How do I access a c# class from vc++? Pin
Christian Graus19-Nov-06 18:32
protectorChristian Graus19-Nov-06 18:32 
GeneralRe: How do I access a c# class from vc++? Pin
malayalite19-Nov-06 18:48
malayalite19-Nov-06 18:48 
Questionabout VC+MySQL problem:) Pin
rxgmoral19-Nov-06 15:13
rxgmoral19-Nov-06 15:13 
AnswerRe: about VC+MySQL problem:) Pin
Christian Graus19-Nov-06 15:21
protectorChristian Graus19-Nov-06 15:21 
Questionarray of functions of two parameters Pin
jquan3278619-Nov-06 4:27
jquan3278619-Nov-06 4:27 
AnswerRe: array of functions of two parameters Pin
Mark Salsbery19-Nov-06 7:13
Mark Salsbery19-Nov-06 7:13 
AnswerRe: array of functions of two parameters Pin
CPallini20-Nov-06 3:48
mveCPallini20-Nov-06 3:48 
QuestionDisplay Waveform of MP3 Pin
quantumdecipher19-Nov-06 2:11
quantumdecipher19-Nov-06 2:11 
Question--------- Pin
Irwin.R19-Nov-06 0:03
Irwin.R19-Nov-06 0:03 
AnswerRe: Setting File Permissions Pin
PJ Arends19-Nov-06 0:26
professionalPJ Arends19-Nov-06 0:26 
QuestionCBitmap(HBITMAP) conversion to raw RBG image. Pin
harripyy_118-Nov-06 23:48
harripyy_118-Nov-06 23:48 
AnswerRe: CBitmap(HBITMAP) conversion to raw RBG image. Pin
Waldermort19-Nov-06 0:47
Waldermort19-Nov-06 0:47 
GeneralRe: CBitmap(HBITMAP) conversion to raw RBG image. Pin
harripyy_119-Nov-06 1:47
harripyy_119-Nov-06 1:47 
Questionthe difference of using custom control and picture ? Pin
cyn818-Nov-06 23:10
cyn818-Nov-06 23:10 
AnswerRe: the difference of using custom control and picture ? Pin
Mark Salsbery19-Nov-06 5:58
Mark Salsbery19-Nov-06 5:58 

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.