Click here to Skip to main content
15,891,204 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regex Problem Pin
musefan26-Feb-09 23:53
musefan26-Feb-09 23:53 
AnswerRe: Regex Problem Pin
Luc Pattyn27-Feb-09 1:26
sitebuilderLuc Pattyn27-Feb-09 1:26 
GeneralRe: Regex Problem Pin
musefan27-Feb-09 1:44
musefan27-Feb-09 1:44 
AnswerRe: Regex Problem Pin
Luc Pattyn27-Feb-09 1:51
sitebuilderLuc Pattyn27-Feb-09 1:51 
GeneralRe: Regex Problem Pin
musefan27-Feb-09 2:06
musefan27-Feb-09 2:06 
GeneralRe: Regex Problem Pin
PIEBALDconsult27-Feb-09 4:36
mvePIEBALDconsult27-Feb-09 4:36 
QuestionBy-passing certification validation for Webservice Pin
satsumatable26-Feb-09 8:13
satsumatable26-Feb-09 8:13 
QuestionIntptr and dll Pin
Alessio Granzotto26-Feb-09 8:08
Alessio Granzotto26-Feb-09 8:08 
Hi,
I have this function in a DLL.
long MatchPage (long hImage, long hTemplateList, long *hMatch, char *szTemplate, long iMinMark, long bRegister, long *iConfidence);

Purpose
Match a filled form image to a Template from a Template List.

Parameters
hImage: Image handle of filled form
hTemplateList:Handle of the Template List.
hMatch:Handle of a Match which can be used later by JIRegionsRecognize. The handle should be free later by JIMatchFree.
szTemplate:Template file name is returned here. File name is returned without path and without file name extension.
iMinMark:Minimal confidence for a match. Legal values are 0-100. Recommended value is 15.
bRegister:If 1, the registered image is returned in hImage if matching achieved.
iConfidence:Confidence of the Match.


Import in this way:
[DllImport("image.dll")]
public static extern long MatchPage(IntPtr hImage, IntPtr hTemplateList, out IntPtr hMatch, [MarshalAs(UnmanagedType.LPStr)] StringBuilder szTemplate, long iMinMark, long bRegister, out IntPtr iConfidence);

...and call in this way:
rc = (int) MatchPage(hImage, hTemplateList, out hMatch, matchingTemplate, 25, 1, out iConfidence);

but the compiler says:"Access Violation" .
Someone can help me please?
TY
AnswerRe: Intptr and dll Pin
Curtis Schlak.26-Feb-09 8:29
Curtis Schlak.26-Feb-09 8:29 
GeneralRe: Intptr and dll Pin
Alessio Granzotto26-Feb-09 8:33
Alessio Granzotto26-Feb-09 8:33 
QuestionC# or autoit Pin
alwaysthinking26-Feb-09 7:10
alwaysthinking26-Feb-09 7:10 
AnswerRe: C# or autoit Pin
Calin Tatar26-Feb-09 7:45
Calin Tatar26-Feb-09 7:45 
GeneralRe: C# or autoit Pin
alwaysthinking26-Feb-09 7:48
alwaysthinking26-Feb-09 7:48 
GeneralRe: C# or autoit Pin
Curtis Schlak.26-Feb-09 8:32
Curtis Schlak.26-Feb-09 8:32 
QuestionHow to map DataGridView.Column.HeaderText to DataColumn.Caption property. Pin
hdv21226-Feb-09 5:52
hdv21226-Feb-09 5:52 
QuestionFlow Options opinions Pin
ffowler26-Feb-09 5:51
ffowler26-Feb-09 5:51 
AnswerRe: Flow Options opinions Pin
Ennis Ray Lynch, Jr.26-Feb-09 7:05
Ennis Ray Lynch, Jr.26-Feb-09 7:05 
GeneralRe: Flow Options opinions Pin
ffowler26-Feb-09 7:15
ffowler26-Feb-09 7:15 
GeneralRe: Flow Options opinions Pin
Ennis Ray Lynch, Jr.26-Feb-09 7:18
Ennis Ray Lynch, Jr.26-Feb-09 7:18 
GeneralRe: Flow Options opinions Pin
ffowler26-Feb-09 7:20
ffowler26-Feb-09 7:20 
QuestionCan you pass a delegate that contains params object[] parameters to another degelate as a parameter? Pin
Steve Holdorf26-Feb-09 5:48
Steve Holdorf26-Feb-09 5:48 
GeneralRe: Can you pass a delegate that contains params object[] parameters to another degelate as a parameter? Pin
Steve Holdorf26-Feb-09 6:36
Steve Holdorf26-Feb-09 6:36 
AnswerRe: Can you pass a delegate that contains params object[] parameters to another degelate as a parameter? [modified] Pin
Steve Holdorf26-Feb-09 7:57
Steve Holdorf26-Feb-09 7:57 
GeneralRe: Can you pass a delegate that contains params object[] parameters to another degelate as a parameter? Pin
Alan N26-Feb-09 9:30
Alan N26-Feb-09 9:30 
GeneralRe: Can you pass a delegate that contains params object[] parameters to another degelate as a parameter? Pin
Steve Holdorf26-Feb-09 10:11
Steve Holdorf26-Feb-09 10:11 

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.