Click here to Skip to main content
15,896,397 members
Home / Discussions / C#
   

C#

 
AnswerRe: How do I create a new folder programmatically? Pin
mav.northwind2-Oct-05 12:24
mav.northwind2-Oct-05 12:24 
GeneralRe: How do I create a new folder programmatically? Pin
tom_dx3-Oct-05 11:56
tom_dx3-Oct-05 11:56 
AnswerRe: How do I create a new folder programmatically? Pin
Mahesh Kumar V K2-Oct-05 19:53
Mahesh Kumar V K2-Oct-05 19:53 
QuestionSave a text file as ANSI instead of UTF-8? Pin
mcyrrer2-Oct-05 10:37
mcyrrer2-Oct-05 10:37 
AnswerRe: Save a text file as ANSI instead of UTF-8? Pin
mav.northwind2-Oct-05 12:26
mav.northwind2-Oct-05 12:26 
GeneralRe: Save a text file as ANSI instead of UTF-8? Pin
mcyrrer2-Oct-05 20:14
mcyrrer2-Oct-05 20:14 
AnswerRe: Save a text file as ANSI instead of UTF-8? Pin
pipiscrew3-Jul-12 10:14
pipiscrew3-Jul-12 10:14 
QuestionWhy is my .mdb connection not working? Pin
Anonymous2-Oct-05 9:38
Anonymous2-Oct-05 9:38 
I try to get some data from a .mdb file, but it fails with a realy weird and long exception, here is my code:

public DataSet getTranslation(int language)
{

DataSet translations = new DataSet();
String connes = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Documents and Settings\\Johan\\My Documents\\languageDB1_00.mdb";
String sql = ("SELECT Translation, PhraseKey FROM Translation WHERE languageID = " + language + ";");
OleDbConnection conn = null;

conn = new OleDbConnection(connes);
//"SELECT Translation, PhraseKey FROM Translation WHERE languageID = " + language + ";";
try
{
OleDbCommand command = new OleDbCommand(sql, conn);
OleDbDataAdapter adapter = new OleDbDataAdapter(command);
conn.Open();
adapter.Fill(translations, "Translation");
return translations;
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.ToString());
return null;
}
finally
{
conn.Close();
}
}


The exeption message begins with:
IErrorInfo.GetDescription failed with E_FAIL (0x80004005)

please help...

john
AnswerRe: Why is my .mdb connection not working? Pin
Mahesh Kumar V K2-Oct-05 21:39
Mahesh Kumar V K2-Oct-05 21:39 
QuestionGet External Ip Pin
ventomito2-Oct-05 8:37
ventomito2-Oct-05 8:37 
Questionmost efficient way to draw triangle Pin
...---...2-Oct-05 6:04
...---...2-Oct-05 6:04 
AnswerRe: most efficient way to draw triangle Pin
Dave Kreskowiak2-Oct-05 7:12
mveDave Kreskowiak2-Oct-05 7:12 
GeneralRe: most efficient way to draw triangle Pin
...---...2-Oct-05 8:20
...---...2-Oct-05 8:20 
GeneralRe: most efficient way to draw triangle Pin
Dave Kreskowiak2-Oct-05 8:47
mveDave Kreskowiak2-Oct-05 8:47 
GeneralRe: most efficient way to draw triangle Pin
...---...2-Oct-05 9:24
...---...2-Oct-05 9:24 
GeneralRe: most efficient way to draw triangle Pin
Robert Rohde2-Oct-05 19:29
Robert Rohde2-Oct-05 19:29 
QuestionOleDbType cast to BaseType .Net Pin
Gedrain2-Oct-05 3:24
Gedrain2-Oct-05 3:24 
AnswerRe: OleDbType cast to BaseType .Net Pin
Dave Kreskowiak2-Oct-05 7:17
mveDave Kreskowiak2-Oct-05 7:17 
GeneralRe: OleDbType cast to BaseType .Net Pin
Gedrain2-Oct-05 7:21
Gedrain2-Oct-05 7:21 
GeneralRe: OleDbType cast to BaseType .Net Pin
Dave Kreskowiak2-Oct-05 8:29
mveDave Kreskowiak2-Oct-05 8:29 
GeneralRe: OleDbType cast to BaseType .Net Pin
Gedrain2-Oct-05 8:36
Gedrain2-Oct-05 8:36 
GeneralRe: OleDbType cast to BaseType .Net Pin
Dave Kreskowiak2-Oct-05 8:50
mveDave Kreskowiak2-Oct-05 8:50 
QuestionHelp!! monitor bandwidth usage Pin
dunbshy2-Oct-05 3:03
dunbshy2-Oct-05 3:03 
AnswerRe: Help!! monitor bandwidth usage Pin
Dave Kreskowiak2-Oct-05 7:09
mveDave Kreskowiak2-Oct-05 7:09 
GeneralRe: Help!! monitor bandwidth usage Pin
dunbshy2-Oct-05 7:26
dunbshy2-Oct-05 7:26 

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.