Click here to Skip to main content
15,889,034 members
Home / Discussions / C#
   

C#

 
GeneralRe: Quick quest Pin
musefan30-Jun-09 5:14
musefan30-Jun-09 5:14 
QuestionFilter GridView using a dropdown list but only after page populates with appropriate data from Query String Pin
mjc22530-Jun-09 4:23
mjc22530-Jun-09 4:23 
Questioncomplete removing of a C# COM component Pin
manustone30-Jun-09 3:24
manustone30-Jun-09 3:24 
QuestionCombobox and listbox control Pin
Hum Dum30-Jun-09 3:08
Hum Dum30-Jun-09 3:08 
AnswerRe: Combobox and listbox control Pin
musefan30-Jun-09 3:19
musefan30-Jun-09 3:19 
GeneralRe: Combobox and listbox control Pin
Hum Dum1-Jul-09 0:04
Hum Dum1-Jul-09 0:04 
GeneralRe: Combobox and listbox control Pin
musefan1-Jul-09 1:18
musefan1-Jul-09 1:18 
QuestionCalling a C function from C# and getting values from it. Pin
shivapriyak30-Jun-09 2:42
shivapriyak30-Jun-09 2:42 
I have a C function of format:
func1(double param[], int size);

This function is called from C# code the following syntax:
[DllImport("first.dll", EntryPoint = "func1", CallingConvention = CallingConvention.StdCall)]
public static extern int func1(ref double param[], int size);

The function 'func1' takes two parameters: the array in which values should be filled up from C dll and 'size' which tells the number of values to fill in the array.
Now if the param[] array is declared as param[] = new double[5]; and the 'size' parameter is given as 10, still the function passes.
Wherase the same scenario in direct C application, gives error saying "Array size(i.e. 5) is lesser than the number of values to fill(i.e. 10)".

I am not able to reproduce the same behavior in .Net. Can anybody help me with it?
AnswerRe: Calling a C function from C# and getting values from it. [modified] Pin
DaveyM6930-Jun-09 3:26
professionalDaveyM6930-Jun-09 3:26 
GeneralRe: Calling a C function from C# and getting values from it. Pin
shivapriyak30-Jun-09 3:34
shivapriyak30-Jun-09 3:34 
GeneralRe: Calling a C function from C# and getting values from it. Pin
DaveyM6930-Jun-09 3:39
professionalDaveyM6930-Jun-09 3:39 
GeneralRe: Calling a C function from C# and getting values from it. Pin
Luc Pattyn30-Jun-09 4:03
sitebuilderLuc Pattyn30-Jun-09 4:03 
AnswerRe: Calling a C function from C# and getting values from it. Pin
Luc Pattyn30-Jun-09 4:09
sitebuilderLuc Pattyn30-Jun-09 4:09 
GeneralRe: Calling a C function from C# and getting values from it. Pin
shivapriyak30-Jun-09 20:03
shivapriyak30-Jun-09 20:03 
GeneralRe: Calling a C function from C# and getting values from it. Pin
Luc Pattyn30-Jun-09 22:57
sitebuilderLuc Pattyn30-Jun-09 22:57 
QuestionSQLite in C# Pin
stancrm30-Jun-09 2:35
stancrm30-Jun-09 2:35 
AnswerRe: SQLite in C# Pin
Pete O'Hanlon30-Jun-09 2:39
mvePete O'Hanlon30-Jun-09 2:39 
AnswerRe: SQLite in C# Pin
SeMartens30-Jun-09 2:41
SeMartens30-Jun-09 2:41 
QuestionHow to Upload large size file to server Pin
wasimsharp30-Jun-09 2:21
wasimsharp30-Jun-09 2:21 
AnswerRe: How to Upload large size file to server Pin
Vimalsoft(Pty) Ltd30-Jun-09 2:28
professionalVimalsoft(Pty) Ltd30-Jun-09 2:28 
GeneralRe: How to Upload large size file to server Pin
wasimsharp30-Jun-09 2:33
wasimsharp30-Jun-09 2:33 
GeneralRe: How to Upload large size file to server Pin
Vimalsoft(Pty) Ltd30-Jun-09 2:37
professionalVimalsoft(Pty) Ltd30-Jun-09 2:37 
GeneralRe: How to Upload large size file to server Pin
musefan30-Jun-09 2:40
musefan30-Jun-09 2:40 
GeneralRe: How to Upload large size file to server Pin
Vimalsoft(Pty) Ltd30-Jun-09 2:42
professionalVimalsoft(Pty) Ltd30-Jun-09 2:42 
GeneralRe: How to Upload large size file to server Pin
musefan30-Jun-09 2:43
musefan30-Jun-09 2:43 

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.