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

Managed C++/CLI

 
AnswerRe: I got some parameter problems Pin
toxcct4-Apr-06 2:31
toxcct4-Apr-06 2:31 
GeneralRe: I got some parameter problems Pin
GDavy4-Apr-06 3:22
GDavy4-Apr-06 3:22 
Questionis there any function similar to sprintf in C++.Net? Pin
Kranti12519844-Apr-06 1:08
Kranti12519844-Apr-06 1:08 
AnswerRe: is there any function similar to sprintf in C++.Net? Pin
2bee 4-Apr-06 1:22
2bee 4-Apr-06 1:22 
GeneralRe: is there any function similar to sprintf in C++.Net? Pin
George L. Jackson4-Apr-06 12:35
George L. Jackson4-Apr-06 12:35 
QuestionIncluding .dll in /clr:pure project [VC++ '05] Pin
jantimmerman2-Apr-06 21:40
jantimmerman2-Apr-06 21:40 
AnswerRe: Including .dll in /clr:pure project [VC++ '05] Pin
Milton Karimbekallil3-Apr-06 1:35
Milton Karimbekallil3-Apr-06 1:35 
GeneralRe: Including .dll in /clr:pure project [VC++ '05] Pin
jantimmerman3-Apr-06 3:04
jantimmerman3-Apr-06 3:04 
Thanks for your reply:

Well that was about where I was aiming at.
I never heard of the "#import" directive before so I will have to look into that. I have not too much experience with Visual studio.

Perhaps I should explain a little more about the situation.
Currently I have a ".lib" and a ".dll" generated by Compaq Visual Fortran.
I've declared the function called from the .dll as follows:
<br />
extern "C" void __declspec(dllimport) extiteratie( [arguments] )<br />


First I get the warning:
<br />
TFortranInterface.cpp(27) : warning C4272: 'extiteratie' : is marked __declspec(dllimport); must specify native calling convention when importing a function.<br />

after that an error
<br />
 error LNK2031: unable to generate p/invoke for "extern "C" void __clrcall extiteratie( float*, float*, (...) float* )" (?extiteratie@@$$J0YMXPAM000000000000000PAH110@Z); calling convention missing in metadata<br />

(After this an unresolved token error which is most likely caused by the previous error.)

I am currently using a native class as interface because I need to pass the function in the .dll a set of pointers which will be filled with results.

The questions:
1. With /clr:pure I cannot use that native class?
2. Any idea what the error could mean (and/or perhaps an alternate declaration for the function in the .dll?)
(3. what does #import do?)

best regards,
Jan Timmerman
GeneralRe: Including .dll in /clr:pure project [VC++ '05] Pin
Milton Karimbekallil3-Apr-06 13:53
Milton Karimbekallil3-Apr-06 13:53 
GeneralRe: Including .dll in /clr:pure project [VC++ '05] Pin
jantimmerman3-Apr-06 21:27
jantimmerman3-Apr-06 21:27 
Questionmad libs Pin
jwacho52-Apr-06 11:59
jwacho52-Apr-06 11:59 
QuestionCFileDialog doesn't update when I change the file type. Pin
IlanTal1-Apr-06 19:46
IlanTal1-Apr-06 19:46 
Questionconvert System::String to char Pin
leonelsr1-Apr-06 9:21
leonelsr1-Apr-06 9:21 
AnswerRe: convert System::String to char Pin
2bee 1-Apr-06 12:00
2bee 1-Apr-06 12:00 
Questionargs in the "new" main() Pin
leonelsr31-Mar-06 11:48
leonelsr31-Mar-06 11:48 
AnswerRe: args in the &amp;quot;new&amp;quot; main() Pin
2bee 31-Mar-06 23:00
2bee 31-Mar-06 23:00 
Questionlooping through strings C++ .NET Pin
richiebaby31-Mar-06 4:05
richiebaby31-Mar-06 4:05 
AnswerRe: looping through strings C++ .NET Pin
Saksida Bojan31-Mar-06 5:34
Saksida Bojan31-Mar-06 5:34 
GeneralRe: looping through strings C++ .NET Pin
richiebaby31-Mar-06 5:51
richiebaby31-Mar-06 5:51 
GeneralRe: looping through strings C++ .NET Pin
Saksida Bojan31-Mar-06 6:51
Saksida Bojan31-Mar-06 6:51 
GeneralRe: looping through strings C++ .NET - Figured it out Pin
richiebaby31-Mar-06 6:54
richiebaby31-Mar-06 6:54 
QuestionVery strange error Pin
Joel Holdsworth30-Mar-06 11:58
Joel Holdsworth30-Mar-06 11:58 
AnswerRe: Very strange error Pin
George L. Jackson30-Mar-06 17:10
George L. Jackson30-Mar-06 17:10 
GeneralRe: Very strange error Pin
Saksida Bojan30-Mar-06 18:11
Saksida Bojan30-Mar-06 18:11 
GeneralRe: Very strange error Pin
George L. Jackson31-Mar-06 1:01
George L. Jackson31-Mar-06 1:01 

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.