Click here to Skip to main content
16,006,531 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralUsing a function across code Pin
monrobot1310-Sep-03 14:16
monrobot1310-Sep-03 14:16 
Generalldfcn.h/lcfdn.c Pin
vb119-Sep-03 5:05
vb119-Sep-03 5:05 
GeneralNDoc for mC++ Pin
Jonathan de Halleux8-Sep-03 3:26
Jonathan de Halleux8-Sep-03 3:26 
GeneralManaged C++ conflict with WTL Pin
xqxq8-Sep-03 3:14
xqxq8-Sep-03 3:14 
GeneralRe: Managed C++ conflict with WTL Pin
Tom Archer9-Sep-03 18:54
Tom Archer9-Sep-03 18:54 
GeneralConverting an ATL Service to Managed C++ Pin
Ben Ashley7-Sep-03 0:10
Ben Ashley7-Sep-03 0:10 
GeneralRe: Converting an ATL Service to Managed C++ Pin
igor19609-Sep-03 9:37
igor19609-Sep-03 9:37 
Generalvc++ & mc++ & c# Pin
RHamilton5-Sep-03 14:54
RHamilton5-Sep-03 14:54 
I'm a new-comer to mc++, so I thought I'd start with something simple but useful. I was going to create a mc++ dll that I could link to from a vc++ app to make use of the native image conversion functions in the .Net framework (without moving an existing project to mc++). This was progressing nicely until I tried exercise some control over the compression used when encoding the new file. This requires use of the ImageCodecInfo class, which unfortunately can't be used in c++ (due to a contained jagged array Frown | :( ). Okay, so now I'm trying move the offending functions to a c# class library, so they can be accessed by the mc++ dll, and in turn by the vc++ app. The result is an app the crashes before the first line of my own code is executed. At this point, I know that there are three CWinApps being instantiated. The first is a _afxOleWinApp (presumably related to the c# dll), the second is mc++ dll, and the third is the vc++ app that the crash occurs in. The CWinApp constructor apparently wants to confirm that there's not already a thread before it creates a new one, but the mc++ dll's CWinApp is now showing up as the afxGetThread(). The constructor ASSERTs and everything grinds to a halt before it even starts. (If I remove the calls to the c# dll the problem goes away.)

This can't be a fundamentally flawed idea, right? I'm using the System.Drawing.Dll without any problems. Can somebody at least confirm that this should work?
GeneralRe: vc++ & mc++ & c# Pin
igor19606-Sep-03 11:37
igor19606-Sep-03 11:37 
GeneralRe: vc++ & mc++ & c# Pin
RHamilton9-Sep-03 2:31
RHamilton9-Sep-03 2:31 
QuestionHow do I prevent program preemption Pin
EnkelIk5-Sep-03 3:28
EnkelIk5-Sep-03 3:28 
AnswerRe: How do I prevent program preemption Pin
RHamilton5-Sep-03 15:42
RHamilton5-Sep-03 15:42 
GeneralRe: How do I prevent program preemption Pin
EnkelIk9-Sep-03 4:29
EnkelIk9-Sep-03 4:29 
GeneralWrapping a COM interface containing VARIANTs - help urgently required Pin
Mike Stoker4-Sep-03 6:41
Mike Stoker4-Sep-03 6:41 
GeneralPorting CWnd MFC class to ManagedC++ Pin
Katamneni3-Sep-03 7:19
Katamneni3-Sep-03 7:19 
Generalc++ wrapper and inherance Pin
Jonathan de Halleux2-Sep-03 23:49
Jonathan de Halleux2-Sep-03 23:49 
GeneralRe: c++ wrapper and inherance Pin
Nemanja Trifunovic3-Sep-03 7:25
Nemanja Trifunovic3-Sep-03 7:25 
GeneralRe: c++ wrapper and inherance Pin
leppie3-Sep-03 7:33
leppie3-Sep-03 7:33 
GeneralUsing a form created in C# in a MC++ app Pin
monrobot1331-Aug-03 13:57
monrobot1331-Aug-03 13:57 
GeneralRe: Using a form created in C# in a MC++ app Pin
J. Dunlap31-Aug-03 19:43
J. Dunlap31-Aug-03 19:43 
GeneralRe: Using a form created in C# in a MC++ app Pin
monrobot131-Sep-03 9:29
monrobot131-Sep-03 9:29 
GeneralRe: Using a form created in C# in a MC++ app Pin
J. Dunlap1-Sep-03 9:45
J. Dunlap1-Sep-03 9:45 
GeneralRe: Using a form created in C# in a MC++ app Pin
monrobot131-Sep-03 18:10
monrobot131-Sep-03 18:10 
GeneralRe: Using a form created in C# in a MC++ app Pin
RHamilton5-Sep-03 15:51
RHamilton5-Sep-03 15:51 
GeneralRe: Using a form created in C# in a MC++ app Pin
Ben Ashley7-Sep-03 0:17
Ben Ashley7-Sep-03 0:17 

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.