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

Managed C++/CLI

 
GeneralRe: Implementing IDisposable Pin
Paul Selormey25-Feb-03 1:48
Paul Selormey25-Feb-03 1:48 
GeneralRe: Implementing IDisposable Pin
VizOne25-Feb-03 2:45
VizOne25-Feb-03 2:45 
GeneralRe: Implementing IDisposable Pin
Paul Selormey25-Feb-03 2:54
Paul Selormey25-Feb-03 2:54 
QuestionManaged type??? Pin
Orkun GEDiK21-Feb-03 12:49
Orkun GEDiK21-Feb-03 12:49 
AnswerRe: Managed type??? Pin
Paul Selormey23-Feb-03 1:46
Paul Selormey23-Feb-03 1:46 
GeneralRe: Managed type??? Pin
Orkun GEDiK23-Feb-03 3:55
Orkun GEDiK23-Feb-03 3:55 
GeneralRe: Managed type??? Pin
Paul Selormey23-Feb-03 23:49
Paul Selormey23-Feb-03 23:49 
GeneralRe: Managed type??? Pin
Orkun GEDiK24-Feb-03 10:48
Orkun GEDiK24-Feb-03 10:48 
Very good and useful information for me. Thank you. I've changed my code to following form;
<br />
#include "stdafx.h"<br />
<br />
#using <mscorlib.dll><br />
#include <tchar.h><br />
#include <vcclr.h><br />
<br />
using namespace System;<br />
using namespace System::Runtime::InteropServices; <br />
<br />
#pragma unmanaged<br />
// Assume this block inside of DLL<br />
void Test(void* pIn, void* pOut)<br />
{<br />
	char* pTest = static_cast<char*>(pIn);<br />
	pOut = ("Internal\0");<br />
}<br />
<br />
#pragma managed<br />
int _tmain(void)<br />
{<br />
	String* strTestA = new String("Hello");<br />
	String* strTestB = new String("");<br />
	wchar_t __pin* pTestA = PtrToStringChars(strTestA);<br />
	wchar_t __pin* pTestB = PtrToStringChars(strTestB);<br />
	Test(static_cast<void*>(pTestA), static_cast<void*>(pTestB));<br />
    return 0;<br />
}<br />


Now, i can pass the pointer into DLL function, but i can't get any data from DLL (2nd parameter of Test function. So, pOut should be filled some data at inside of DLL). Thank you for your help...

Best Regards...

Orkun GEDiK
GeneralRe: Managed type??? Pin
Paul Selormey25-Feb-03 0:30
Paul Selormey25-Feb-03 0:30 
GeneralRe: Managed type??? Pin
Orkun GEDiK25-Feb-03 10:59
Orkun GEDiK25-Feb-03 10:59 
GeneralAppDomain question... Pin
Orkun GEDiK21-Feb-03 11:28
Orkun GEDiK21-Feb-03 11:28 
GeneralProblems working witk wav data files Pin
matlab21-Feb-03 4:03
matlab21-Feb-03 4:03 
GeneralUnverifiable assembly 'GIS.View' failed policy check Pin
Paul Selormey16-Feb-03 22:42
Paul Selormey16-Feb-03 22:42 
GeneralRe: Unverifiable assembly 'GIS.View' failed policy check Pin
ThatsJustMe17-Feb-03 22:22
ThatsJustMe17-Feb-03 22:22 
GeneralRe: Unverifiable assembly 'GIS.View' failed policy check Pin
Paul Selormey20-Feb-03 2:20
Paul Selormey20-Feb-03 2:20 
GeneralNeed help with casting __gc-pointer to void* and then back again Pin
Anonymous16-Feb-03 12:52
Anonymous16-Feb-03 12:52 
GeneralRe: Need help with casting __gc-pointer to void* and then back again Pin
Paul Selormey16-Feb-03 19:26
Paul Selormey16-Feb-03 19:26 
GeneralRe: Need help with casting __gc-pointer to void* and then back again Pin
ThatsJustMe17-Feb-03 3:20
ThatsJustMe17-Feb-03 3:20 
GeneralRe: Need help with casting __gc-pointer to void* and then back again Pin
Paul Selormey17-Feb-03 13:13
Paul Selormey17-Feb-03 13:13 
QuestionCompiling .cpp in .net dev studio ? Pin
monkh12-Feb-03 11:59
monkh12-Feb-03 11:59 
AnswerRe: Compiling .cpp in .net dev studio ? Pin
Paul Selormey16-Feb-03 19:40
Paul Selormey16-Feb-03 19:40 
Generalstatic constant string Pin
VizOne12-Feb-03 2:24
VizOne12-Feb-03 2:24 
GeneralRe: static constant string Pin
VizOne13-Feb-03 8:33
VizOne13-Feb-03 8:33 
GeneralentryPoint of a PE file Pin
blacksun_damn4-Feb-03 19:44
blacksun_damn4-Feb-03 19:44 
GeneralConverting byte[] to System::Byte[] and vice versa Pin
Martin Haesemeyer2-Feb-03 7:45
Martin Haesemeyer2-Feb-03 7:45 

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.