473,769 Members | 2,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it possible to translate C Call to a DLL in Visual Basic?

hello
I get a dll with standard call in C ++ but I really do not know how to use
it in VB

anyone can help???

there is the declarations in cpp to use the functions

#ifndef SFPDF_H
#define SFPDF_H

#pragma comment(lib, "SFPDF.lib" )

typedef struct _SFPDFPOS {
DWORD dwX;
DWORD dwY;
DWORD dwW;
DWORD dwH;
DWORD dNewPage;
} SFPDFPOS, *LPSFPDFPOS;

DWORD __stdcall SFPDF_AddPage() ;
DWORD __stdcall SFPDF_Cell(doub le dwX, double dwY, double dwW, double dwH,
DWORD dwL, DWORD dwR, DWORD dwT, DWORD dwB, DWORD dwFill, DWORD dwAlign,
char *szTxt);
DWORD __stdcall SFPDF_DrawColor (DWORD dwR, DWORD dwG, DWORD dwB);
DWORD __stdcall SFPDF_DrawLine( DWORD dwX1, DWORD dwY1, DWORD dwX2, DWORD
dwY2);
DWORD __stdcall SFPDF_FillColor (DWORD dwR, DWORD dwG, DWORD dwB);
DWORD __stdcall SFPDF_GetHauteu r();
DWORD __stdcall SFPDF_GetLargeu r();
DWORD __stdcall SFPDF_Image(cha r *szFile, DWORD dwX, DWORD dwY, DWORD dwW,
DWORD dwH);
void __stdcall SFPDF_Init(DWOR D dwOrientation);
DWORD __stdcall SFPDF_LineWidth (double dWidth);
DWORD __stdcall SFPDF_Output(ch ar *szFile);
DWORD __stdcall SFPDF_SetFont(c har *szPolice, DWORD dwSize);
void __stdcall SFPDF_SetFontSi ze(DWORD dwSize);
DWORD __stdcall SFPDF_Text(int dwX, int dwY, char *szTxt);
DWORD __stdcall SFPDF_TextColor (DWORD dwR, DWORD dwG, DWORD dwB);
DWORD __stdcall SFPDF_TextFlow( int dwX, int dwY, DWORD dwW, DWORD dwH, DWORD
dwAlign, char *szTxt);
void __stdcall SFPDF_SetBreakP ageCallback(DWO RD dwAddr);
double __stdcall SFPDF_GetLargeu rTexte(char *szTxt);

#endif


Jun 27 '08 #1
2 1510

"Gillard" <gi************ *@hotmail.comwr ote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
hello
I get a dll with standard call in C ++ but I really do not know how to use
it in VB

anyone can help???

there is the declarations in cpp to use the functions

#ifndef SFPDF_H
#define SFPDF_H

#pragma comment(lib, "SFPDF.lib" )

typedef struct _SFPDFPOS {
DWORD dwX;
DWORD dwY;
DWORD dwW;
DWORD dwH;
DWORD dNewPage;
} SFPDFPOS, *LPSFPDFPOS;

DWORD __stdcall SFPDF_AddPage() ;
DWORD __stdcall SFPDF_Cell(doub le dwX, double dwY, double dwW, double dwH,
DWORD dwL, DWORD dwR, DWORD dwT, DWORD dwB, DWORD dwFill, DWORD dwAlign,
char *szTxt);
DWORD __stdcall SFPDF_DrawColor (DWORD dwR, DWORD dwG, DWORD dwB);
DWORD __stdcall SFPDF_DrawLine( DWORD dwX1, DWORD dwY1, DWORD dwX2, DWORD
dwY2);
DWORD __stdcall SFPDF_FillColor (DWORD dwR, DWORD dwG, DWORD dwB);
DWORD __stdcall SFPDF_GetHauteu r();
DWORD __stdcall SFPDF_GetLargeu r();
DWORD __stdcall SFPDF_Image(cha r *szFile, DWORD dwX, DWORD dwY, DWORD dwW,
DWORD dwH);
void __stdcall SFPDF_Init(DWOR D dwOrientation);
DWORD __stdcall SFPDF_LineWidth (double dWidth);
DWORD __stdcall SFPDF_Output(ch ar *szFile);
DWORD __stdcall SFPDF_SetFont(c har *szPolice, DWORD dwSize);
void __stdcall SFPDF_SetFontSi ze(DWORD dwSize);
DWORD __stdcall SFPDF_Text(int dwX, int dwY, char *szTxt);
DWORD __stdcall SFPDF_TextColor (DWORD dwR, DWORD dwG, DWORD dwB);
DWORD __stdcall SFPDF_TextFlow( int dwX, int dwY, DWORD dwW, DWORD dwH,
DWORD dwAlign, char *szTxt);
void __stdcall SFPDF_SetBreakP ageCallback(DWO RD dwAddr);
double __stdcall SFPDF_GetLargeu rTexte(char *szTxt);

