Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
QuestionTransaction Rollback timeout Pin
Mark DeVol29-Nov-05 12:51
Mark DeVol29-Nov-05 12:51 
AnswerRe: Transaction Rollback timeout Pin
rakesh_nits29-Nov-05 23:55
rakesh_nits29-Nov-05 23:55 
QuestionOverriding the Label.CanSelect property Pin
AnneThorne29-Nov-05 12:39
AnneThorne29-Nov-05 12:39 
AnswerRe: Overriding the Label.CanSelect property Pin
Dave Kreskowiak30-Nov-05 5:56
mveDave Kreskowiak30-Nov-05 5:56 
GeneralRe: Overriding the Label.CanSelect property Pin
AnneThorne30-Nov-05 6:02
AnneThorne30-Nov-05 6:02 
GeneralRe: Overriding the Label.CanSelect property Pin
Dave Kreskowiak30-Nov-05 11:00
mveDave Kreskowiak30-Nov-05 11:00 
GeneralRe: Overriding the Label.CanSelect property Pin
AnneThorne30-Nov-05 11:07
AnneThorne30-Nov-05 11:07 
Questioncalling win32 dll in C# Pin
Manu_8129-Nov-05 11:51
Manu_8129-Nov-05 11:51 
hi,
I am trying to call a dll fn that takes pointer to array as argument form my c# app.
I am doing the following way but its not working.
<br />
// dll function<br />
DISABLETOUCHSCREENDLL_API int fnDisableTouchScreenS(int *iscrn,int *iEnableDisable)<br />
{}<br />
<br />
//c# app<br />
[MarshalAs(UnmanagedType.LPArray)]<br />
private int[]	iscrno = new int[MAX_SUPPORTED_SCR];<br />
[MarshalAs(UnmanagedType.LPArray)]<br />
private int[]	iEnableDisable = new int[MAX_SUPPORTED_SCR];<br />
<br />
[DllImport( "DisableTouchScreenDLL.dll", CharSet = CharSet.Unicode )]<br />
public static extern int fnDisableTouchScreenS(ref int[] iscrno, ref int[] iEnableDisable);<br />
<br />
//function call<br />
int[] s_nos = new int[MAX_SUPPORTED_SCR];<br />
int[] t_fs = new int[MAX_SUPPORTED_SCR];<br />
			<br />
for(i=0;i<iScreens;i++)<br />
{<br />
	s_nos[i] = i;<br />
	t_fs[i] = 1;<br />
}<br />
iscrno = s_nos;<br />
iEnableDisable = t_fs;<br />
<br />
if(fnDisableTouchScreenS( ref iscrno, ref iEnableDisable)==0)<br />
{<br />
	System.Console.Write("Success");<br />
}<br />
<br />

The function is returning success, but not doing what is expected.
But I know the dll is working fine...but am I using it right??
AnswerRe: calling win32 dll in C# Pin
Mark DeVol29-Nov-05 12:46
Mark DeVol29-Nov-05 12:46 
GeneralRe: calling win32 dll in C# Pin
mikanu29-Nov-05 20:06
mikanu29-Nov-05 20:06 
QuestionQLMySQL Concurrency Violation Pin
Elvis_Pretzelator29-Nov-05 11:50
Elvis_Pretzelator29-Nov-05 11:50 
QuestionHow can i do a mouseover event for an asp object? Pin
Anthony Mushrow29-Nov-05 11:41
professionalAnthony Mushrow29-Nov-05 11:41 
AnswerRe: How can i do a mouseover event for an asp object? Pin
Dave Kreskowiak30-Nov-05 5:43
mveDave Kreskowiak30-Nov-05 5:43 
Questiondisposal of a homemade object Pin
melanieab29-Nov-05 10:35
melanieab29-Nov-05 10:35 
AnswerRe: disposal of a homemade object Pin
Dan Neely29-Nov-05 10:38
Dan Neely29-Nov-05 10:38 
GeneralRe: disposal of a homemade object Pin
melanieab29-Nov-05 11:14
melanieab29-Nov-05 11:14 
GeneralRe: disposal of a homemade object Pin
Dan Neely30-Nov-05 2:05
Dan Neely30-Nov-05 2:05 
Questionnetwork problem please help!!! Pin
snouto29-Nov-05 10:14
snouto29-Nov-05 10:14 
AnswerRe: network problem please help!!! Pin
mcljava29-Nov-05 12:33
mcljava29-Nov-05 12:33 
GeneralRe: network problem please help!!! Pin
snouto29-Nov-05 23:06
snouto29-Nov-05 23:06 
QuestionBack Button ASP.NET Pin
TheMajorRager29-Nov-05 10:02
TheMajorRager29-Nov-05 10:02 
QuestionCrystal Report setup problem Pin
sasan5629-Nov-05 9:56
sasan5629-Nov-05 9:56 
QuestionCreating a window form Pin
Yevgeny Efter29-Nov-05 8:45
Yevgeny Efter29-Nov-05 8:45 
AnswerRe: Creating a window form Pin
enjoycrack29-Nov-05 9:08
enjoycrack29-Nov-05 9:08 
GeneralRe: Creating a window form Pin
Yevgeny Efter29-Nov-05 9:25
Yevgeny Efter29-Nov-05 9:25 

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.