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

Managed C++/CLI

 
GeneralRe: string formatting to show hex values Pin
richiemac18-May-05 0:04
richiemac18-May-05 0:04 
QuestionHow to use unmanaged char arrays as class member? Pin
Thomas Freudenberg12-May-05 3:59
Thomas Freudenberg12-May-05 3:59 
GeneralManaged wrapper and inheritance Pin
Johan de Koning12-May-05 0:00
Johan de Koning12-May-05 0:00 
GeneralNullReferenceException in MC++ Pin
Member 19685839-May-05 11:52
Member 19685839-May-05 11:52 
GeneralRe: NullReferenceException in MC++ Pin
Anonymous10-May-05 10:05
Anonymous10-May-05 10:05 
GeneralExcellent Question Pin
ursus zeta10-May-05 10:33
ursus zeta10-May-05 10:33 
GeneralRe: Excellent Question Pin
Gurminder_G10-May-05 11:14
sussGurminder_G10-May-05 11:14 
GeneralRe: Excellent Question Pin
ursus zeta12-May-05 9:30
ursus zeta12-May-05 9:30 
Some suggestions:
I am unfamiliar with the Adobe Framemaker DLLs, but I'm guessing they are COM libraries. Generally, when you get a NullReferenceException, as you no doubt are aware, you failed to correctly instatiate the COM object or Interface that you must obtain (by calling Query Interface) in order use the method. In your code, you could handle the exception by outputting the exception to a message box or something similar.
malloc is deprecated in C++, and should NOT be used in .NET (although you can use the appropiate headers that define the malloc memory allocator) it is not recommended. Instead use the new operator to instantiate objects, and then -> pointer syntax to invoke methods.
If you are dealing with a COM type library, try using the TlbImp.exe that is included with the Framework SDK and the .NET Framework install. This utility will convert a type library into a .NET assembly that can be referenced directly in source code and used as if they were .NET Framework types. You can then examine the types, methods, and all associated elements in the IL Disassembler, which is a great help.

However, none of the above explains why your code would work in a managed console application, and why it would fail in (what I'm assuming is a managed forms application). I'm guessing that you are leaving out some critical piece of information.
GeneralToolboxItem attribute problem Pin
tomand9-May-05 0:17
tomand9-May-05 0:17 
Generalmanaged c++ Pin
_tasleem8-May-05 9:47
_tasleem8-May-05 9:47 
GeneralRe: managed c++ Pin
Christian Graus8-May-05 14:11
protectorChristian Graus8-May-05 14:11 
Generalmystring object help Pin
user3166-May-05 19:24
user3166-May-05 19:24 
GeneralRe: mystring object help Pin
user3166-May-05 19:36
user3166-May-05 19:36 
GeneralPassword Code Pin
Derdog1016-May-05 16:37
Derdog1016-May-05 16:37 
GeneralRe: Password Code Pin
Christian Graus8-May-05 14:13
protectorChristian Graus8-May-05 14:13 
GeneralProtect a file by group Pin
sloaken6-May-05 15:37
sloaken6-May-05 15:37 
GeneralIs there a way to print a String using mc++ Pin
Lagwagon565-May-05 7:25
Lagwagon565-May-05 7:25 
GeneralRe: Is there a way to print a String using mc++ Pin
Christian Graus8-May-05 14:14
protectorChristian Graus8-May-05 14:14 
GeneralC++ Problem Pin
Dohan CRPathirana4-May-05 21:38
sussDohan CRPathirana4-May-05 21:38 
GeneralRe: C++ Problem Pin
ushani5-May-05 18:24
ushani5-May-05 18:24 
GeneralInterop::Excel Pin
Delver4-May-05 9:24
Delver4-May-05 9:24 
GeneralCalling an excutable from C++ Pin
HTisGood1-May-05 0:02
sussHTisGood1-May-05 0:02 
GeneralProcess Pin
ursus zeta1-May-05 10:50
ursus zeta1-May-05 10:50 
QuestionHow Do you pass a variable between forms? Pin
Lagwagon5629-Apr-05 7:03
Lagwagon5629-Apr-05 7:03 
AnswerRe: How Do you pass a variable between forms? Pin
Christian Graus1-May-05 11:24
protectorChristian Graus1-May-05 11:24 

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.