Click here to Skip to main content
15,895,142 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionSome basic questions! Pin
Arman Ghazanchyan8-Sep-08 8:53
Arman Ghazanchyan8-Sep-08 8:53 
AnswerRe: Some basic questions! Pin
Mark Salsbery8-Sep-08 9:40
Mark Salsbery8-Sep-08 9:40 
GeneralRe: Some basic questions! Pin
Arman Ghazanchyan8-Sep-08 9:54
Arman Ghazanchyan8-Sep-08 9:54 
GeneralRe: Some basic questions! Pin
Mark Salsbery8-Sep-08 9:57
Mark Salsbery8-Sep-08 9:57 
QuestionRe: Some basic questions! Pin
Arman Ghazanchyan8-Sep-08 9:56
Arman Ghazanchyan8-Sep-08 9:56 
AnswerRe: Some basic questions! Pin
Mark Salsbery8-Sep-08 10:01
Mark Salsbery8-Sep-08 10:01 
GeneralRe: Some basic questions! Pin
Arman Ghazanchyan8-Sep-08 10:06
Arman Ghazanchyan8-Sep-08 10:06 
QuestionTurning Existing Pile of Code into DLL Pin
Oddball5-Sep-08 5:08
Oddball5-Sep-08 5:08 
Hey again, gang,

Once again, I have a question that I'm sure comes from me just missing something simple. I googled around a bit for this, but wasn't able to find anything that addressed this directly, just related tasks that didn't quite give me what I needed. If I'm just being thick-headed, I'd be more than happy with just being slapped with a link so I can learn on my own.

I'm dealing with a large collection of .h and .cpp files that together make up a bunch of classes that assist with TCP communication for a large project. Several different programs in the project use these files, and they currently do so by just #include-ing them in their own code. Consequently, a change to one packet class makes it necessary to recompile every project that depends on it. I believe that it would be better to roll all of these files into a DLL that each of the other projects can link against.

I have written my own DLLs a few times, but have always done so by creating a namespace in the DLL project and adding classes to it directly, but I can't do that here since the classes are already defined in the existing headers. How can I include these existing classes in my DLL project and make them visible from its namespace? Just #include-ing them doesn't seem to be enough, since I get a bundle of linker errors when I try to use the resulting DLL in other projects.

Could someone please clue me in or point me to a resource on this? Thanks a million!

(I'm using Visual Studio 2008 with C++/CLI. The code I'm trying to roll up is written in C++, and is cross-platform enough to be compiled on Windows and Linux boxes. I'm trying to create a DLL out of them to be used in other C++/CLI projects, and let the Linux guys handle it their own way on their side, so I don't want to modify the existing code and make it Windows-only.)
AnswerRe: Turning Existing Pile of Code into DLL Pin
led mike5-Sep-08 5:20
led mike5-Sep-08 5:20 
GeneralRe: Turning Existing Pile of Code into DLL Pin
Oddball5-Sep-08 5:28
Oddball5-Sep-08 5:28 
QuestionTo Fill DataSource of my ComBobox with Paper Orientation Enumeration Pin
mikobi2-Sep-08 19:52
mikobi2-Sep-08 19:52 
QuestionRAR compression Pin
dSolariuM29-Aug-08 19:38
dSolariuM29-Aug-08 19:38 
AnswerRe: RAR compression Pin
Paul Conrad30-Aug-08 8:05
professionalPaul Conrad30-Aug-08 8:05 
QuestionUpgrading vc 2003 project to vc 2008 Pin
Robin Imrie28-Aug-08 22:24
professionalRobin Imrie28-Aug-08 22:24 
AnswerRe: Upgrading vc 2003 project to vc 2008 Pin
Mark Salsbery29-Aug-08 9:19
Mark Salsbery29-Aug-08 9:19 
Questioncliext::list strange behavior Pin
ian__lindsay27-Aug-08 3:32
ian__lindsay27-Aug-08 3:32 
AnswerRe: cliext::list strange behavior [modified] Pin
George L. Jackson28-Aug-08 9:22
George L. Jackson28-Aug-08 9:22 
QuestionPlease check code update sqlserver with VC++6.0 Pin
aa_zz25-Aug-08 15:17
aa_zz25-Aug-08 15:17 
AnswerRe: Please check code update sqlserver with VC++6.0 Pin
Mark Salsbery26-Aug-08 5:56
Mark Salsbery26-Aug-08 5:56 
QuestionHow to load/use COM dll written in VS6 from VC++ .NET 2005 Pin
amalhotr25-Aug-08 10:03
amalhotr25-Aug-08 10:03 
QuestionRe: How to load/use COM dll written in VS6 from VC++ .NET 2005 Pin
led mike26-Aug-08 6:56
led mike26-Aug-08 6:56 
AnswerRe: How to load/use COM dll written in VS6 from VC++ .NET 2005 Pin
amalhotr26-Aug-08 7:37
amalhotr26-Aug-08 7:37 
QuestionPlease Guide I Update Sql2000 in VC++6.0 !!! Pin
aa_zz24-Aug-08 18:18
aa_zz24-Aug-08 18:18 
QuestionMultiple forms but with MDIParent container [modified] Pin
C# Beginner Nick24-Aug-08 16:56
C# Beginner Nick24-Aug-08 16:56 
AnswerRe: Multiple forms but with MDIParent container Pin
LionAM28-Aug-08 0:36
LionAM28-Aug-08 0:36 

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.