#endif

To use the DLL use the following (as generated by the MS tool P/Invoke
Interop Assistant)
The following class can be used to access the DLL. Yous will have to change
the <Unknownto your dll name so that it will use the correct DLL.

Hope it helps and the tool can be found at MS if you have further items to
use.

LS

Partial Public Class NativeConstants

'''SFPDF_H ->
'''Error generating expression: Value cannot be null.
'''Parameter name: node
Public Const SFPDF_H As String = ""
End Class

<System.Runtime .InteropService s.StructLayoutA ttribute(System .Runtime.Intero pServices.Layou tKind.Sequentia l)>
_
Public Structure SFPDFPOS

'''DWORD->unsigned int
Public dwX As UInteger

'''DWORD->unsigned int
Public dwY As UInteger

'''DWORD->unsigned int
Public dwW As UInteger

'''DWORD->unsigned int
Public dwH As UInteger

'''DWORD->unsigned int
Public dNewPage As UInteger
End Structure

Partial Public Class NativeMethods

'''Return Type: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_AddPage",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_AddPage() As UInteger
End Function

'''Return Type: DWORD->unsigned int
'''dwX: double
'''dwY: double
'''dwW: double
'''dwH: double
'''dwL: DWORD->unsigned int
'''dwR: DWORD->unsigned int
'''dwT: DWORD->unsigned int
'''dwB: DWORD->unsigned int
'''dwFill: DWORD->unsigned int
'''dwAlign: DWORD->unsigned int
'''szTxt: char*
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_Cell",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_Cell(ByVa l dwX As Double, ByVal dwY As
Double, ByVal dwW As Double, ByVal dwH As Double, ByVal dwL As UInteger,
ByVal dwR As UInteger, ByVal dwT As UInteger, ByVal dwB As UInteger, ByVal
dwFill As UInteger, ByVal dwAlign As UInteger, ByVal szTxt As System.IntPtr)
As UInteger
End Function

'''Return Type: DWORD->unsigned int
'''dwR: DWORD->unsigned int
'''dwG: DWORD->unsigned int
'''dwB: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_DrawColor",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_DrawColor (ByVal dwR As UInteger, ByVal dwG
As UInteger, ByVal dwB As UInteger) As UInteger
End Function

'''Return Type: DWORD->unsigned int
'''dwX1: DWORD->unsigned int
'''dwY1: DWORD->unsigned int
'''dwX2: DWORD->unsigned int
'''dwY2: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_DrawLine",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_DrawLine( ByVal dwX1 As UInteger, ByVal dwY1
As UInteger, ByVal dwX2 As UInteger, ByVal dwY2 As UInteger) As UInteger
End Function

'''Return Type: DWORD->unsigned int
'''dwR: DWORD->unsigned int
'''dwG: DWORD->unsigned int
'''dwB: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_FillColor",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_FillColor (ByVal dwR As UInteger, ByVal dwG
As UInteger, ByVal dwB As UInteger) As UInteger
End Function

'''Return Type: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_GetHauteur" ,
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_GetHauteu r() As UInteger
End Function

'''Return Type: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_GetLargeur" ,
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_GetLargeu r() As UInteger
End Function

'''Return Type: DWORD->unsigned int
'''szFile: char*
'''dwX: DWORD->unsigned int
'''dwY: DWORD->unsigned int
'''dwW: DWORD->unsigned int
'''dwH: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_Image",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_Image(ByV al szFile As System.IntPtr, ByVal
dwX As UInteger, ByVal dwY As UInteger, ByVal dwW As UInteger, ByVal dwH As
UInteger) As UInteger
End Function

