|
lets see : i dont want to learn SQL only to work this thats it , way to learn SQL ... only for this ? what is the ... only need help for this thats all !
can you help me with this?
Bravoone
|
|
|
|
|
Its not true if you learn sql it will helpful for you and you want to write a database program so you need to know things about sql
|
|
|
|
|
I'm sorry, I've spent days trying to help you, and you've not listened to anything I've said, provided information I need, taken my advice, or shown in the code that you've posted that your skills are up to doing anything remotely this complex. We're here to help, but if the person on the other end is unable to understand our help, there's really nothing we can do.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I want to write a proram to download the mails automatically.
First connect the server,second login,and then caculate the total number of the mails,the last receive the mail one by one.
When I caculate the number,the result is incorrect(the result is -858993460). Why and how to caculate the nubmber of the mail? How the mail stored and how to distinguish the different mails.Whether some characters between the different mails.
Thank you for reading and answer my question.
My account is in yahoo
help
|
|
|
|
|
when i can use
winsock/winsock2 OR
CSocket/CAsynsSocket
|
|
|
|
|
Muhammad Azeem Azam wrote: winsock/winsock2
Windows Sockets 2 is designed for use by C/C++ programmers.
Run-Time Requirements
Windows Sockets 2 can be used on all Windows platforms.
Muhammad Azeem Azam wrote: CSocket/CAsynsSocket
Class CSocket derives from CAsyncSocket and inherits its encapsulation of the Windows Sockets API. A CSocket object represents a higher level of abstraction of the Windows Sockets API than that of a CAsyncSocket object. CSocket works with classes CSocketFile and CArchive to manage the sending and receiving of data.
This is an MFC approach to use Sockets. User's working on C/C++ and WIN32 applications can use winsock etc...
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Good Morning,
I have 99 CEdit I want to do a loop and pick
the text of there 99 text and concatenate them in
a Cstring here an exemlpe
for (i=0;i<=99;i++)
allString=allString + the content of CEdit[i].the function to extract the text;
I found an exemple on VB
For i = 0 To 99
HolayString = HolayString & txtHol(i).CtlText
Next i
how i do it in VC++
thanks a lot
zzzzz zizzz
|
|
|
|
|
Supposing you have created a dialog based application with 99 edit box ( Use Microsoft App wizard for creating Dialog based App)
Then suppose there is a button on the dialog and on clicking you need the 99 text. Then handle the BN_CLICKED event of the button
CMYDlg::OnButton1()
{
CString MyStr;
For( i = 0; i<=99; i++ )
{
MyStr += EditArray[i].GetWindowText(); //Supposing the CEdit EditAray[99] is declared and created.
}
AfxMessageBox( MyStr );
}
Rinu Raj
|
|
|
|
|
few remarks :
1) you dont construct the EditArray
2) you don't initialize MyStr
3) it should be for, not For
4) GetWindowText() don't work that way
otherwise, the concept is good
|
|
|
|
|
thank you for pointing
i haven't executed the code
Please consider it as a suggestion
Thanks
Rinu Raj
|
|
|
|
|
you can do 3 ways :
(1) common way. you have a variable for each edit, and access it with m_edit.GetWindowText(strContent) . you do that for each and then you Create a CString which is a concatenation of all of them... quite hard to do !
(2) brute way. you ensure that ever editBoxes IDs are following each others (like IDC_EDIT1 == 1001, IDC_EDIT2 == 1002, etc...). then, you can make a for loop from IDC_EDIT1 to IDC_EDIT99, read their content and contatenate like in (1).
(3) more Subtle solution. you create a list (std::vector will do) with references to the 99 editboxes. the only matter is that they are puched in the correct order in the list so that you read them good. then you do this :
std::vector<UINT> vec;
vec.push_back(IDC_EDIT1);
vec.push_back(IDC_EDIT2);
CString strAll = _T(""), strItem = _T("");
std::vector<UINT>::iterator iter;
for (iter = vec.begin(); iter != vec.end(); iter++) {
GetDlgItem(*iter)->GetWindowText(strItem);
strAll += strItem;
}
|
|
|
|
|
The IDC_EDIT as value or as Control
|
|
|
|
|
IDC_EDITnn are the edit IDs, so UINT
but you could also make a vector of CEdit directly (of a vector of pointers to CEdit to reduce the memory allocated). you would then access datas by :
CString strAll = _T(""), strItem = _T("");
std::vector<CEdit*>::iterator iter;
for (iter = vec.begin(); iter != vec.end(); iter++) {
(*iter)->GetWindowText(strItem);
strAll += strItem;
}
|
|
|
|
|
zizzzz wrote: I have 99 CEdit
Geeez... Are you sure you want that much edit controls on your dialog ? Poor users...
|
|
|
|
|
life insurance creation forms...?!
|
|
|
|
|
just for a little test
Dont worry for users Cédric;P
|
|
|
|
|
zizzzz wrote: just for a little test
what test?
|
|
|
|
|
I want to collect some informations from CEdits and send them
to a device using a control AciveX
it's a long story
thank you for asking and for your help all of you
zzzzz zizzzz
|
|
|
|
|
Hi all,
We are developing wildcard script maps for WSS&SPS(windows sharepoint). During this process we
have faced a problem! When we have installed this wildcard script map(ISAPI
extension) to a virtual server, we cant visit any site - error 404, after
examining logs, we find out that WSS just couldn't connect to DB. As i
understand, this ISAPI extensions is called before all other extensions and
filters, and just doesn't allow to launch other.
Could anyone assist me in this problem please?
thanx in advance
|
|
|
|
|
what does this have to do with C++ ?
|
|
|
|
|
I did search and try this section of code; but the cursor did not change?
BeginWaitCursor(); // display the hourglass cursor
// do some lengthy processing
EndWaitCursor(); // remove the hourglass cursor
This was for a Visual Studio 2005 MFC C++ Dialog application.
I just want an hourglass for a few minutes while some processing is taken place.
Many thanks,
Andy.
|
|
|
|
|
I think it should work can you paste your code here ?
Also try using LoadCursor(...)
Rinu Raj
|
|
|
|
|
BeginWaitCursor();<br />
while (!g_pRecordset->GetadoEOF() )<br />
{<br />
g_TheValue = g_pRecordset->Fields->GetItem ("MessageDisplayName")->Value;<br />
g_szMessageDisplayName.Format("%s", (char *)_bstr_t(g_TheValue));<br />
j++;<br />
ProcessMessages();<br />
} <br />
EndWaitCursor();<br />
output.AppendFile(g_szFileName, m_lineData);
Nothing happens with the cursor, I use ProcessMessages() to pump the message queue so that I can update a listView that is being populated.
Any suggestions?
|
|
|
|
|
Is there any reason not going for CWaitCursor ?
You code would be modified like this,
CWaitCursor wait;
while (!g_pRecordset->GetadoEOF() )
{
g_TheValue = g_pRecordset->Fields->GetItem ("MessageDisplayName")->Value;
g_szMessageDisplayName.Format("%s", (char *)_bstr_t(g_TheValue));
j++;
ProcessMessages();
}
output.AppendFile(g_szFileName, m_lineData);
You only need to construct its object.
|
|
|
|
|
Although this code may well work, it's also possible that the ProcessMessages() call could cause the cursor to return to the standard arrow.
If that is happening, add a
wait.restore();
after the ProcessMessages() call.
Hope that helps.
-- modified at 8:43 Friday 22nd September, 2006
Karl - WK5M
PP-ASEL-IA (N43CS)
<kmedcalf@ev1.net>
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|