Someone please tell me about the difference
int* variable
int * variable
int *variable
void* variable
void** variable
char*
short variable //(C++) in c# this type more suitable with? short type too??
i have .h, .lib and .dll file but I don't know the contents of the lib and dll file
example:
this one is from header file
#ifdef cpp_EXPORTS
#define cpp_API __declspec(dllexport)
#else
#define cpp_API __declspec(dllimport)
#endif
extern "C"
{
cpp_API char* cpp_Version(void); // What should i use better for(void) and what is the meaning char*
cpp_API int cpp_AddUser(void* User, double Acc, double Limit, int* NewId); //example for void* variable and int* variable
cpp_API int cpp_AddModifyBilling(int Act, int Level, wchar_t* BillingCo, wchar_t* Desc, int * BillingId); //example for int * variable
cpp_API int cpp_DeleteBilling(int Act, wchar_t* Code1, wchar_t* Code2, wchar_t* Code3, int Billable, int *CombId); //example for int *variable
cpp_API int cpp_GetUser(int UserId, void** UserInfo); //example for void** variable
...
}
#pragma pack(1) //and is the meaning about this one ??
Question:
1. Whether * (the symbol) that is used in other types of data that have the same meaning and what is the meaning about the position between type and variable?
2. If I want to marshalls to C# data types which data types are more suitable for the type of data that will be in marshall?
Any suggestions and answers would be very helpful
Thank you