'''Return Type: void
'''dwOrientatio n: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_Init",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Sub SFPDF_Init(ByVa l dwOrientation As UInteger)
End Sub

'''Return Type: DWORD->unsigned int
'''dWidth: double
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_LineWidth",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_LineWidth (ByVal dWidth As Double) As
UInteger
End Function

'''Return Type: DWORD->unsigned int
'''szFile: char*
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_Output",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_Output(By Val szFile As System.IntPtr) As
UInteger
End Function

'''Return Type: DWORD->unsigned int
'''szPolice: char*
'''dwSize: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_SetFont",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_SetFont(B yVal szPolice As System.IntPtr,
ByVal dwSize As UInteger) As UInteger
End Function

'''Return Type: void
'''dwSize: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_SetFontSize ",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Sub SFPDF_SetFontSi ze(ByVal dwSize As UInteger)
End Sub

'''Return Type: DWORD->unsigned int
'''dwX: int
'''dwY: int
'''szTxt: char*
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_Text",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_Text(ByVa l dwX As Integer, ByVal dwY As
Integer, ByVal szTxt As System.IntPtr) As UInteger
End Function

'''Return Type: DWORD->unsigned int
'''dwR: DWORD->unsigned int
'''dwG: DWORD->unsigned int
'''dwB: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_TextColor",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_TextColor (ByVal dwR As UInteger, ByVal dwG
As UInteger, ByVal dwB As UInteger) As UInteger
End Function

'''Return Type: DWORD->unsigned int
'''dwX: int
'''dwY: int
'''dwW: DWORD->unsigned int
'''dwH: DWORD->unsigned int
'''dwAlign: DWORD->unsigned int
'''szTxt: char*
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_TextFlow",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_TextFlow( ByVal dwX As Integer, ByVal dwY As
Integer, ByVal dwW As UInteger, ByVal dwH As UInteger, ByVal dwAlign As
UInteger, ByVal szTxt As System.IntPtr) As UInteger
End Function

'''Return Type: void
'''dwAddr: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_SetBreakPag eCallback",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Sub SFPDF_SetBreakP ageCallback(ByV al dwAddr As UInteger)
End Sub

'''Return Type: double
'''szTxt: char*
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_GetLargeurT exte",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_GetLargeu rTexte(ByVal szTxt As
System.IntPtr) As Double
End Function
End Class

Jun 27 '08 #2
thank you but I am not shure I can use it

"Lloyd Sheen" <a@b.cwrote in message
news:Or******** ******@TK2MSFTN GP05.phx.gbl...
>
"Gillard" <gi************ *@hotmail.comwr ote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>hello
I get a dll with standard call in C ++ but I really do not know how to
use it in VB

anyone can help???

there is the declarations in cpp to use the functions

#ifndef SFPDF_H
#define SFPDF_H

#pragma comment(lib, "SFPDF.lib" )

typedef struct _SFPDFPOS {
DWORD dwX;
DWORD dwY;
DWORD dwW;
DWORD dwH;
DWORD dNewPage;
} SFPDFPOS, *LPSFPDFPOS;

DWORD __stdcall SFPDF_AddPage() ;
DWORD __stdcall SFPDF_Cell(doub le dwX, double dwY, double dwW, double
dwH, DWORD dwL, DWORD dwR, DWORD dwT, DWORD dwB, DWORD dwFill, DWORD
dwAlign, char *szTxt);
DWORD __stdcall SFPDF_DrawColor (DWORD dwR, DWORD dwG, DWORD dwB);
DWORD __stdcall SFPDF_DrawLine( DWORD dwX1, DWORD dwY1, DWORD dwX2, DWORD
dwY2);
DWORD __stdcall SFPDF_FillColor (DWORD dwR, DWORD dwG, DWORD dwB);
DWORD __stdcall SFPDF_GetHauteu r();
DWORD __stdcall SFPDF_GetLargeu r();
DWORD __stdcall SFPDF_Image(cha r *szFile, DWORD dwX, DWORD dwY, DWORD
dwW, DWORD dwH);
void __stdcall SFPDF_Init(DWOR D dwOrientation);
DWORD __stdcall SFPDF_LineWidth (double dWidth);
DWORD __stdcall SFPDF_Output(ch ar *szFile);
DWORD __stdcall SFPDF_SetFont(c har *szPolice, DWORD dwSize);
void __stdcall SFPDF_SetFontSi ze(DWORD dwSize);
DWORD __stdcall SFPDF_Text(int dwX, int dwY, char *szTxt);
DWORD __stdcall SFPDF_TextColor (DWORD dwR, DWORD dwG, DWORD dwB);
DWORD __stdcall SFPDF_TextFlow( int dwX, int dwY, DWORD dwW, DWORD dwH,
DWORD dwAlign, char *szTxt);
void __stdcall SFPDF_SetBreakP ageCallback(DWO RD dwAddr);
double __stdcall SFPDF_GetLargeu rTexte(char *szTxt);

