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

Managed C++/CLI

 
AnswerRe: Refresh Database Pin
N a v a n e e t h30-Oct-09 16:38
N a v a n e e t h30-Oct-09 16:38 
Question>(resources->GetObject(L"Ythree.Image"))); Pin
ikurtz29-Oct-09 5:16
ikurtz29-Oct-09 5:16 
AnswerRe: >(resources->GetObject(L"Ythree.Image"))); Pin
ikurtz29-Oct-09 5:27
ikurtz29-Oct-09 5:27 
GeneralRe: >(resources->GetObject(L"Ythree.Image"))); Pin
ikurtz29-Oct-09 8:55
ikurtz29-Oct-09 8:55 
GeneralRe: >(resources->GetObject(L"Ythree.Image"))); Pin
ikurtz30-Oct-09 4:26
ikurtz30-Oct-09 4:26 
QuestionUnresolved externals Pin
Lutosław28-Oct-09 23:04
Lutosław28-Oct-09 23:04 
AnswerSolved externals Pin
Lutosław28-Oct-09 23:20
Lutosław28-Oct-09 23:20 
QuestionMemory access exception instantiating c++ native code from /clr c++ code Pin
redivider28-Oct-09 7:37
redivider28-Oct-09 7:37 
Here is my setup.

- c# wrapper calls managed c++ API code
- managed c++ calls unmanaged API code (c++ compiled with the /clr flag, located in the same project) using static funtions
- API tries to instantiate object defined in another dll (native c++)

void Screen::EvaluateScreen(LPCTSTR lpStrScreen, LPCTSTR lpStrSetName, LPCTSTR lpStrPeriods) 
{
  NativeDocument *screenDoc = NULL;
  screenDoc = new NativeDocument;


calling the constructor causes a "Attempted to read write protected memory. ....memory corupt?..." error in the contstructor code.

I'm new to c++ coding as well as this interop stuff. Any ideas? Is there an issue instantiating native code from inside the /clr compiled c++? The code i'm using (EvaluateScreen) is lifted from another native DLL so the code in there should be good (i guess).
AnswerRe: Memory access exception instantiating c++ native code from /clr c++ code Pin
N a v a n e e t h28-Oct-09 15:54
N a v a n e e t h28-Oct-09 15:54 
GeneralRe: Memory access exception instantiating c++ native code from /clr c++ code Pin
redivider29-Oct-09 5:55
redivider29-Oct-09 5:55 
GeneralRe: Memory access exception instantiating c++ native code from /clr c++ code Pin
N a v a n e e t h29-Oct-09 6:48
N a v a n e e t h29-Oct-09 6:48 
QuestiontableLayoutPanel grid orientation Pin
ikurtz27-Oct-09 10:04
ikurtz27-Oct-09 10:04 
QuestionHow to use Crystal Report in Visual C++ .Net 2005 [modified] Pin
Kingshuk Sarkar27-Oct-09 2:19
Kingshuk Sarkar27-Oct-09 2:19 
QuestionHow to make text width Uniform in richtextbox? Pin
santoshkaif24-Oct-09 4:00
santoshkaif24-Oct-09 4:00 
AnswerRe: How to make text width Uniform in richtextbox? Pin
Nuri Ismail24-Oct-09 6:05
Nuri Ismail24-Oct-09 6:05 
GeneralRe: How to make text width Uniform in richtextbox? Pin
santoshkaif24-Oct-09 22:42
santoshkaif24-Oct-09 22:42 
Questionreading in char Pin
jonig1923-Oct-09 14:31
jonig1923-Oct-09 14:31 
AnswerRe: reading in char Pin
Mark Salsbery24-Oct-09 6:20
Mark Salsbery24-Oct-09 6:20 
Questionpainting with correct timing on vertical sync Pin
Andreoli Carlo22-Oct-09 3:56
professionalAndreoli Carlo22-Oct-09 3:56 
QuestionError while Database name is numeric in MySQL Pin
MsmVc21-Oct-09 22:26
MsmVc21-Oct-09 22:26 
QuestionMarshal native string to managed string for wrapper DLL Pin
alleyes20-Oct-09 9:53
professionalalleyes20-Oct-09 9:53 
AnswerRe: Marshal native string to managed string for wrapper DLL Pin
Luc Pattyn20-Oct-09 14:38
sitebuilderLuc Pattyn20-Oct-09 14:38 
GeneralRe: Marshal native string to managed string for wrapper DLL [modified] Pin
alleyes20-Oct-09 15:07
professionalalleyes20-Oct-09 15:07 
GeneralRe: Marshal native string to managed string for wrapper DLL Pin
Luc Pattyn20-Oct-09 15:20
sitebuilderLuc Pattyn20-Oct-09 15:20 
GeneralRe: Marshal native string to managed string for wrapper DLL Pin
alleyes20-Oct-09 15:37
professionalalleyes20-Oct-09 15:37 

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.