Click here to Skip to main content
15,912,578 members
Home / Discussions / C#
   

C#

 
AnswerRe: Sharepoint Development - Where to Start? Pin
ToddHileHoffer17-Feb-09 6:26
ToddHileHoffer17-Feb-09 6:26 
GeneralRe: Sharepoint Development - Where to Start? Pin
rkajal17-Feb-09 6:40
rkajal17-Feb-09 6:40 
GeneralRe: Sharepoint Development - Where to Start? Pin
ToddHileHoffer17-Feb-09 6:58
ToddHileHoffer17-Feb-09 6:58 
GeneralRe: Sharepoint Development - Where to Start? Pin
led mike17-Feb-09 7:08
led mike17-Feb-09 7:08 
GeneralRe: Sharepoint Development - Where to Start? Pin
rkajal17-Feb-09 10:11
rkajal17-Feb-09 10:11 
GeneralRe: Sharepoint Development - Where to Start? Pin
led mike17-Feb-09 11:04
led mike17-Feb-09 11:04 
GeneralRe: Sharepoint Development - Where to Start? Pin
rkajal17-Feb-09 10:13
rkajal17-Feb-09 10:13 
QuestionDllImport Pin
Alessio Granzotto17-Feb-09 5:44
Alessio Granzotto17-Feb-09 5:44 
Hi, i have two function:
long ImageFileOpen (long *hImageFile, char *szFileName, long bWrite)
Parameters:
hImageFile
Image file handle is returned here.
szFileName
File name of the image file.
bWrite
0 = open file for reading, 1 = open file for writing.
and
long ImageFileRead(long hImageFile, long *hImage)
Parameters:
hImageFile
Image file handle that was created by previous call to ImageFileOpen.
hImage
Image handle of a new image is returned here.

i have called them in this way:
[DllImport("xxx.dll")]
unsafe public static extern long ImageFileOpen(long* hImageFile, [MarshalAs(UnmanagedType.LPStr)] StringBuilder szFileName, long bWrite);

[DllImport("xxx.dll")]
unsafe public static extern long ImageFileRead(long hImageFile, long* hImage);

and then with:
long hImageFile=0;
long hImage=0;

StringBuilder fullname = new StringBuilder(@"c:\xxx.tif");
rc = ImageFileOpen(&hImageFile, fullname, 0);
rc = ImageFileRead(hImageFile, &hImage);
...but at ImageFileRead the compiler says "System.AccessViolationException".
why? thank you very much...I need help...
Alessio
AnswerRe: DllImport Pin
Luc Pattyn17-Feb-09 6:16
sitebuilderLuc Pattyn17-Feb-09 6:16 
GeneralRe: DllImport Pin
Alessio Granzotto17-Feb-09 6:30
Alessio Granzotto17-Feb-09 6:30 
GeneralRe: DllImport Pin
Mirko198018-Feb-09 3:32
Mirko198018-Feb-09 3:32 
AnswerRe: DllImport Pin
Luc Pattyn18-Feb-09 3:45
sitebuilderLuc Pattyn18-Feb-09 3:45 
QuestionMasked Textbox Prompt Pin
Lodeclaw17-Feb-09 5:38
Lodeclaw17-Feb-09 5:38 
AnswerRe: Masked Textbox Prompt Pin
Nagy Vilmos17-Feb-09 5:58
professionalNagy Vilmos17-Feb-09 5:58 
GeneralRe: Masked Textbox Prompt Pin
Lodeclaw17-Feb-09 6:01
Lodeclaw17-Feb-09 6:01 
GeneralRe: Masked Textbox Prompt Pin
Nagy Vilmos17-Feb-09 6:14
professionalNagy Vilmos17-Feb-09 6:14 
GeneralRe: Masked Textbox Prompt Pin
Lodeclaw17-Feb-09 6:29
Lodeclaw17-Feb-09 6:29 
GeneralRe: Masked Textbox Prompt Pin
Nagy Vilmos17-Feb-09 23:19
professionalNagy Vilmos17-Feb-09 23:19 
QuestionThread.Sleep(0) action? Pin
Bruce Coward17-Feb-09 5:25
Bruce Coward17-Feb-09 5:25 
AnswerRe: Thread.Sleep(0) action? Pin
Nuri Ismail17-Feb-09 5:31
Nuri Ismail17-Feb-09 5:31 
GeneralRe: Thread.Sleep(0) action? Pin
Bruce Coward17-Feb-09 5:51
Bruce Coward17-Feb-09 5:51 
AnswerRe: Thread.Sleep(0) action? Pin
Luc Pattyn17-Feb-09 6:24
sitebuilderLuc Pattyn17-Feb-09 6:24 
GeneralRe: Thread.Sleep(0) action? Pin
PIEBALDconsult17-Feb-09 6:33
mvePIEBALDconsult17-Feb-09 6:33 
AnswerRe: Thread.Sleep(0) action? Pin
Luc Pattyn17-Feb-09 6:48
sitebuilderLuc Pattyn17-Feb-09 6:48 
GeneralRe: Thread.Sleep(0) action? Pin
PIEBALDconsult17-Feb-09 6:52
mvePIEBALDconsult17-Feb-09 6:52 

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.