#endif


To use the DLL use the following (as generated by the MS tool P/Invoke
Interop Assistant)
The following class can be used to access the DLL. Yous will have to
change the <Unknownto your dll name so that it will use the correct DLL.

Hope it helps and the tool can be found at MS if you have further items to
use.

LS

Partial Public Class NativeConstants

'''SFPDF_H ->
'''Error generating expression: Value cannot be null.
'''Parameter name: node
Public Const SFPDF_H As String = ""
End Class

<System.Runtime .InteropService s.StructLayoutA ttribute(System .Runtime.Intero pServices.Layou tKind.Sequentia l)>
_
Public Structure SFPDFPOS

'''DWORD->unsigned int
Public dwX As UInteger

'''DWORD->unsigned int
Public dwY As UInteger

'''DWORD->unsigned int
Public dwW As UInteger

'''DWORD->unsigned int
Public dwH As UInteger

'''DWORD->unsigned int
Public dNewPage As UInteger
End Structure

Partial Public Class NativeMethods

'''Return Type: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_AddPage",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_AddPage() As UInteger
End Function

'''Return Type: DWORD->unsigned int
'''dwX: double
'''dwY: double
'''dwW: double
'''dwH: double
'''dwL: DWORD->unsigned int
'''dwR: DWORD->unsigned int
'''dwT: DWORD->unsigned int
'''dwB: DWORD->unsigned int
'''dwFill: DWORD->unsigned int
'''dwAlign: DWORD->unsigned int
'''szTxt: char*
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_Cell",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_Cell(ByVa l dwX As Double, ByVal dwY As
Double, ByVal dwW As Double, ByVal dwH As Double, ByVal dwL As UInteger,
ByVal dwR As UInteger, ByVal dwT As UInteger, ByVal dwB As UInteger, ByVal
dwFill As UInteger, ByVal dwAlign As UInteger, ByVal szTxt As
System.IntPtr) As UInteger
End Function

'''Return Type: DWORD->unsigned int
'''dwR: DWORD->unsigned int
'''dwG: DWORD->unsigned int
'''dwB: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_DrawColor",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_DrawColor (ByVal dwR As UInteger, ByVal dwG
As UInteger, ByVal dwB As UInteger) As UInteger
End Function

'''Return Type: DWORD->unsigned int
'''dwX1: DWORD->unsigned int
'''dwY1: DWORD->unsigned int
'''dwX2: DWORD->unsigned int
'''dwY2: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_DrawLine",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_DrawLine( ByVal dwX1 As UInteger, ByVal
dwY1 As UInteger, ByVal dwX2 As UInteger, ByVal dwY2 As UInteger) As
UInteger
End Function

'''Return Type: DWORD->unsigned int
'''dwR: DWORD->unsigned int
'''dwG: DWORD->unsigned int
'''dwB: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_FillColor",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_FillColor (ByVal dwR As UInteger, ByVal dwG
As UInteger, ByVal dwB As UInteger) As UInteger
End Function

'''Return Type: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_GetHauteur" ,
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_GetHauteu r() As UInteger
End Function

'''Return Type: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_GetLargeur" ,
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_GetLargeu r() As UInteger
End Function

