Click here to Skip to main content
15,904,652 members
Home / Discussions / C#
   

C#

 
GeneralRe: WTF??? AccessViolationException Issue Pin
phannon861-Apr-08 22:24
professionalphannon861-Apr-08 22:24 
GeneralRe: WTF??? AccessViolationException Issue Pin
Harvey Saayman1-Apr-08 22:29
Harvey Saayman1-Apr-08 22:29 
GeneralRe: WTF??? AccessViolationException Issue Pin
phannon861-Apr-08 22:38
professionalphannon861-Apr-08 22:38 
GeneralRe: WTF??? AccessViolationException Issue Pin
Harvey Saayman1-Apr-08 22:47
Harvey Saayman1-Apr-08 22:47 
GeneralRe: WTF??? AccessViolationException Issue Pin
Rob Philpott1-Apr-08 22:39
Rob Philpott1-Apr-08 22:39 
GeneralRe: WTF??? AccessViolationException Issue Pin
Harvey Saayman1-Apr-08 22:45
Harvey Saayman1-Apr-08 22:45 
GeneralRe: WTF??? AccessViolationException Issue Pin
Rob Philpott1-Apr-08 22:46
Rob Philpott1-Apr-08 22:46 
GeneralRe: WTF??? AccessViolationException Issue Pin
Harvey Saayman1-Apr-08 22:57
Harvey Saayman1-Apr-08 22:57 
its a class, first i add a reference to the project, then a using zkemkeeper;, then i make an instance of the class and the call methods from that instance in this fassion.

private void button1_Click(object sender, EventArgs e)
{
    CZKEMClass zkSDK = new CZKEMClass();
    if (zkSDK.Connect_Com(1, 1, 115200)) //connection was succesfull
    {
        if (zkSDK.ReadAllGLogData(1)) //this method gets all the data from the device and puts it in my ram
        {
            int badgeNo = 0;
            int verifyMode = 0;
            int inOutMode = 0;
            string dateTime = "";

            while (zkSDK.GetGeneralLogDataStr(1, ref badgeNo, ref verifyMode, ref inOutMode, ref dateTime))
            {
                MessageBox.Show(badgeNo + "\r\n" + verifyMode + "\r\n" +inOutMode + "\r\n" + dateTime);
            }
        }
        zkSDK.Disconnect(); //disconnect the conection
    }
}


Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)

GeneralRe: WTF??? AccessViolationException Issue Pin
Rob Philpott1-Apr-08 23:04
Rob Philpott1-Apr-08 23:04 
GeneralRe: WTF??? AccessViolationException Issue Pin
Harvey Saayman1-Apr-08 23:23
Harvey Saayman1-Apr-08 23:23 
GeneralRe: WTF??? AccessViolationException Issue Pin
Victor van Hagen6-Apr-08 2:56
Victor van Hagen6-Apr-08 2:56 
GeneralRe: WTF??? AccessViolationException Issue Pin
Harvey Saayman7-Apr-08 20:44
Harvey Saayman7-Apr-08 20:44 
GeneralRe: WTF??? AccessViolationException Issue Pin
Victor van Hagen9-Apr-08 8:28
Victor van Hagen9-Apr-08 8:28 
Generalcrystal report formula Pin
Member 44784001-Apr-08 22:07
Member 44784001-Apr-08 22:07 
QuestionCoding help needed Pin
bdiepeveen1-Apr-08 21:26
bdiepeveen1-Apr-08 21:26 
GeneralRe: Coding help needed Pin
Pete O'Hanlon1-Apr-08 22:14
mvePete O'Hanlon1-Apr-08 22:14 
GeneralRe: Coding help needed Pin
Herman<T>.Instance1-Apr-08 23:18
Herman<T>.Instance1-Apr-08 23:18 
GeneralRe: Coding help needed Pin
bdiepeveen3-Apr-08 1:36
bdiepeveen3-Apr-08 1:36 
GeneralAbout Hashtables Pin
John.L.Ponratnam1-Apr-08 19:42
John.L.Ponratnam1-Apr-08 19:42 
GeneralRe: About Hashtables Pin
Spunky Coder1-Apr-08 19:54
Spunky Coder1-Apr-08 19:54 
GeneralRe: About Hashtables Pin
Harvey Saayman1-Apr-08 22:26
Harvey Saayman1-Apr-08 22:26 
QuestionHow to perform cut,delete operation in bitmap? Pin
Aravinthan1-Apr-08 18:51
Aravinthan1-Apr-08 18:51 
GeneralConfused with the Equals() of Object class [modified] Pin
Darmi1-Apr-08 17:48
Darmi1-Apr-08 17:48 
GeneralRe: Confused with the Equals() of Object class Pin
N a v a n e e t h1-Apr-08 20:38
N a v a n e e t h1-Apr-08 20:38 
GeneralRe: Confused with the Equals() of Object class Pin
carbon_golem2-Apr-08 2:48
carbon_golem2-Apr-08 2:48 

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.