Click here to Skip to main content
15,902,032 members
Home / Discussions / Database
   

Database

 
GeneralRe: Database Logging Pin
tojamismis27-Jan-05 7:58
tojamismis27-Jan-05 7:58 
GeneralEditing/Saving a record selected in a Listbox Pin
frank2124-Jan-05 9:58
frank2124-Jan-05 9:58 
GeneralView Pin
Sebastien Lachance24-Jan-05 4:25
Sebastien Lachance24-Jan-05 4:25 
GeneralRe: View Pin
Mike Ellison24-Jan-05 6:17
Mike Ellison24-Jan-05 6:17 
Generalinsert /retrieve text file into/from MySQL Pin
kd834124-Jan-05 4:08
kd834124-Jan-05 4:08 
GeneralRe: insert /retrieve text file into/from MySQL Pin
David Salter24-Jan-05 10:28
David Salter24-Jan-05 10:28 
GeneralRe: insert /retrieve text file into/from MySQL Pin
kd834125-Jan-05 9:21
kd834125-Jan-05 9:21 
GeneralRe: insert /retrieve text file into/from MySQL Pin
kd834125-Jan-05 9:22
kd834125-Jan-05 9:22 
Hi, Davey:

Thanks for your response. Here are my code for text file:

String * NCFILE_NAME = "test10.nc";
FileStream * tfs = new FileStream(NCFILE_NAME, FileMode::Open, FileAccess::Read);
Char ncbuffer[] = new Char[(int)tfs->Length];
tfs->Read(ncbuffer, 0, ncbuffer->Length);

My intention is to read the text from "test10.nc" and write to Char Array ncbuffer[], but

tfs->Read(ncbuffer, 0, ncbuffer->Length);

cause the error like this:

cannot convert parameter 1 from '__wchar_t __gc[]' to 'unsigned char __gc[]'

When I did exactly the same for binary file, and define as:
FileStream* fs = new FileStream(FILE_NAME, FileMode::Open, FileAccess::Read);
Byte buffer[] = new Byte[(int)fs->Length];
fs->Read(buffer,0,buffer->Length);
String* extension = "jpg"; // for image file
It works fine.

So I guess maybe I should use something other than FileStream. But what is it?

Could you please give me some ideas about this?

Regards,
Kevin

GeneralRe: insert /retrieve text file into/from MySQL Pin
David Salter28-Jan-05 5:43
David Salter28-Jan-05 5:43 
QuestionDataTable > DataView > ComboBox? Pin
work_to_live24-Jan-05 3:11
work_to_live24-Jan-05 3:11 
AnswerRe: DataTable > DataView > ComboBox? Pin
tojamismis27-Jan-05 8:08
tojamismis27-Jan-05 8:08 
GeneralRe: DataTable > DataView > ComboBox? Pin
work_to_live27-Jan-05 13:18
work_to_live27-Jan-05 13:18 
GeneralRe: DataTable > DataView > ComboBox? Pin
work_to_live27-Jan-05 13:22
work_to_live27-Jan-05 13:22 
Generalconnecting to the data source Pin
Civic0624-Jan-05 1:38
Civic0624-Jan-05 1:38 
GeneralRe: connecting to the data source Pin
David Salter24-Jan-05 10:26
David Salter24-Jan-05 10:26 
GeneralRe: connecting to the data source Pin
Civic0624-Jan-05 11:58
Civic0624-Jan-05 11:58 
GeneralRe: connecting to the data source Pin
David Salter24-Jan-05 22:20
David Salter24-Jan-05 22:20 
GeneralRe: connecting to the data source Pin
Civic0625-Jan-05 16:25
Civic0625-Jan-05 16:25 
GeneralRe: connecting to the data source Pin
David Salter28-Jan-05 5:39
David Salter28-Jan-05 5:39 
GeneralAdd store procedure to database Pin
El'Cachubrey23-Jan-05 19:43
El'Cachubrey23-Jan-05 19:43 
GeneralRe: Add store procedure to database Pin
Mike Dimmick24-Jan-05 1:23
Mike Dimmick24-Jan-05 1:23 
QuestionADO Connection to an Access 2000 DB with a DB password? Pin
Mike the Red21-Jan-05 4:39
Mike the Red21-Jan-05 4:39 
AnswerRe: ADO Connection to an Access 2000 DB with a DB password? Pin
David Salter22-Jan-05 1:36
David Salter22-Jan-05 1:36 
GeneralMoving data Pin
Member 23350920-Jan-05 23:19
Member 23350920-Jan-05 23:19 
GeneralRe: Moving data Pin
Colin Angus Mackay20-Jan-05 23:49
Colin Angus Mackay20-Jan-05 23:49 

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.