'''Return Type: DWORD->unsigned int
'''szFile: char*
'''dwX: DWORD->unsigned int
'''dwY: DWORD->unsigned int
'''dwW: DWORD->unsigned int
'''dwH: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_Image",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_Image(ByV al szFile As System.IntPtr, ByVal
dwX As UInteger, ByVal dwY As UInteger, ByVal dwW As UInteger, ByVal dwH
As UInteger) As UInteger
End Function

'''Return Type: void
'''dwOrientatio n: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_Init",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Sub SFPDF_Init(ByVa l dwOrientation As UInteger)
End Sub

'''Return Type: DWORD->unsigned int
'''dWidth: double
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_LineWidth",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_LineWidth (ByVal dWidth As Double) As
UInteger
End Function

'''Return Type: DWORD->unsigned int
'''szFile: char*
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_Output",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_Output(By Val szFile As System.IntPtr) As
UInteger
End Function

'''Return Type: DWORD->unsigned int
'''szPolice: char*
'''dwSize: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_SetFont",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_SetFont(B yVal szPolice As System.IntPtr,
ByVal dwSize As UInteger) As UInteger
End Function

'''Return Type: void
'''dwSize: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_SetFontSize ",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Sub SFPDF_SetFontSi ze(ByVal dwSize As UInteger)
End Sub

'''Return Type: DWORD->unsigned int
'''dwX: int
'''dwY: int
'''szTxt: char*
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_Text",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_Text(ByVa l dwX As Integer, ByVal dwY As
Integer, ByVal szTxt As System.IntPtr) As UInteger
End Function

'''Return Type: DWORD->unsigned int
'''dwR: DWORD->unsigned int
'''dwG: DWORD->unsigned int
'''dwB: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_TextColor",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_TextColor (ByVal dwR As UInteger, ByVal dwG
As UInteger, ByVal dwB As UInteger) As UInteger
End Function

'''Return Type: DWORD->unsigned int
'''dwX: int
'''dwY: int
'''dwW: DWORD->unsigned int
'''dwH: DWORD->unsigned int
'''dwAlign: DWORD->unsigned int
'''szTxt: char*
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_TextFlow",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_TextFlow( ByVal dwX As Integer, ByVal dwY
As Integer, ByVal dwW As UInteger, ByVal dwH As UInteger, ByVal dwAlign As
UInteger, ByVal szTxt As System.IntPtr) As UInteger
End Function

'''Return Type: void
'''dwAddr: DWORD->unsigned int
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_SetBreakPag eCallback",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Sub SFPDF_SetBreakP ageCallback(ByV al dwAddr As UInteger)
End Sub

'''Return Type: double
'''szTxt: char*
<System.Runtime .InteropService s.DllImportAttr ibute("<Unknown >",
EntryPoint:="SF PDF_GetLargeurT exte",
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.StdCall )>
_
Public Shared Function SFPDF_GetLargeu rTexte(ByVal szTxt As
System.IntPtr) As Double
End Function
End Class
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2198
by: Nick Gilbert | last post by:
Hi I have a number of pages where it is valid for the user to enter HTML. On these pages, I have turned off RequestValidation ("ValidateRequest = false" in the page directive) so that the HttpRequestValidationException that gets thrown if HTML is included in the Form, doesn't get thrown. This is fine. However, on some of those pages, there are fields where I don't want
6
1684
by: VBTricks.de.vu Webmaster | last post by:
Hello, in VB6 I used to translate my application by setting the tag-property of all controls, menu-entries... to a number which has been linked to a string (array). Then I went through all controls or a form, checked the tag-property and changed the caption-property to the lokalized string. This was working for me fine. Therefore I wanted to use the same implementation in VB.net. Unfortunately I found out, that menuitems and some other...
1
1231
by: jongjong | last post by:
elow...i am a new in visual basic programming can you help me in opening a text files that contain a certain langauage and translate it to another langauge when it is open in visual basic in the textbox or can you give me a code in opening a text file.. tnx....very much.
1
2074
by: Ronm | last post by:
Hey Guys, I have a problem which has been driving me crazy for the last days. I'm working on a small project involving: Visual Basic Acces Database ASP and adobe/macromedia Flash,
0
10223
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10000
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9866
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8879
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3968
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.