Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Did anyone create FLL with VS2005?
Message
From
07/07/2006 10:36:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/07/2006 10:32:08
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01134216
Message ID:
01134445
Views:
16
>Hello Cetin,
>
>one cannot compile a mixed managed/unmanaged dll which calls into _fastcall methods - _fastcall is incompatible with the /CLR switch.
>
>And since all LCK functions and all selfwritten functions are declared with the fastcall calling convention, managed FLL's aren't possible.
>
>If you just want to pass a few parameters down to a C# class without using COM interop you can write a standard C DLL.
>
>...
>void _stdcall YourFunc(int someParam, char* someParam2)
>{
>// call C# code ..
>}
>
>yourproject.def file:
>LIBRARY your.dll
>EXPORTS
>YourFunc
>
>then use DECLARE in VFP.
>
>Regards
>Christian

Christian,
That's what I ended up with too:( It doesn't actually work for my needs and after test codes decided to drop the idea alltogether.
Thanks for confirming the other way was impossible.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform