|
I'll be more than happy to do your homework assignment for you if you can explain what Heba KURDI and Mona BENAISSA mean.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
Heba KURDI and Mona BENAISSA mean
it seems, they are his/her Project Guide!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hi,
I have a connection to a database with CDatabase via ODBC. The question is:
How to retrieve all tables of the database?
Bye.
Ivan Cachicatari
www.latindevelopers.com
|
|
|
|
|
|
|
I'm using database servers, MySQL, MSDE2000, Firebird..
I make the connection for any of this DBMS.
Ivan Cachicatari
www.latindevelopers.com
|
|
|
|
|
|
im trying to make a prog that finds all the files of a certain extension in a certain directory and then copies those files to another directory. I was wondering what to use to find the paths for the files: something similar to 'glob' from python or $findfile() from irc.
|
|
|
|
|
|
Is there a non-MFC version of CFileFind
|
|
|
|
|
|
Hi,
is it possible to fire an OLE Control Event out of a Class wich is simply derived from a wrapper class of an ActiveX Control?
for example: I have derived a class of CMSFlexGrid (the wrapper class of the MSFlexGrid ActiveX Control) and now I want to fire an userdefined Event wich should be handled by the parent window (Dialog)
Thanks in advance!!!
|
|
|
|
|
I need to read in from a file an array of structs and I don't know how. I have a file with a score and the frequency that it occurs the struct is set up as;
struct stats
{
int score;
int frequency;
};
the file contains 10 lines set up as score frequency
how do I set up the array and read it in from a file?
|
|
|
|
|
|
hi,
i have a code which works in normal user mode. but fails to send request when lauched from service.
it is giving ERROR_WINHTTP_SECURE_FAILURE (12175) im using ssl and digest authentication.
here is my code..
m_hIntOpen = WinHttpOpen(L"HereIm", WINHTTP_ACCESS_TYPE_DEFAULT_PROXY, WINHTTP_NO_PROXY_NAME, WINHTTP_NO_PROXY_BYPASS, 0)
m_hIntConnect = WinHttpConnect(m_hIntOpen,m_oszDomain, INTERNET_DEFAULT_HTTPS_PORT , 0)
BOOL bResults = WinHttpAddRequestHeaders( m_hOpenReq,MY_REQUEST_HEADER,-1,
WINHTTP_ADDREQ_FLAG_ADD )
WinHttpSetCredentials (m_hOpenReq,WINHTTP_AUTH_TARGET_SERVER,WINHTTP_AUTH_SCHEME_DIGEST,m_oszUserName,m_oszPassword,NULL)
inHttpSendRequest( m_hOpenReq,WINHTTP_NO_ADDITIONAL_HEADERS, 0,
lpvPostData, dwcbPostData,
dwcbPostData, 0))
any solutions?????
thanx
gP
|
|
|
|
|
gP_t_gr8 wrote:
WinHttpSetCredentials (m_hOpenReq,WINHTTP_AUTH_TARGET_SERVER,WINHTTP_AUTH_SCHEME_DIGEST,m_oszUserName,m_oszPassword,NULL)
Are you sure m_oszUserName and m_oszPassword has correct values, when running as service ?
suhredayan There is no spoon.
|
|
|
|
|
yes. these are some predefined values..
|
|
|
|
|
Hello
I want to enter a name from the user in console based program. I used gets function as written below
char name[40];
cout <<"Enter Name "; (i also checked puts here)
gets(name);
cout <<"Enter age ";
cin>>age;
But it prints message "Enter Name " and then with out prompting me for name, it goes to next statement i.e. "Enter age ".
Can anyone tell me why this happens or please tell me any other way to get input in array on console screen.
Thanks
Aqeel A. Mirza
cout <<"We Believe in Excellence";
|
|
|
|
|
Imho it's best not to mix STL (cin , cout ) and standard (printf , gets , etc.) I/O. Try this instead:
char name [40];
printf ("Enter name: ");
gets (name);
char age [40];
printf ("Enter age: ");
gets (age);
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Limit the number of characters obtained from the stream that are to be put into the char array.
With gets, an error will occur when the number of characters entered is greater than the char array holder.
const int MAX_LENGTH = 20;
char szName[MAX_LENGTH];
cout << "Enter name: ";
cin.get(szName, MAX_LENGTH);
|
|
|
|
|
Hello
Thanks for reponse
When i use cin.get, program terminates without prompting me for other values
i.e. age, class, phone no.
Please tell me what i should do.
We Believe in Excellence
|
|
|
|
|
Sorry, I forgot to mention that the stream needs to be cleared. So, I wrote this bit of code and made it a static method.
This happens when you have a cin followed by another cin. I learnt about this recently as I too completed a similar task to yours. (Body of code was copied from another forum's thread)
// Purpose : Clear the Input stream
void ClearInputStream(istream& inputstream)
{
inputstream.clear();
while (inputstream.get() != '\n')
{}
};
|
|
|
|
|
Thank you, ddducky (Sorry! I do not know your name). This solves my problem.
cout <<"We Believe in Excellence"
|
|
|
|
|
Is there any message or virtual in MFC that asks the consumer "Can this control loose focus?" and sends the CWnd* or HWND of the control the user is trying to set focus to in the message or virtual?
I'm working on code where when the user leaves a control, the code needs to validate the control's data immediately. If the data is not valid, then a "bad user" messagebox shows and the control must retain focus. There is an exception though. If the user clicks on the "Cancel" or "Close" button or the "x" on the top right, then that's allowed because the user obviously wants to shut down the form so no validation is required.
But then it gets even more complex. The form has a dirty flag so if the form is "dirty", when the form shuts down, I have to ask the user if he/she wants to save the data. If the user clicks "Yes", then the control that previously had focus must be validated first. If it is invalid, then I have to set focus back to it.
From what I've researched, WM_KILLFOCUS is just a notification that the API sends in the middle of the focus change process. What I want is something that allows me to abort the focus change process completely.
I've put PostMessage code in my WM_KILLFOCUS handler to try to get around this but it gets really squirly and the logic just seems unstable. It gets really messy when the user tries to go from one property page to another on a property sheet.
Any ideas?
Peteman_R
Boise, Idaho
|
|
|
|
|