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

Managed C++/CLI

 
GeneralRe: Can Managed C++ Class Library DLLs be pirated? Pin
earlgraham18-Oct-06 7:58
earlgraham18-Oct-06 7:58 
GeneralRe: Can Managed C++ Class Library DLLs be pirated? Pin
Christian Graus18-Oct-06 8:03
protectorChristian Graus18-Oct-06 8:03 
QuestionInterop help! - No symbols loaded Pin
orion450018-Oct-06 4:57
orion450018-Oct-06 4:57 
AnswerRe: Interop help! - No symbols loaded Pin
User 58385218-Oct-06 12:57
User 58385218-Oct-06 12:57 
GeneralRe: Interop help! - No symbols loaded Pin
orion450019-Oct-06 9:08
orion450019-Oct-06 9:08 
QuestionHELP WITH MY 4TH ORDER RUNGE-KUTTA ALGORITHM Pin
sahoong18-Oct-06 3:51
sahoong18-Oct-06 3:51 
AnswerRe: HELP WITH MY 4TH ORDER RUNGE-KUTTA ALGORITHM Pin
Christian Graus18-Oct-06 4:01
protectorChristian Graus18-Oct-06 4:01 
QuestionImporting functions from Fortran [modified] Pin
Epi18-Oct-06 0:33
Epi18-Oct-06 0:33 
Hello,

I am trying to import a function from fortran and using it in a windows form.

I export the function like always:

MODULE FORTRANMOD<br />
PUBLIC  DllFortranTest<br />
CONTAINS<br />
INTEGER FUNCTION DllFortranTest<br />
!DEC$ ATTRIBUTES DLLEXPORT::DllFortranTest<br />
...<br />
END FUNCTION DllFortranTest<br />
 <br />
END MODULE FORTRANMOD


and I import the funcion in C like always also

__declspec (dllimport) int FORTRANMOD_mp_DLLFORTRANTEST();

But when I'm going to use it:

int i = FORTRANMOD_mp_DLLFORTRANTEST();

I get the following errors linking:

1>FortranForm1.obj : error LNK2031: unable to generate p/invoke for "extern "C" int __clrcall FORTRANMOD_mp_DLLFORTRANTEST(void)" (?FORTRANMOD_mp_DLLFORTRANTEST@@$$J0YMHXZ); calling convention missing in metadata


1>FortranForm1.obj : error LNK2028: unresolved token (0A000006) "extern "C" int __clrcall FORTRANMOD_mp_DLLFORTRANTEST(void)" (?FORTRANMOD_mp_DLLFORTRANTEST@@$$J0YMHXZ) referenced in function "private: void __clrcall ConFortran::Form1::ComunicacionFortran(void)" (?ComunicacionFortran@Form1@ConFortran@@$$FA$AAMXXZ)


1>FortranForm1.obj : error LNK2019: unresolved external symbol "extern "C" int __clrcall FORTRANMOD_mp_DLLFORTRANTEST(void)" (?FORTRANMOD_mp_DLLFORTRANTEST@@$$J0YMHXZ) referenced in function "private: void __clrcall ConFortran::Form1::ComunicacionFortran(void)" (?ComunicacionFortran@Form1@ConFortran@@$$FA$AAMXXZ)

I have also try to use:

using namespace System::Runtime::InteropServices;

and

[DllImport("dllfortranTest.dll")]<br />
 static int DllFortranTest();


But I get the exception:

An unhandled exception of type 'System.EntryPointNotFoundException' occurred in ConFortran.exe<br />
<br />
Additional information: Unable to find an entry point named 'DllFortranTest' in DLL 'dllfortranTest.dll'.




Can somebody help me about the importation way of work???

Best regards





-- modified at 7:08 Wednesday 18th October, 2006
QuestionHardware drive serial encryptor/decryptor Pin
Cyclone0217-Oct-06 2:15
Cyclone0217-Oct-06 2:15 
AnswerRe: Hardware drive serial encryptor/decryptor Pin
Christian Graus17-Oct-06 7:18
protectorChristian Graus17-Oct-06 7:18 
QuestionRTC issue Pin
Cristi B17-Oct-06 0:01
Cristi B17-Oct-06 0:01 
AnswerRe: RTC issue Pin
Christian Graus17-Oct-06 7:18
protectorChristian Graus17-Oct-06 7:18 
AnswerRe: RTC issue Pin
Cristi B17-Oct-06 20:33
Cristi B17-Oct-06 20:33 
GeneralRe: RTC issue Pin
Christian Graus17-Oct-06 22:50
protectorChristian Graus17-Oct-06 22:50 
AnswerRe: RTC issue Pin
Cristi B17-Oct-06 23:52
Cristi B17-Oct-06 23:52 
Questionconsole app: methods autocompletion (get method name from string parameter of invoker)[modified] Pin
n-j16-Oct-06 23:45
n-j16-Oct-06 23:45 
QuestionA strange problem Pin
minihotto16-Oct-06 23:41
minihotto16-Oct-06 23:41 
AnswerRe: A strange problem Pin
Christian Graus17-Oct-06 7:20
protectorChristian Graus17-Oct-06 7:20 
Questionexecuting a member function in a separate thread Pin
singersinger15-Oct-06 23:40
singersinger15-Oct-06 23:40 
AnswerRe: executing a member function in a separate thread Pin
Christian Graus17-Oct-06 7:21
protectorChristian Graus17-Oct-06 7:21 
QuestionHow to get pixel value using WinForm Pin
uusheikh15-Oct-06 21:12
uusheikh15-Oct-06 21:12 
AnswerRe: How to get pixel value using WinForm Pin
Christian Graus17-Oct-06 7:22
protectorChristian Graus17-Oct-06 7:22 
GeneralRe: How to get pixel value using WinForm Pin
uusheikh17-Oct-06 23:03
uusheikh17-Oct-06 23:03 
GeneralRe: How to get pixel value using WinForm Pin
uusheikh17-Oct-06 23:06
uusheikh17-Oct-06 23:06 
QuestionRUNGE-KUTTA ALGORITH FOR SECOND-ORDER ODE Pin
sahoong15-Oct-06 6:57
sahoong15-Oct-06 6:57 

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.