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

Managed C++/CLI

 
AnswerRe: Bitmap-Stride a multiple of 4? Pin
Mark Salsbery11-Sep-09 6:10
Mark Salsbery11-Sep-09 6:10 
QuestionCalling managed function from unmanaged function Pin
santoshkaif8-Sep-09 9:59
santoshkaif8-Sep-09 9:59 
AnswerRe: Calling managed function from unmanaged function Pin
N a v a n e e t h8-Sep-09 16:31
N a v a n e e t h8-Sep-09 16:31 
AnswerRe: Calling managed function from unmanaged function [modified] Pin
santoshkaif8-Sep-09 17:52
santoshkaif8-Sep-09 17:52 
GeneralRe: Calling managed function from unmanaged function Pin
N a v a n e e t h9-Sep-09 5:49
N a v a n e e t h9-Sep-09 5:49 
QuestionRe: Calling managed function from unmanaged function [modified] Pin
santoshkaif9-Sep-09 8:18
santoshkaif9-Sep-09 8:18 
AnswerRe: Calling managed function from unmanaged function Pin
N a v a n e e t h9-Sep-09 16:35
N a v a n e e t h9-Sep-09 16:35 
QuestionRe: Calling managed function from unmanaged function Pin
santoshkaif10-Sep-09 0:04
santoshkaif10-Sep-09 0:04 
But i get compilation errors as

error C2065: 'stream' : undeclared identifier
error C2228: left of '.str' must have class/struct/union type is ''unknown-type''


Error occurs at
void WriteToScreen(std::stringstream& value){   
         // Constructing managed string from stringstream   
         std::string str = stream.str();   <---------------------Error
         String^ managedString = gcnew String(str.c_str());   
         Form1^ form = Form1::GetInstance();   
         form->PrintValue(managedString);
}


Just for compilation purpose, if i make the following modification
//std::string str = stream.str();   <---------------------Error
std::string str;

I start getting following linker errors

Compiling managed resources...
Read in 0 resources from "f:\Projects\Temp\MTK3\GUI\GUI_APP\GUI_APP\GUI_APP\Form1.resx"
Writing resource file...  Done.
Compiling resources...
Linking...
Form1.obj : error LNK2028: unresolved token (0A00001F) "void __clrcall register_func(int (__clrcall*)(char const *,...))" (?register_func@@$$FYMXP6MHPBDZZ@Z) referenced in function "public: __clrcall GUI_APP::Form1::Form1(void)" (??0Form1@GUI_APP@@$$FQ$AAM@XZ)
GUI_APP.obj : error LNK2028: unresolved token (0A000016) "void __clrcall library_operation(void)" (?library_operation@@$$FYMXXZ) referenced in function "private: void __clrcall GUI_APP::Form1::library_func(void)" (?library_func@Form1@GUI_APP@@$$FA$AAMXXZ)
Form1.obj : error LNK2028: unresolved token (0A000022) "void __clrcall library_operation(void)" (?library_operation@@$$FYMXXZ) referenced in function "private: void __clrcall GUI_APP::Form1::library_func(void)" (?library_func@Form1@GUI_APP@@$$FA$AAMXXZ)
Form1.obj : error LNK2019: unresolved external symbol "void __clrcall library_operation(void)" (?library_operation@@$$FYMXXZ) referenced in function "private: void __clrcall GUI_APP::Form1::library_func(void)" (?library_func@Form1@GUI_APP@@$$FA$AAMXXZ)
GUI_APP.obj : error LNK2001: unresolved external symbol "void __clrcall library_operation(void)" (?library_operation@@$$FYMXXZ)
Form1.obj : error LNK2019: unresolved external symbol "void __clrcall register_func(int (__clrcall*)(char const *,...))" (?register_func@@$$FYMXP6MHPBDZZ@Z) referenced in function "public: __clrcall GUI_APP::Form1::Form1(void)" (??0Form1@GUI_APP@@$$FQ$AAM@XZ)
fatal error LNK1120: 5 unresolved externals
GUI_APP - 7 error(s), 1 warning(s)

AnswerRe: Calling managed function from unmanaged function Pin
santoshkaif10-Sep-09 0:16
santoshkaif10-Sep-09 0:16 
AnswerRe: Calling managed function from unmanaged function Pin
N a v a n e e t h10-Sep-09 6:08
N a v a n e e t h10-Sep-09 6:08 
GeneralRe: Calling managed function from unmanaged function [modified] Pin
santoshkaif10-Sep-09 7:21
santoshkaif10-Sep-09 7:21 
GeneralRe: Calling managed function from unmanaged function Pin
N a v a n e e t h10-Sep-09 16:10
N a v a n e e t h10-Sep-09 16:10 
GeneralRe: Calling managed function from unmanaged function Pin
santoshkaif10-Sep-09 18:43
santoshkaif10-Sep-09 18:43 
QuestionRe: Calling managed function from unmanaged function Pin
santoshkaif21-Sep-09 2:20
santoshkaif21-Sep-09 2:20 
AnswerRe: Calling managed function from unmanaged function Pin
N a v a n e e t h22-Sep-09 15:31
N a v a n e e t h22-Sep-09 15:31 
QuestionMultiple Forms in VS2005 Pin
rtshield6-Sep-09 15:17
rtshield6-Sep-09 15:17 
AnswerRe: Multiple Forms in VS2005 Pin
N a v a n e e t h6-Sep-09 15:58
N a v a n e e t h6-Sep-09 15:58 
QuestionWeird problem with writing to a label in a form. (VC++ 2008) Pin
alzaeem4-Sep-09 6:55
alzaeem4-Sep-09 6:55 
AnswerRe: Weird problem with writing to a label in a form. (VC++ 2008) Pin
N a v a n e e t h4-Sep-09 18:12
N a v a n e e t h4-Sep-09 18:12 
GeneralRe: Weird problem with writing to a label in a form. (VC++ 2008) Pin
alzaeem5-Sep-09 17:32
alzaeem5-Sep-09 17:32 
AnswerRe: Weird problem with writing to a label in a form. (VC++ 2008) Pin
Luc Pattyn6-Sep-09 1:20
sitebuilderLuc Pattyn6-Sep-09 1:20 
Questionmodify a DLL(binary) to call another DLL function/exe or embed a code...I need some concepts clarification Pin
Member 43963092-Sep-09 21:58
Member 43963092-Sep-09 21:58 
AnswerRe: modify a DLL(binary) to call another DLL function/exe or embed a code...I need some concepts clarification Pin
Richard MacCutchan3-Sep-09 2:24
mveRichard MacCutchan3-Sep-09 2:24 
Questionthe error in managed c++ function call unmanaged c++ function Pin
jetjeankimo2-Sep-09 17:43
jetjeankimo2-Sep-09 17:43 
AnswerRe: the error in managed c++ function call unmanaged c++ function Pin
N a v a n e e t h3-Sep-09 0:00
N a v a n e e t h3-Sep-09 0:00 

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.