vector.com|Contact
Search tips

apple banana
Find rows that contain at least one of the two words.

+apple +juice
Find rows that contain both words.

+apple macintosh
Find rows that contain the word 'apple', but rank rows higher if they also contain 'macintosh'.

+apple -macintosh
Find rows that contain the word 'apple' but not 'macintosh'.

+apple ~macintosh
Find rows that contain the word 'apple', but if the row also contains the word 'macintosh', rate it lower than if row does not. This is "softer" than a search for '+apple -macintosh', for which the presence of 'macintosh' causes the row not to be returned at all.

+apple +(>turnover >strudel)
Find rows that contain the words 'apple' and 'turnover', or 'apple' and 'strudel' (in any order), but rank 'apple turnover' higher than 'apple strudel'.

apple*
Find rows that contain words such as 'apple', 'apples', 'applesauce', or 'applet'.

"some words"
Find rows that contain the exact phrase 'some words' (for example, rows that contain 'some words of wisdom' but not "some noise words").

By continuing to use this site you agree to the use of cookies. For more information and to find out how to change this click here. Accept Cookies
Please enable cookies in your browser for this website.
Search:
Advanced search

Usage of C Function Instead of C#

Last updated: 2019-02-27
Question:
Is it possible to use a C function in my code instead of C#?
Answer:

To execute C code in vADASdeveloper a DLL file, which contains the C code, has to be created.  

In the DLL itself, the function is described as follows:

#ifdef MyDLL_EXPORTS
#define MyDLL_API __declspec(dllexport)
#else
#define MyDLL_API __declspec(dllimport)
#endif

//…
extern "C" MyDLL_API int Load(char* lpstrDummy, unsigned __int32 nDummy, unsigned __int32 nDummy2)

{
//...
}

After that, the C function is called, by including the DLL as follows:

[DllImport("Example.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern int Load(String strDummy, UInt32 uintDummy1, UInt32 uintDummy2);

 
Article Options
2019-02-27
Views: 839
Rate this article: