|
Hello All,
I am trying to Export data in Excel From MySql DataBase.But How to Create Fields and Data of Table in Row and Colume Format.
Thanks
If you can think then I Can.
|
|
|
|
|
eg_Anubhava wrote: I am trying to Export data in Excel From MySql DataBase
This sentence does not make sense - but maybe it's just me...
Other than that, in what way is your question related to C/C++?
|
|
|
|
|
It's easy i m trying to export data from mysql to Excel.
So what is not sensable thing?
If you can think then I Can.
|
|
|
|
|
So which part are you having trouble with, getting data from Excel, or putting data into MySQL?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I have problem while inserting data in Excel From MYSQL.
If you can think then I Can.
|
|
|
|
|
Are you using Excel's COM interface (i.e., automation), or its ODBC driver?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Yes I am using ODBC Driver.
Thanks for reply
If you can think then I Can.
|
|
|
|
|
Are you using MFC?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Yes.
If you can think then I Can.
|
|
|
|
|
Then read up on the CRecordset class.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Thanks for your best suggestion.
If you can think then I Can.
|
|
|
|
|
Hi,
Whether Windows WorkFlow foundation supports in C++,
if yes.. how to implement it?.
Ratheesh.
|
|
|
|
|
No. Learn C# instead.
Kevin
|
|
|
|
|
|
Hi Buddys,
i can able to get tue document date using api, but i want to display it in international format/ 24 hours format, when i change reginal setting it will displays, but i dont want to change the setting, how can i access this w/o make any changes. revert me with feasible solutions
|
|
|
|
|
kirankatta wrote: ...but i want to display it in international format/ 24 hours format...
So what's the problem? Are you using GetDateFormat() ?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I'm implementing a class to manage an array of objects created on the heap.. Something like:
class Manager {
public:
Manager(void);
~Manager(void);
Populate(LPVOID data);
Retreive(int index);
private:
myObject * objects;
int count;
} myObject needs to contain a char array and a BYTE array, both also on the heap. My first inclination was to use a STRUCT :
struct myObject {
char * szName;
byte * lpbData;
}; As I thought about it, though, it seemed memory clean-up would be easier if I made myObject a class with public members, initialize the values with a constructor, and let the destructor handle memory clean-up:
class myObject {
public:
myObject(char * name, BYTE * data, DWORD size) {
this->szName = new char[strlen(name)+1]; strcpy(this->szName, name, strlen(name);
this->lpbData = new BYTE[size]; memcpy(this->lpbData, data, size);
this->dwSize = size;
}
~myObject(void) { delete this->szName; delete this->lpbData; }
public:
char * szName;
BYTE * lpbData;
DWORD dwSize;
}; Performance is critical in this particular application, and I'm thinking there's probably more to consider in the class vs. struct than just what makes memory cleanup easiest for me in the other classes.
Can anybody offer some help, here, or point me in the direction of a reference that might help?
Thanks,
MZR
|
|
|
|
|
classes and structs are basically the same in C++. The only difference is that structs have default member accessibility public , while classes have private .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Also, inheritance is public by default for structs and private by default for classes.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
...this is the down-side to being self-taught.
MZR
|
|
|
|
|
One could argue that they have "semantic" differences.
struct could be used to hold only data and class could be used to hold data and "behavior".
This signature was proudly tested on animals.
|
|
|
|
|
Yes, but this is left to the developer. In other words, C++ doesn't need struct s at all, it still has for compatibility with C .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
C++ neither needs macros (amongst other things), but for the sake of 'C' perverts like you, it had to be included.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
On the other hand C needs none of the C++ sissy features.
And Klingons programmers needs no postfix increment operator on their third variable.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|