Click here to Skip to main content
15,914,221 members
Home / Discussions / C#
   

C#

 
AnswerRe: dynamically add a flash object to a C# desktop application Pin
led mike26-Feb-09 4:34
led mike26-Feb-09 4:34 
GeneralRe: dynamically add a flash object to a C# desktop application Pin
Zap-Man26-Feb-09 5:05
Zap-Man26-Feb-09 5:05 
GeneralRe: dynamically add a flash object to a C# desktop application Pin
EliottA26-Feb-09 5:42
EliottA26-Feb-09 5:42 
GeneralRe: dynamically add a flash object to a C# desktop application Pin
led mike26-Feb-09 7:11
led mike26-Feb-09 7:11 
GeneralRe: dynamically add a flash object to a C# desktop application Pin
led mike26-Feb-09 5:48
led mike26-Feb-09 5:48 
Questioncreate user and role + sql server for existing database programatically Pin
vineesh v26-Feb-09 3:19
vineesh v26-Feb-09 3:19 
AnswerRe: create user and role + sql server for existing database programatically Pin
Jimmanuel26-Feb-09 4:04
Jimmanuel26-Feb-09 4:04 
QuestionDll Import Pin
Alessio Granzotto26-Feb-09 3:13
Alessio Granzotto26-Feb-09 3:13 
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: Dll Import Pin
Luc Pattyn26-Feb-09 9:18
sitebuilderLuc Pattyn26-Feb-09 9:18 
GeneralRe: Dll Import Pin
Alessio Granzotto27-Feb-09 0:42
Alessio Granzotto27-Feb-09 0:42 
AnswerRe: Dll Import Pin
Luc Pattyn27-Feb-09 1:36
sitebuilderLuc Pattyn27-Feb-09 1:36 
QuestionTableLayoutPanel cell removal problem after shuffling it's controls Pin
Muammar©26-Feb-09 2:24
Muammar©26-Feb-09 2:24 
AnswerRe: TableLayoutPanel cell removal problem after shuffling it's controls Pin
Muammar©26-Feb-09 8:46
Muammar©26-Feb-09 8:46 
QuestionForms / Controls flicker during generation. Pin
MatthysDT26-Feb-09 2:23
MatthysDT26-Feb-09 2:23 
AnswerRe: Forms / Controls flicker during generation. Pin
#realJSOP26-Feb-09 3:00
professional#realJSOP26-Feb-09 3:00 
QuestionReccomended books on SQL server 2008 Pin
Mohsen Saad26-Feb-09 1:57
Mohsen Saad26-Feb-09 1:57 
AnswerRe: Reccomended books on SQL server 2008 Pin
Calin Tatar26-Feb-09 2:10
Calin Tatar26-Feb-09 2:10 
Questionprocess extension Pin
shefa' isied26-Feb-09 1:39
shefa' isied26-Feb-09 1:39 
AnswerRe: process extension Pin
EliottA26-Feb-09 2:07
EliottA26-Feb-09 2:07 
GeneralRe: process extension Pin
Calin Tatar26-Feb-09 2:33
Calin Tatar26-Feb-09 2:33 
QuestionHow to split a datatable?? Pin
Member 455443326-Feb-09 1:24
Member 455443326-Feb-09 1:24 
AnswerRe: How to split a datatable?? Pin
moon_stick26-Feb-09 2:54
moon_stick26-Feb-09 2:54 
QuestionTransform Excel to PDF Pin
abbd26-Feb-09 0:30
abbd26-Feb-09 0:30 
AnswerRe: Transform Excel to PDF Pin
Shyam K Pananghat26-Feb-09 0:34
Shyam K Pananghat26-Feb-09 0:34 
QuestionRe: Transform Excel to PDF Pin
abbd26-Feb-09 2:14
abbd26-Feb-09 2:14 

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.