Click here to Skip to main content
15,794,629 members
Home / Discussions / C#
   

C#

 
GeneralRe: dynamically add a flash object to a C# desktop application Pin
EliottA26-Feb-09 6:42
EliottA26-Feb-09 6:42 
GeneralRe: dynamically add a flash object to a C# desktop application Pin
led mike26-Feb-09 8:11
led mike26-Feb-09 8:11 
GeneralRe: dynamically add a flash object to a C# desktop application Pin
led mike26-Feb-09 6:48
led mike26-Feb-09 6:48 
Questioncreate user and role + sql server for existing database programatically Pin
vineesh v26-Feb-09 4:19
vineesh v26-Feb-09 4:19 
AnswerRe: create user and role + sql server for existing database programatically Pin
Jimmanuel26-Feb-09 5:04
Jimmanuel26-Feb-09 5:04 
QuestionDll Import Pin
Alessio Granzotto26-Feb-09 4:13
Alessio Granzotto26-Feb-09 4:13 
AnswerRe: Dll Import Pin
Luc Pattyn26-Feb-09 10:18
sitebuilderLuc Pattyn26-Feb-09 10:18 
GeneralRe: Dll Import Pin
Alessio Granzotto27-Feb-09 1:42
Alessio Granzotto27-Feb-09 1:42 
Hi Luc,
you are very kind.
I think that the problem is not in the string, in another case the StringBuilder work fine. The problem is in the Ptr.
hImage comes from:
[DllImport("justicr.dll")]
public static extern long JIImageFileOpen(out IntPtr hImageFile, [MarshalAs(UnmanagedType.LPStr)] StringBuilder szFileName, long bWrite);
[DllImport("justicr.dll")]
public static extern long JIImageFileRead(IntPtr hImageFile, out IntPtr hImage);


rc = (int)JIImageFileOpen(out hImageFile, fullname, 0);
rc = (int)JIImageFileRead(hImageFile, out hImage);
rc = (int)JIImageGetInfo(hImage, out IWidth, out IHeight, out IResolution, out IBytesPerLine, fileName, out iPage);

and it works because JIImageGetInfo works.

and hTemplateList from:
[DllImport("justicr.dll")]
public static extern long JITemplateListCreate(out IntPtr hTemplateList);
[DllImport("justicr.dll")]
public static extern long JITemplateListLoad(IntPtr hTemplateList, [MarshalAs(UnmanagedType.LPStr)] StringBuilder szTemplates);

rc = (int)JITemplateListCreate(out hTemplateList);
rc = (int)JITemplateListLoad(hTemplateList, listaCompleta);

which is for you the problem in JIMatchPage???
ty very much
AnswerRe: Dll Import Pin
Luc Pattyn27-Feb-09 2:36
sitebuilderLuc Pattyn27-Feb-09 2:36 
QuestionTableLayoutPanel cell removal problem after shuffling it's controls Pin
Muammar©26-Feb-09 3:24
Muammar©26-Feb-09 3:24 
AnswerRe: TableLayoutPanel cell removal problem after shuffling it's controls Pin
Muammar©26-Feb-09 9:46
Muammar©26-Feb-09 9:46 
QuestionForms / Controls flicker during generation. Pin
MatthysDT26-Feb-09 3:23
MatthysDT26-Feb-09 3:23 
AnswerRe: Forms / Controls flicker during generation. Pin
#realJSOP26-Feb-09 4:00
mve#realJSOP26-Feb-09 4:00 
QuestionReccomended books on SQL server 2008 Pin
Mohsen Saad26-Feb-09 2:57
Mohsen Saad26-Feb-09 2:57 
AnswerRe: Reccomended books on SQL server 2008 Pin
Calin Tatar26-Feb-09 3:10
Calin Tatar26-Feb-09 3:10 
Questionprocess extension Pin
shefa' isied26-Feb-09 2:39
shefa' isied26-Feb-09 2:39 
AnswerRe: process extension Pin
EliottA26-Feb-09 3:07
EliottA26-Feb-09 3:07 
GeneralRe: process extension Pin
Calin Tatar26-Feb-09 3:33
Calin Tatar26-Feb-09 3:33 
QuestionHow to split a datatable?? Pin
Member 455443326-Feb-09 2:24
Member 455443326-Feb-09 2:24 
AnswerRe: How to split a datatable?? Pin
moon_stick26-Feb-09 3:54
moon_stick26-Feb-09 3:54 
QuestionTransform Excel to PDF Pin
abbd26-Feb-09 1:30
abbd26-Feb-09 1:30 
AnswerRe: Transform Excel to PDF Pin
Shyam K Pananghat26-Feb-09 1:34
Shyam K Pananghat26-Feb-09 1:34 
QuestionRe: Transform Excel to PDF Pin
abbd26-Feb-09 3:14
abbd26-Feb-09 3:14 
QuestionRe: Transform Excel to PDF Pin
abbd26-Feb-09 3:32
abbd26-Feb-09 3:32 
AnswerRe: Transform Excel to PDF Pin
Mirko198026-Feb-09 3:42
Mirko198026-Feb-09 3:42 

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.