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

Managed C++/CLI

 
AnswerRe: Query with parameters Pin
mikobi27-Jun-07 5:34
mikobi27-Jun-07 5:34 
QuestionMVPs Pin
vibindia25-Jun-07 18:11
vibindia25-Jun-07 18:11 
AnswerRe: MVPs Pin
Giorgi Dalakishvili25-Jun-07 20:35
mentorGiorgi Dalakishvili25-Jun-07 20:35 
AnswerRe: MVPs Pin
Mark Salsbery25-Jun-07 20:45
Mark Salsbery25-Jun-07 20:45 
QuestionImage GDI+ from a buffer Pin
Ahmed_Barakat25-Jun-07 5:56
Ahmed_Barakat25-Jun-07 5:56 
AnswerRe: Image GDI+ from a buffer Pin
led mike25-Jun-07 6:04
led mike25-Jun-07 6:04 
AnswerRe: Image GDI+ from a buffer Pin
Mark Salsbery25-Jun-07 8:56
Mark Salsbery25-Jun-07 8:56 
Questionproblem with unmanaged pointers Pin
Arris7425-Jun-07 5:46
Arris7425-Jun-07 5:46 
Hello,

I have an MFC application that i would like to mix with Managed C++.
I changed the compiler settings and everything compiles fine.
For the moment I did not write any managed code but I have the message as follows at execution:

"An unhandled exception of type 'System.TypeLoadException' occurred in ApplicationName.exe
Additional information: Could not load type _TREEITEM from assembly ApplicationName, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null."

This message occurs before execution of the function that returns a pointer.
I have put a breakpoint in it but it is never called.
I think it is unmanaged pointer problem because I have modified the function to return a reference to CWnd and everything was Ok.

below is the code snipped, Could please help me because I am 100% newbee with C++/CLIConfused | :confused:

Declaration
// Attributes
private:
CWnd* m_pView;

//Declaration of the function
CWnd* CreateTreeView();



Definition
//Constructor definition
BnBPaneView::BnBPaneView():m_pView(NULL){}


//definition of the function
int BnBPaneView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CWnd::OnCreate(lpCreateStruct) == -1)
		return -1;
	
	
	m_pView = CreateTreeView();// error message here. The function is not called at all.
//Create view is a function that creates a treeview and uses a CTreeCtrl object.
	
etc..
.
.
.
}

AnswerRe: problem with unmanaged pointers Pin
Mark Salsbery25-Jun-07 9:00
Mark Salsbery25-Jun-07 9:00 
GeneralRe: problem with unmanaged pointers Pin
Arris7425-Jun-07 10:18
Arris7425-Jun-07 10:18 
GeneralRe: problem with unmanaged pointers Pin
Mark Salsbery25-Jun-07 12:58
Mark Salsbery25-Jun-07 12:58 
GeneralRe: problem with unmanaged pointers Pin
Arris7425-Jun-07 20:24
Arris7425-Jun-07 20:24 
GeneralRe: problem with unmanaged pointers Pin
Mark Salsbery25-Jun-07 20:36
Mark Salsbery25-Jun-07 20:36 
GeneralRe: problem with unmanaged pointers Pin
Arris7426-Jun-07 5:04
Arris7426-Jun-07 5:04 
GeneralRe: problem with unmanaged pointers Pin
Mark Salsbery26-Jun-07 5:48
Mark Salsbery26-Jun-07 5:48 
QuestionWhy this error in C++ code fragment ?? Pin
xbiju24-Jun-07 17:20
xbiju24-Jun-07 17:20 
AnswerRe: Why this error in C++ code fragment ?? Pin
Christian Graus24-Jun-07 17:41
protectorChristian Graus24-Jun-07 17:41 
QuestionGDI+ Image Pin
Ahmed_Barakat24-Jun-07 4:36
Ahmed_Barakat24-Jun-07 4:36 
AnswerRe: GDI+ Image Pin
Christian Graus24-Jun-07 11:40
protectorChristian Graus24-Jun-07 11:40 
Questionsql query Pin
mohantfor.net21-Jun-07 21:04
mohantfor.net21-Jun-07 21:04 
AnswerRe: sql query Pin
Mark Salsbery22-Jun-07 8:51
Mark Salsbery22-Jun-07 8:51 
QuestionUsing win32 API functions in CLI Pin
Programm3r21-Jun-07 19:38
Programm3r21-Jun-07 19:38 
AnswerRe: Using win32 API functions in CLI Pin
Mark Salsbery22-Jun-07 8:49
Mark Salsbery22-Jun-07 8:49 
Questionproblem with calling managed code from unmanaged code Pin
hamid12332120-Jun-07 19:11
hamid12332120-Jun-07 19:11 
AnswerRe: problem with calling managed code from unmanaged code Pin
Mark Salsbery21-Jun-07 7:06
Mark Salsbery21-Jun-07 7:06 

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.