hidrau
asked on
is it possible to use this dll with delphi?
Hello guys,
I need the function from this DLL that can change my string to a correct string to use the codebar 128 font.
there is a dll created for this propose and I'd like to use it in my delphi application, could you help me on this?
http://www.jtbarton.com/Barcodes/BarcodeStringBuilderExample.aspx
regards
Alexandre
I need the function from this DLL that can change my string to a correct string to use the codebar 128 font.
there is a dll created for this propose and I'd like to use it in my delphi application, could you help me on this?
http://www.jtbarton.com/Barcodes/BarcodeStringBuilderExample.aspx
regards
Alexandre
I don't see why it shouldn't work, because the source file is available. You need Visual Studio first though, because the DLL doesn't expose the functions. Using https://www.nuget.org/packages/UnmanagedExports you can expose it.
If you dllexport BarCode.BarcodeConverter12 8.StringTo Barcode to StringToBarcode128 then try this in Delphi:
If you dllexport BarCode.BarcodeConverter12
function StringToBarcode128(x: String): String; cdecl; external 'own_barcode.dll';
String variable ?
from a VS assembly ????
that's more likely going to be a PChar or a PWideChar
from a VS assembly ????
that's more likely going to be a PChar or a PWideChar
ASKER
ID: 42257077
Why don't I need that Dll?
Why don't I need that Dll?
cos he posted a link to the original barcode on which there is also delphi samples
with this string building functions
riginal Font and older code
The font was originally created by grandzebu.net where you can download the original font and see other coding examples in other older languages such as FoxPro, Delphi, VB6 and others (look towards the bottom of the page for this information).
Be aware, this site is in French, but there is an English version for most of the information which is where the above link will redirect you.
and on this page, you can download code samples
http://grandzebu.net/informatique/codbar-en/code128.htm
there is 2 french samples
of which a serious editing is required.
1: they are in French
2: awfull indenting
3: using global variables ? wtf ?
with this string building functions
riginal Font and older code
The font was originally created by grandzebu.net where you can download the original font and see other coding examples in other older languages such as FoxPro, Delphi, VB6 and others (look towards the bottom of the page for this information).
Be aware, this site is in French, but there is an English version for most of the information which is where the above link will redirect you.
and on this page, you can download code samples
http://grandzebu.net/informatique/codbar-en/code128.htm
there is 2 french samples
of which a serious editing is required.
1: they are in French
2: awfull indenting
3: using global variables ? wtf ?
ASKER
Geert Gruwez
I downloaded that and it doesn't work fine :(
I have the code in delphi and the characteres is different and when I call the font barcode 128, it doesn't make the correct codebar.
This is my string line that must be encoded to work with barcode128:
000096911 1 24700HR3 L200000015000PC
That old cold returns me: Ò Ä{Í1 1 24700HR3 LÌ4 !R ÍPCÅÓ
The new code from that site returns me: Í Ä{È1 1 24700HR3 LÇ4 !R ÈPC]Î
As you can see, it is different and only the side can give me the correct barcode 128
did you understand?
I downloaded that and it doesn't work fine :(
I have the code in delphi and the characteres is different and when I call the font barcode 128, it doesn't make the correct codebar.
This is my string line that must be encoded to work with barcode128:
000096911 1 24700HR3 L200000015000PC
That old cold returns me: Ò Ä{Í1 1 24700HR3 LÌ4 !R ÍPCÅÓ
The new code from that site returns me: Í Ä{È1 1 24700HR3 LÇ4 !R ÈPC]Î
As you can see, it is different and only the side can give me the correct barcode 128
did you understand?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ID: 42257162
Thanks a lot for giving me a light
I am gonna try it. :)
Thanks a lot for giving me a light
I am gonna try it. :)
ASKER
Well,
Unfortunately I didn't have any success.
I tried that code only for 128 and I got a long list. I noticed that code is also used in QRbarCode component. It is a old componet
Unfortunately I didn't have any success.
I tried that code only for 128 and I got a long list. I noticed that code is also used in QRbarCode component. It is a old componet
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your help.
I got another way to do that by mssql - but I thank for point me other ways
I got another way to do that by mssql - but I thank for point me other ways
you'll need to know if it's cdecl or not ...
and you'll need the function definitions
i can only read the headers of the help file, the contents seem to be missing
bottomline ... you don't really need that dll