|
i got an error,
main is not a memeber of CLocal.
sree
|
|
|
|
|
Can you show how to use this code in your program
whitesky
|
|
|
|
|
Hi,
I am drawing chart using Excel.I have to plot date and time parameter on x-axis.When the chart is plotted it's plotted with respective to date only(i.e it clubed all the values of single date with different times in one date).
Can any one help me out? Thanks in advance
Mike ![Confused | :confused:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_confused.gif)
|
|
|
|
|
how do i display a dword value in afxmessagebox??or is it not possible?
|
|
|
|
|
<br />
DWORD d=10;<br />
CString str;<br />
str.Format("%d",d);<br />
AfxMessageBox(str);<br />
whitesky
|
|
|
|
|
hey thanks!
dat worked!
wil dat also work for void*??
|
|
|
|
|
|
Hey dont get Buzzed by 'DWORD' ,
DWORD = unsigned long
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
shuchigo_jane wrote:
how do i display a dword value in afxmessagebox??or is it not possible?
is wsprintf or CString::Format is of any help?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
brother, please come on, read the other answers before replying
this has already been suggested 1/2h ago
nothing against you dear, but don't give that newbies the feeling that they can do things like that too...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
toxcct wrote:
this has already been suggested 1/2h ago
I am Sorry borther.. forget to refresh the Page before answering... that time it havn't has any reply!
toxcct wrote: nothing against you dear, but don't give that newbies the feeling that they can do things like that too...
i know.. you never go against me
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ThatsAlok wrote: I am Sorry borther.. forget to refresh the Page before answering...
huuu, that not addictive to CP ?????
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
like me send before refresh i have this problem and i send one answer and i see one answer like my answer (of course your answer is a little differ(wsprintf
and toxcct is one guard for this forum he is exactly ,right?
whitesky
|
|
|
|
|
But toxcct the terminator, you know sometimes I take too much time reading the problem itself.. and when I post the reply, I see my reply getting queued at the bottom dont kill me for that pealse.. ok ?
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
|
|
Quite blunt, but why do you say if (!res) ?
shouldn't it be if(res) ? (It depends on how you assume.But generally if a function executes successfully , it returns a positive value or a true , If the function is done by you, you follow it too)
yogendra kaushik wrote: if (i != 1)
And here, I suggest you check (i>0) (in general) and you miss the else part. make an else part of the second if then display AfxMessageBox "Not Found!"
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
yar this will not work as if it delete sucessfully it will not display message and if i enter wrong id it willnot display message
Please mail me
|
|
|
|
|
Maybe mysql_num_rows can be used only with SQL statements which return result set? Check the documentation. If no other solutions, I think you can first execute a SELECT statement in order to see if there is a row, then use mysql_num_rows to check the result, and after this use DELETE.
|
|
|
|
|
|
Maybe you forgot to execute the SELECT statement with mysql_query or mysql_real_query ?
|
|
|
|
|
sir u r the man who can solve any problem its amazing
thanks a lot
sir i want to fetch date from mysql table with other values that is when i press fetch button in mfc dialogbox it will display values from mysql table into dialog box's edit boxes . all values are fetched but date does not
as the mysql date format is yyyy-mm-dd and the datetime picker in mfc has the format dd-mm-yyyy
plz tel me how to fetch it
Please mail me
|
|
|
|
|
Maybe like this:
const char * const s = "2006-06-12" ;
int year, month, day;
sscanf(s, "%i-%i-%i", &year, &month, &day);
CTime const t(year, month, day, 0, 0, 0);
m_cMyDateTimePicker.SetTime(&t);
|
|
|
|
|
but sir wat iwill enter in place of date 2006-06-12 otherwise it will give only this date. i dont know but value stored in mysql table
const char * const s = "2006-06-12" ;
Please mail me
|
|
|
|
|
It was just a sample.
In your application you probably get date from database with a SELECT statement, let us say "SELECT id, name, date, count FROM myTable " (this is just a sample). Then you use mysql_query and finally something like res = mysql_store_result(myDB) . Now you can access the date value, which is the third field of the statement:
char * s = row[2];
Put a breakpoint here and see if the date value is valid. Then use the previous sample to display it.
|
|
|
|