Jump to content

Search the Community

Showing results for tags 'dat'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. I have found a site that can create a dat file here. I don't know other scripting language and only know autoit language a bit. I'm new to this dll with autoit, can some one please translate it to autoit //WPFormat using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace WP.WpFormat { public class WpFormat { [DllImport("WpFormat.dll")] public static extern System.IntPtr MRGInitDataFile(Byte bWPVersion, [MarshalAs(UnmanagedType.LPStr)] StringBuilder lpszFileName); [DllImport("WpFormat.dll")] public static extern void MRGCreateFieldNames(System.IntPtr handle, [MarshalAs(UnmanagedType.LPStr)] StringBuilder fielNames, int fieldCount); [DllImport("wpFormat.dll")] public static extern bool MRGAddField(System.IntPtr handle, [MarshalAs(UnmanagedType.LPStr)] StringBuilder lpszField); [DllImport("wpFormat.dll")] public static extern void MRGEndRecord(System.IntPtr handle); [DllImport("wpFormat.dll")] public static extern void MRGCloseDataFile(System.IntPtr handle); } } //Client Application using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.IO; using WP.WpFormat; namespace WPTestApp { class Program { static void Main(string[] args) { StringBuilder fileNameSb= new StringBuilder(); fileNameSb.Append(@"c:Test.dat"); System.IntPtr handle = WpFormat.MRGInitDataFile(1, fileNameSb); StringBuilder fieldNamesSb = new StringBuilder(); fieldNamesSb.Append("Name;Contact"); WpFormat.MRGCreateFieldNames(handle, fieldNamesSb, 2); StringBuilder fieldValuesb = new StringBuilder(); fieldValuesb.Append("JOHN"); WpFormat.MRGAddField(handle, fieldValuesb); fieldValuesb=new StringBuilder(); fieldValuesb.Append("123-123-1231"); WpFormat.MRGAddField(handle, fieldValuesb); WpFormat.MRGEndRecord(handle); WpFormat.MRGCloseDataFile(handle); } } }
×
×
  • Create New...