No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
- Interests
- read, listen to music, play games, travel everywhere.
Please help me a piece of code loading data from recordset into combo box. Thanks! |
|
These are my examples: [code] /*int WriteFile(const char* file_name) { fstream file; try { file.open(file_name,ios.out); file << "67"; //file << "I miss you very much."; file.close(); } catch(exception& e) { cout << e.what(); return 1; } return 0; }*/ /*int ReadFile(const char* file_name) { fstream file; file.open(file_name,ios.in); if(file.is_open()) { string … |
|
Re:
Hi guys, Am kind of looking for web designers, programmers and system developers and I hope am @ the right place. I am good in the .Net frame work esp ASP & Visual Studio but that doen't rule me out in VB6. I also like using PHP in rapid website … |
|
Re:
I'm trying to declare a structure definition in a header file so I can use the structure in other files, however I get the error: error C2011: 'Points' : 'struct' type redefinition from the file where the structure definition is declared. The structure is only defined in that header file. … |
|
I've got code sections which write and read binary files. But when I print data reading from file. It appears unnecessary characters. [code=cplusplus] int WriteFile(const char* file_name) { fstream file(file_name,ios.out|ios.binary); if(file.is_open()) { string data_block="I don't understand!\nAdd one line"; file.write(data_block.c_str(),data_block.length()); file.close(); cout << data_block << "(" << data_block.length() << ")" << … |
|
I've got following code section: [code=cplusplus] #include "stdafx.h" int main() { string str; cout << "Enter file name: "; getline (cin,str,cin.widen('\n')); char* file_name=new (nothrow) char[str.length()]; if(file_name==0) { cout << "Error: Memory could not be allocated!\n"; } else { strcpy(file_name,str.c_str()); WriteFile(file_name); ReadFile(file_name); [COLOR="Red"]delete[] file_name;[/COLOR] } getch(); return 0; } [/code] When … |