locked
Barcode Extension RRS feed

  • Question

  • Hello everyone, I apologize for my English, I'm using google translator
    I'm trying to put my small basic barcode the extension, after downloading the package (consisting of 3 files), and put elements in the bin folder of the small basic, you can not even enter the function QRCode.
    I was wrong to do some step?
    I hope you can help me

    T.U.

    Tuesday, November 24, 2015 8:20 AM

Answers

  • Pappa Lapub   Thank you infomation.

    I updated SB QRCodeBarCode recently. It is for SB ver1.2.

    Carmenello

    If you success in making QRCodemaker.dll and QRCodemaker.xml , and copy them to SmallBasic\Lib folder ,

    you can see QRCOdemaker  in intellisense.  like below .

    • Proposed as answer by Jibba j Tuesday, December 8, 2015 10:23 PM
    • Marked as answer by litdev Wednesday, December 9, 2015 9:13 PM
    Saturday, November 28, 2015 12:51 PM
    Answerer

All replies

  • I suppose you have old QRcodemaker.dll ,QRcodemaker.xml and DotNetBarcode.dll .

    It was for SmallBasic  ver 1.0.

    You can make QRcodemaker.dll and QRcodemaker.xml your own.

    1) copy this code and save as  QRcodemaker.cs in a folder.  ( for example  D:\CSCTEST)

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Drawing;
    using System.Drawing.Imaging;
    using Microsoft.SmallBasic.Library;


    namespace QRCode
    {
        /// <summary>
        /// This is a QRCode Maker. It creates a QRCode photo.
        /// This uses freeware ; DotNetBarcode.dll 
        /// </summary>
     
       [SmallBasicType]

        public static class QRCodeMaker
        {
            /// <summary>
            /// bc1  QRCode
            /// </summary>
            static public DotNetBarcode bc1;
         
            /// <summary>
            /// QRWriteBar  makes  QRCode
            /// </summary>
            /// /// <param name="Message">
            /// Message to make a QRCode
            /// </param>
            /// <param name="FName">
            /// Directory / Filename to save the QRCode photo
            /// Only jpg type  Ex; G:\TestQRcode.jpg 
            /// </param>
            /// /// <param name="Pix">
            /// Pixel size>=1  Ex; 4
            /// </param>
            /// <returns>
            /// returns "QR Success"
            /// </returns>
           
            public static Primitive QRWriteBar(Primitive Message, Primitive FName, Primitive Pix)
            {
                DotNetBarcode bc1 = new DotNetBarcode();
                 bc1 = new DotNetBarcode(DotNetBarcode.Types.QRCode);
                 bc1.Type = DotNetBarcode.Types.QRCode;
                 bc1.PrintCheckDigitChar = true;
                 bc1.SaveFileType = DotNetBarcode.SaveFileTypes.Jpeg;
                 bc1.QRSave(Message, FName, Pix);
                return "QR Success";                    
            }
            /// <summary>
            /// WriteBar39  makes  BarCode
            /// </summary>
            /// /// <param name="Message">
            /// Message to make a BarCode(Code39)
            /// </param>
            /// <param name="FName">
            /// Directory / Filename to save the BarCode photo
            /// Only jpg type  Ex; G:\TestCode39.jpg 
            /// </param>
            /// /// <param name="Width">
            /// Width of the Barcode
            /// </param>
            /// /// <param name="Height">
            /// Height of the Barcode
            /// </param>
            /// <returns>
            /// returns "Code39 Success"
            /// </returns>
          
           public static Primitive WriteBar39(Primitive Message, Primitive FName, Primitive Width, Primitive Height)
            {
                DotNetBarcode bc1 = new DotNetBarcode();
                bc1 = new DotNetBarcode(DotNetBarcode.Types.Code39);
                bc1.Type = DotNetBarcode.Types.Code39;
                bc1.PrintCheckDigitChar = true;
                bc1.SaveFileType = DotNetBarcode.SaveFileTypes.Jpeg;
                bc1.Save(Message, FName, Width, Height);
                return "Code39 Success";              
            }
        }
    }

    2)Copy CSC.exe and sc.rsp and cscui.dll in the folder ( D:\CSCTEST)

     csc.exe and sc.rsp are  in C:\Windows\Microsoft.NET\Framework64\v4.0.30319 folder.
    cscui.dll is in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\1041  folder.

    3) copy  DotNetBarcode.dll and SmallBasicLibrary.dll in the folder  ( D:\CSCTEST)   * 

    3)Do command prompt

    4)change drive and directory
     Type  d:   enter
     Type  cd   CSCTEST enter

    5)Type csc.exe /target:library /r:SmallBasicLibrary.dll /r:DotNetBarcode.dll   QRCodemaker.cs /doc:QRCodemaker.xml  enter

    6) QRCodemaker.dll and QRCodemaker.xml are made in the folder.

    7) copy QRCodemaker.dll , QRCodemaker.xml and  DotNetBarcode.dll   in SmallBasic\Lib folder.

                       



    Tuesday, November 24, 2015 11:03 AM
    Answerer
  • I have a small basic version of 1.1, because I worked in the previous version of the extension LDExtension
    This makes problems with this procedure you described?
    Tuesday, November 24, 2015 11:23 AM
  • if you have smallbasic ver1.1 , Copy SmallBasicLibrary.dll  ver1.1  . you will success.

    ( if you have ver1.2  -->  Copy SmallBasicLibrary.dll  ver1.2)

    • Edited by NaochanONEditor Tuesday, November 24, 2015 11:48 AM add comment
    Tuesday, November 24, 2015 11:37 AM
    Answerer
  • where can I find Small Basic Library.dll ver1.1
    Tuesday, November 24, 2015 2:38 PM
  • You say that you have SB 1.1 installed, so SmallBasicLibrary.dll (version 1.1) should be in the main SB installation folder. Usually "C:\Program Files\Microsoft\Small Basic\SmallBasicLibrary.dll"  for 32bit systems and "C:\Program Files (x86)\Microsoft\Small Basic\SmallBasicLibrary.dll" for 64bit.
    Tuesday, November 24, 2015 9:05 PM
    Answerer
  • oh yes it is true XD, but by entering the extension in the lib of the small basic extension did not work, that I do not appear among the functions can you teach QRCode
    Friday, November 27, 2015 4:30 PM
  • NaochanON has updated his QRCode extension some days before SB QRCodeBarCode.zip (not tested yet, i use another) but should work for SB12.

    PS: Dont forget to unblock the downloaded zip before unpacking to SB\lib folder !!

    • Edited by Pappa LapubEditor Friday, November 27, 2015 5:06 PM
    • Proposed as answer by Jibba j Tuesday, December 8, 2015 10:23 PM
    Friday, November 27, 2015 5:05 PM
    Answerer
  • Pappa Lapub   Thank you infomation.

    I updated SB QRCodeBarCode recently. It is for SB ver1.2.

    Carmenello

    If you success in making QRCodemaker.dll and QRCodemaker.xml , and copy them to SmallBasic\Lib folder ,

    you can see QRCOdemaker  in intellisense.  like below .

    • Proposed as answer by Jibba j Tuesday, December 8, 2015 10:23 PM
    • Marked as answer by litdev Wednesday, December 9, 2015 9:13 PM
    Saturday, November 28, 2015 12:51 PM
    Answerer