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

Managed C++/CLI

 
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 
GeneralRe: Including .dll in /clr:pure project [VC++ '05] Pin
Milton Karimbekallil3-Apr-06 13:53
Milton Karimbekallil3-Apr-06 13:53 
1. With /clr:pure I cannot use that native class?

Yes, You can use native class in a /clr:pure c++/cli project.

2. Any idea what the error could mean (and/or perhaps an alternate declaration for the function in the .dll?)

Note the warning you got: "warning C4272: 'extiteratie' : is marked __declspec(dllimport); must specify native calling convention when importing a function."

Your function declaration was:
extern "C" void __declspec(dllimport) extiteratie( [arguments] ): Here you havn't mentioned any calling convention. So compiler took the clr only calling convention __clrcall. Now see the error message you got - "error LNK2031: unable to generate p/invoke for "extern "C" void __clrcall extiteratie( float*, float*, (...) float* )" (?extiteratie@@$$J0YMXPAM000000000000000PAH110@Z); calling convention missing in metadata"

This means that C++/CLI compiler is not able to generate the p/invoke for a function which is reserverd for CLI only (because of the by default __clrcall calling convention).

So to fix this, change the function declaration as below:

extern "C" void __stdcall __declspec(dllimport) extiteratie( [arguments] )

Here if the calling convention of extiteratie is soemthing else other than __stdcall , then put the same instaed.

3. what does #import do?)

You dont have to worry abt #import as ur dll is not a com dll. It is for using com components.

Hope this will help...mil10.
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 "new" 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 
AnswerRe: Very strange error Pin
John L. DeVito30-Mar-06 23:11
professionalJohn L. DeVito30-Mar-06 23:11 

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.