|
iam using MFC(VC++) anmd backend is mysql
hi
|
|
|
|
|
Then please tell us this:
What is your specific problem? What's not working?
What statement dosen't work?
You can't expect anyone to copy your code, clone your database e.t.c. and then come up with a solution.
|
|
|
|
|
i make a dialog box in mfc which contain two edit controls one for usename and other for password and a button for login
now i made a table users in mysql which contain user names and passwords
now i want when i click on login button the usename and passwrd conformation is made from mysql table and it then login else give incorrect
tel me the code
hi
|
|
|
|
|
HI,
I am using a class derived from CSocket in my application. As when the Socket is sending or reciveing a data and the data not came then it gets blocked. There is a CancelBlocking method in the CSocket.
But how can I programaticaly handle it, when one of the application Client or Server stops sending or recieving dta then other application should not gets blocked.
any idea / link
Thanks
Regards.
|
|
|
|
|
zahid_ash wrote: when one of the application Client or Server stops sending or recieving dta then other application should not gets blocked.
Try the CAsyncSocket Class.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
I have already used CSocket in my project.
Should I replace CSocket word with CAsyncSocket , woiuld it not disturb the project.
or how can I handle this with CSocket?
Regards.
|
|
|
|
|
zahid_ash wrote: I have already used CSocket in my project.
Should I replace CSocket word with CAsyncSocket , woiuld it not disturb the project.
or how can I handle this with CSocket?
Try it..
As the CSocket is derived from CAsyncSocket class
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Can i handle this blocking and cancel blocking in CSocket.
Can the timer be helpfull , means if in specific time nothing has been recived or sent then socket use the cancel blocking or so ?
Regards.
|
|
|
|
|
Hi,
yes you can i.e. CreateEvent and use WaitForSingleObject( HANDLE hHandle, DWORD dwMilliseconds ).
-----------
Mila
|
|
|
|
|
Hi I’m making a project.
I’m making a project in vc++.
i have to connect sipx phone with my software. And I have done it successfully.
But the problem Is that when I put the correct info then phone ring up.
I have took a status of sipxInitialize, sipxLineAdd , and other function in SIPX_RESULT variable but these function always return me success.
So how would I check the wrong status.
PLz Tell me the solution.
thanx
Amit Agarwal
|
|
|
|
|
I can use "GetMenuString" to get caption of a menu item which has an ID!but i dont know how to get cation of an menu item which has a submenu(Popup menu)!
Please help me!
Thank!
|
|
|
|
|
Same way....as you are doing but pass the ID of you submenu.
or you can use:
GetSubMenu( int nPos ) const; function.
Cheers
"Peace of mind through Technology"
|
|
|
|
|
I tried,but by that way, i can only receive caption of submenu item,not a popup item!
|
|
|
|
|
Try to use the form of GetMenuString function which works with item's position, using MF_BYPOSITION flag, like this:
CString s;
GetMenuString(10, s, MF_BYPOSITION);
where 10 is the position of the item in the menu.
|
|
|
|
|
i use this function to convert date from vc++ format to mysql format
but it give 1970-1-1 every time even i submit today date or other date
plz tel me how can i get the date which i specify
CString strDate=m_datetime.Format("%Y-%m-%d");
i use date time picker in mfc and make variable of this m_datetime as CTime
now tel me how i get other dates on mysql table
hi
|
|
|
|
|
paras_s12 wrote: i use this function to convert date from vc++ format to mysql format
but it give 1970-1-1 every time even i submit today date or other date
plz tel me how can i get the date which i specify
CString strDate=m_datetime.Format("%Y-%m-%d");
i use date time picker in mfc and make variable of this m_datetime as CTime
now tel me how i get other dates on mysql table
try the following code.
UpdateData(TRUE);
CString strDate=m_datetime.Format("%Y-%m-%d");
UpdateData(FALSE);
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
thank u for ur ans
its work well
and i am great thankful to u for this
hi
|
|
|
|
|
Welcome..!
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
UpdateData(TRUE);
CString strDate=m_datetime.Format("%Y-%m-%d");
//do your stuff here
UpdateData(FALSE);
if i want to fetch same date from mysql table into vc++ then wat should i do;
hi
|
|
|
|
|
Hi All,
Can you anyone help me out by getting me the sample code in Visual C++ to
call crystal report and display it in PDF format using Visual C++.
IF you can provide me the sample code means that would be helpfull.
looking for the reply...
regards,
vinay
vinay
|
|
|
|
|
See Here[^] of course without pdf
whitesky
|
|
|
|
|
Hi,
Thanks for the reply, but my requiremnt is little different..
Actual requirement is:
Take the parameters and Pass to the Crystal report and Display the report in PDF format on the Web,
IF you could provide me a sample Code that would be helpfull..
Vinay
|
|
|
|
|
I'm trying to store info in a .INI file but I get a runtime error everytime. My code looks something like:
GetDlgItemText (hwnd, ID_EDIT1, user, 40);
GetDlgItemText (hwnd, ID_EDIT2, edit2, 40);
WritePrivateProfileString (user, "settings", edit2, "info.INI");
It will create the info.INI file but won't write anything to it before closing. Thanks for any help.
-Matt
|
|
|
|
|
fury 84 wrote: I'm trying to store info in a .INI file but I get a runtime error everytime. My code looks something like:
GetDlgItemText (hwnd, ID_EDIT1, user, 40);
GetDlgItemText (hwnd, ID_EDIT2, edit2, 40);
WritePrivateProfileString (user, "settings", edit2, "info.INI");
It will create the info.INI file but won't write anything to it before closing. Thanks for any help.
What is the data types of the variables??
-if they are pointers and you haven't allocate the memory for them then runtime error may occur.
-Check the maxcount you providing and the available size of the variable.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
I got a 600*480(pixel) picture with my camera. I wonder how many centimeters the width and height are.
how to calculate?
|
|
|
|