Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
QuestionRe: Unhandled Ex..Param Null: Value pen??? Pin
Guffa11-Sep-05 10:42
Guffa11-Sep-05 10:42 
AnswerRe: Unhandled Ex..Param Null: Value pen??? Pin
Anonymous11-Sep-05 10:47
Anonymous11-Sep-05 10:47 
GeneralRe: Unhandled Ex..Param Null: Value pen??? Pin
Guffa11-Sep-05 10:57
Guffa11-Sep-05 10:57 
GeneralRe: Unhandled Ex..Param Null: Value pen??? Pin
Anonymous11-Sep-05 11:03
Anonymous11-Sep-05 11:03 
AnswerRe: Unhandled Ex..Param Null: Value pen??? Pin
Mohamad Al Husseiny11-Sep-05 11:32
Mohamad Al Husseiny11-Sep-05 11:32 
GeneralRe: Unhandled Ex..Param Null: Value pen??? Pin
Anonymous11-Sep-05 12:17
Anonymous11-Sep-05 12:17 
GeneralRe: Unhandled Ex..Param Null: Value pen??? Pin
Mohamad Al Husseiny11-Sep-05 12:19
Mohamad Al Husseiny11-Sep-05 12:19 
Questionproblem in DLL calling Pin
Jassim Rahma11-Sep-05 10:01
Jassim Rahma11-Sep-05 10:01 
Hi,

I am trying to create an eventlog DLL which uses vistaDB but I have a
problem calling it.. can you please help...

I have created the DLL but I don't know what is the problem in calling it?!


the DLL:

using System;

using VistaDB;

namespace eventlogDLL

{

/// <summary>

/// Summary description for Class1.

/// </summary>

public class eventlog

{

public eventlog()

{

//

// TODO: Add constructor logic here

//

}

public void addlog(string log_app, string log_description, string
log_user, string log_ip, string log_os, string log_computer)

{

// Database;

VistaDBDatabase logDatabase = new VistaDBDatabase();

VistaDBTable logTable = new VistaDBTable();

// Database File;

// string strDatabase =
Path.GetDirectoryName(Application.ExecutablePath) +
"\\Database\\eventlog.vdb";

string strDatabase = "C:\\Documents and Settings\\Jassim Rahma\\My
Documents\\Visual Studio Projects\\Ezi-Work\\Database\\eventlog.vdb";

// connect to database;

logDatabase.DatabaseName = strDatabase;

logDatabase.Cypher = CypherType.Blowfish;

logDatabase.Password = "17218881";

logDatabase.Parameters = 0;

logDatabase.Exclusive = true;

logDatabase.Connect();

// open proposal age tables;

logTable.Database = logDatabase;

logTable.TableName = "EVENT_LOG";

logTable.Open();

// add new eventlog;

logTable.Insert();

logTable.PutString("EZI_NAME", log_app);

logTable.PutMemo("HIGHEST_SUM_INSURED", log_description);

logTable.PutString("EZI_REMARKS", log_user);

logTable.PutString("CREATED_BY_USER", log_ip);

logTable.PutString("CREATED_BY_USER", log_os);

logTable.PutString("CREATED_BY_COMPUTER", log_computer);

logTable.PutDateTime("CREATED_BY_DATE", DateTime.Now);

logTable.Post();


//Close table

logTable.Close();

//Close database

logDatabase.Close();

}

}

}



and calling it:



using eventlogDLL;

eventlog EventLog = new eventlog();

eventlog.addlog("Ezi-Life", "New Ezi-Life Record was added", "jrahma",
"192.168.250.11", "Windows XP", "JASIM");







Best Regards,
Jassim Rahma
QuestionRe: problem in DLL calling Pin
Guffa11-Sep-05 10:43
Guffa11-Sep-05 10:43 
QuestionDevelopment of setup and deployment projects(MSI files)! Pin
lata07mahi11-Sep-05 9:55
lata07mahi11-Sep-05 9:55 
AnswerRe: Development of setup and deployment projects(MSI files)! Pin
Mohamad Al Husseiny11-Sep-05 10:06
Mohamad Al Husseiny11-Sep-05 10:06 
QuestionConst vars Pin
Niklas Ulvinge11-Sep-05 9:26
Niklas Ulvinge11-Sep-05 9:26 
AnswerRe: Const vars Pin
Guffa11-Sep-05 9:41
Guffa11-Sep-05 9:41 
GeneralRe: Const vars Pin
Niklas Ulvinge11-Sep-05 21:43
Niklas Ulvinge11-Sep-05 21:43 
AnswerRe: Const vars Pin
S. Senthil Kumar12-Sep-05 0:24
S. Senthil Kumar12-Sep-05 0:24 
GeneralRe: Const vars Pin
Niklas Ulvinge12-Sep-05 3:42
Niklas Ulvinge12-Sep-05 3:42 
Question(CTRL + SHIFT) keyboard action Pin
Mike Jeferson11-Sep-05 8:33
Mike Jeferson11-Sep-05 8:33 
AnswerRe: (CTRL + SHIFT) keyboard action Pin
Mohamad Al Husseiny11-Sep-05 8:43
Mohamad Al Husseiny11-Sep-05 8:43 
GeneralRe: (CTRL + SHIFT) keyboard action Pin
Mike Jeferson11-Sep-05 11:36
Mike Jeferson11-Sep-05 11:36 
AnswerRe: (CTRL + SHIFT) keyboard action Pin
Mohamad Al Husseiny11-Sep-05 12:06
Mohamad Al Husseiny11-Sep-05 12:06 
GeneralRe: (CTRL + SHIFT) keyboard action Pin
Anonymous12-Sep-05 0:22
Anonymous12-Sep-05 0:22 
AnswerRe: (CTRL + SHIFT) keyboard action Pin
Mohamad Al Husseiny12-Sep-05 9:32
Mohamad Al Husseiny12-Sep-05 9:32 
QuestionOpen A File AT Program Start Pin
Morten Jørgensen11-Sep-05 7:23
Morten Jørgensen11-Sep-05 7:23 
AnswerRe: Open A File AT Program Start Pin
Mohamad Al Husseiny11-Sep-05 9:22
Mohamad Al Husseiny11-Sep-05 9:22 
QuestionListBox visualization problem Pin
firefoxrabbit11-Sep-05 7:00
firefoxrabbit11-Sep-05 7:00 

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.