Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
AnswerRe: Transparent Windows Forms Pin
g00fyman3-Oct-05 4:03
g00fyman3-Oct-05 4:03 
QuestionPls help in email grouping..... Pin
2-Oct-05 19:16
suss2-Oct-05 19:16 
QuestionSQL Server does not exist Pin
Anonymous2-Oct-05 18:57
Anonymous2-Oct-05 18:57 
AnswerRe: SQL Server does not exist Pin
Luis Alonso Ramos2-Oct-05 19:07
Luis Alonso Ramos2-Oct-05 19:07 
GeneralRe: SQL Server does not exist Pin
Mahesh Kumar V K2-Oct-05 19:45
Mahesh Kumar V K2-Oct-05 19:45 
QuestionSoccer Game Pin
nume2-Oct-05 18:11
nume2-Oct-05 18:11 
QuestionSending WinForm to printer Pin
MeterMan2-Oct-05 16:49
MeterMan2-Oct-05 16:49 
AnswerRe: Sending WinForm to printer Pin
Robert Rohde2-Oct-05 19:15
Robert Rohde2-Oct-05 19:15 
Questionsome questions... Pin
Sasuko2-Oct-05 12:59
Sasuko2-Oct-05 12:59 
AnswerRe: some questions... Pin
Robert Rohde2-Oct-05 19:19
Robert Rohde2-Oct-05 19:19 
QuestionMicrosoft Money in C# Pin
jgallen232-Oct-05 12:27
jgallen232-Oct-05 12:27 
AnswerRe: Microsoft Money in C# Pin
Vasudevan Deepak Kumar2-Oct-05 23:25
Vasudevan Deepak Kumar2-Oct-05 23:25 
GeneralRe: Microsoft Money in C# Pin
jgallen233-Oct-05 5:23
jgallen233-Oct-05 5:23 
QuestionHow do I create a new folder programmatically? Pin
tom_dx2-Oct-05 11:54
tom_dx2-Oct-05 11:54 
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 

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.