|
Thanky ravi for your reply ..
i tried the same code with a new project .. i have the same errors as i get before.. may be i may week in some basic concept i dont know ...
my errors are
f:\terrain\check\checkdlg.h(23) : error C2146: syntax error : missing ';' before identifier 'm_button1'
f:\terrain\check\checkdlg.h(23) : error C2501: 'CAutoRepeat' : missing storage-class or type specifiers
f:\terrain\check\checkdlg.h(23) : error C2501: 'm_button1' : missing storage-class or type specifiers
checkDlg.cpp
f:\terrain\check\checkdlg.h(23) : error C2146: syntax error : missing ';' before identifier 'm_button1'
f:\terrain\check\checkdlg.h(23) : error C2501: 'CAutoRepeat' : missing storage-class or type specifiers
f:\terrain\check\checkdlg.h(23) : error C2501: 'm_button1' : missing storage-class or type specifiers
F:\Terrain\check\checkDlg.cpp(77) : error C2065: 'm_button1' : undeclared identifier
Generating Code...
Error executing cl.exe.
check.exe - 7 error(s), 0 warning(s)
I know there is a small problem but i am really not able to figure it out..
please help me in this regard..
thanx in advance .
mfg,
kingsly
|
|
|
|
|
It's hard to know what's wrong without looking at your source code. If I were to hazard a guess, I'd say you probably forgot to #include the file containing the definition for CAutoRepeat .
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I add a new Win32 Application project, how can I use MFC in this project ? What files will I need to include ?
Thanks in advance.
|
|
|
|
|
Did you create it via AppWizard, or are you trying to retrofit an existing Win32 application to use MFC?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Yes, I create it via AppWizard. What files will I need to include to use MFC in current project ?
Thanks in advance.
|
|
|
|
|
When creating a Win32 Console Application project, step 1 of AppWizard asks if it supports MFC. There is no such option when creating a Win32 Application project. I would suggest creating a new MFC AppWizard (exe) project.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
When I build my project, I receive this error :
--------------------Configuration: Thread3 - Win32 Debug--------------------
Compiling resources...
K:\Thread3\Thread3.rc (146): error RC2104 : undefined keyword or key name: IDC_STATIC
Error executing rc.exe.
Thread3.exe - 1 error(s), 0 warning(s)
What is error IDC_STATIC ?
Thank you.
|
|
|
|
|
microsoftcertificate wrote:
What is error IDC_STATIC ?
It's defined as -1 in afxres.h .
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I did not modify it, but while it appeared this error ?
Thanks in advance.
|
|
|
|
|
I would hazards a guess and say that something in the project's .rc file, most likely a dialog template, was changed. Search the project's .cpp, .h, and .rc files to find references to it.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Can somebody tell me the difference between ON_NOTIFY and ON_NOTIFY_REFLECT messages and how to handle them...?
any information would be highly appreciated..
thanks
|
|
|
|
|
See here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
hi david...
thanks for the information...it helped a lot..
i would be really grateful if u can throw some light on the arguments passed to these ON_NoTIFY and ON_NOTIFY_REFLECT functions..
eg. NMHDR* pNMHDR, LRESULT* pResult
do i have to set LResult in my handles code....i am not clear about the LRESULT paramaeter..what does it stand for?????
thanks in advance
nitin
|
|
|
|
|
Read here and here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
i am making a client server application in which client will call system calls and send the information to server.
I want to store that information into database e.g Access using ADO.
Plz guide me what should i do?
Do i have to do serialization of data?
e.g From client i have to send the the computer name and user name to server. how will i do this ?
how will i serialize data?
how will i use ADO? I am newbie plz be aptient with me and also tell me examples as well
Thanks a lot
|
|
|
|
|
|
|
Is there a way to use cout<< or something like it without including iostream. I have a simple app with one cout statement and no inputs. The file is 5k without iostream included, but 260k with it.
Regards
Paul
|
|
|
|
|
use printf();
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
|
|
But the two requirements were "...to use cout<< or something like it without including iostream." Using printf() and including stdio.h satisfy both of those requirements.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Try this, if you are using Win API only:
INT CDECL ConPrintf (LPCTSTR lpszFormat, ...)
{
TCHAR szBuffer[1024];
INT iRet;
DWORD cbWritten;
HANDLE hStdOut = NULL;
va_list va;
va_start (va, lpszFormat);
iRet = wvsprintf (szBuffer, lpszFormat, va);
va_end (va);
hStdOut = GetStdHandle (STD_OUTPUT_HANDLE);
WriteConsole (hStdOut, szBuffer, iRet * sizeof (TCHAR), &cbWritten, NULL);
return iRet;
}
Usage is identical to wsprintf, but it writes to console output.
|
|
|
|
|
Hi,
I've noticed that GetOpenFileName with multi-select enabled returns the list of files with the last one you click at the front of the array. You can even see this in the dialog itself. This is fine if you select multiple files backwards!
E.g. Selecting file "01" and shift-selecting file "05" returns the following:
{"05", "01", "02", "03", "04"}
Is this a feature, a bug, or something I've setup wrong?
Thanks for any help guys,
Simon
|
|
|
|
|
srev wrote:
Is this a feature, a bug, or something I've setup wrong?
That depends on if it matters to what you are doing.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|