|
Surviving the Release[^] is certainly the best article I read over here about such problems arising when migrating to Release mode compilations...
|
|
|
|
|
Thanks a lot for the good link
|
|
|
|
|
the usual error is an uninitialized variable or pointer (NULL)
|
|
|
|
|
Hai,
Iam working in EVC++ in a project,i got a error as follows:
Error : No FPM Selected.
To rectify it i gave the corresponding line:
# define FPM_ARM in the header file.
after that for all the files it showing this errors:
error C2143: syntax error : missing ')' before '{'
error C2059: syntax error : ')'
error C2143: syntax error : missing ';' before '{'
error C2143: syntax error : missing ')' before ':'
error C2290: C++ 'asm' syntax ignored. Use __asm.
can anyone please suggest me how to overcome this error..
Thanks in advance
Harshadha
|
|
|
|
|
including in everyfile a wrongly written header ?
|
|
|
|
|
hai,
but i didnt add any header file ..
only i added the macro definition alone.
then why it is coming..any suggestions to rectify it.
|
|
|
|
|
Hello all
I have made a Sdi application, while running my application the exe icon in task bar n appliation window is not coming correct like it shows a floppy symbol instead of one specifed by me...
How to remove this problem
|
|
|
|
|
Please refer this[^].
Regards,
Paresh.
|
|
|
|
|
The following code is used to convert an item identifier list to a file system path.
LPNMLISTVIEW phdr = NULL;
lparam is assigned to phdr with cast.
CListCtrl lc;
lc.Attach(phdr->hdr.hwndFrom);
LPCITEMIDLIST pidl = (LPCITEMIDLIST) lc.GetItemData(phdr->iItem);
SHGetPathFromIDList(pidl, str);
But SHGetPathFromIDList returns FALSE and str has nothing.
Any error in code?
plz help me.
Thanks.
|
|
|
|
|
Hi,
Maybe your buffer is not big enough or pidl may not be a valid LPCITEMIDLIST.
In case str is a CString you should allocate a buffer first being MAX_PATH in size.
|
|
|
|
|
Optimus Chaos wrote: In case str is a CString you should allocate a buffer first being MAX_PATH in size.
its allocated MAX_PATH.
Optimus Chaos wrote: pidl may not be a valid LPCITEMIDLIST.
Ya, pidl is NULL. But pidl is NULL only in Vista not in XP.
Any Solution.
|
|
|
|
|
Please refer this[^] for more information on Vista.
Regards,
Paresh.
|
|
|
|
|
BackAgainInDoom wrote: LPCITEMIDLIST pidl = (LPCITEMIDLIST) lc.GetItemData(phdr->iItem);
Where do you call SetItemData() ? Since the thing being returned by GetItemData() is not a valid PIDL, the place to look is your SetItemData() call.
|
|
|
|
|
Hi.
When I created SDI, I have uncheck "Document/View architecture" as I am following this tutorial: http://www.codeproject.com/useritems/SplitWindow.asp?df=100&forumid=335662&select=1996907[^]
After I have done the splitter, I add a new class, C3D_VectorDoc, with CDocument as the base class. However, when I use this new class like this: C3D_VectorDoc* pDoc = GetDocument() and compiled, it show me this error: 'C3D_VectorDoc' : undeclared identifier. How can i declare this identifier? Thx.
|
|
|
|
|
|
maybe you just have to #include "3D_VectorDoc.h"
|
|
|
|
|
hello sir,,
i am using (CThumbCtl1 class) microsoft component .. i created one object of this
class in header file (ListView Class) afterthat iam creating thumbnails on view using member function that is my function ... but it is giving the error while Creation time of thumbnails...
this is my
int CListFormView::OnCreate(LPCREATESTRUCT lpCreateStruct)<br />
{<br />
if (CFormView::OnCreate(lpCreateStruct) == -1)<br />
return -1;<br />
for(int i=0;i<14;i++)<br />
{<br />
if(!m_Thumb[i].Create(NULL,"strFileName",WS_CHILD|WS_VISIBLE,CRect(10,10,150,150),this,1000+i,0 ))<br />
{<br />
MessageBox("cant Create Thumb");<br />
}<br />
}<br />
j=0;<br />
return 0;<br />
}<br />
<br />
void CListFormView::DrawThumbnails(CString strFileName)
{<br />
<br />
if(!m_Thumb[j].displayFile(strFileName))<br />
{<br />
m_Thumb[j].displayFile("D:\\destpreview.bmp");<br />
}<br />
m_Thumb[j].BeginWaitCursor();<br />
<br />
<br />
j++;<br />
}
Regards,
Srinivas
|
|
|
|
|
how to get function prototype of the system dll
and to use in my appliction.
pls help me
|
|
|
|
|
|
induvijay wrote: how to get function prototype of the system dll
if it system dll.. you can fin info related to in MSDN
"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
|
|
|
|
|
Hi there,
i got a problem that i could not solve.Plz help me!!
fatal error C1057: unexpected end of file in macro expansion
Error executing cl.exe.
ON_COMMAND_RANGE(IDC_Pin2,IDC_Pin3,IDC_Pin4,IDC_Pin5,IDC_Pin6,IDC_Pin7,IDC_Pin8,IDC_Pin9, ChangePin();
ON_COMMAND(IDC_Pin14, ChangeControl();
ON_COMMAND(IDC_Pin16, ChangeControl();
ON_COMMAND(IDC_Pin17, ChangeControl();
ON_COMMAND(IDC_Pin1, ChangeControl();
|
|
|
|
|
missing right parenthesis :
ON_COMMAND_RANGE(IDC_Pin2,IDC_Pin3,IDC_Pin4,IDC_Pin5,IDC_Pin6,IDC_Pin7,IDC_Pin8,IDC_Pin9, ChangePin());
ON_COMMAND(IDC_Pin14, ChangeControl());
ON_COMMAND(IDC_Pin16, ChangeControl());
ON_COMMAND(IDC_Pin17, ChangeControl());
ON_COMMAND(IDC_Pin1, ChangeControl());
|
|
|
|
|
hi thanks but,it got worse.I don't know why.I'm new in C++.Before only got 1 error.Plz help me.....
(64) : warning C4002: too many actual parameters for macro 'ON_COMMAND_RANGE'
(64) : error C2101: '&' on constant
(64) : error C2440: 'type cast' : cannot convert from 'const int' to 'void (__thiscall CCmdTarget::*)(unsigned int)'
There are no conversions from integral values to pointer-to-member values
(64) : error C2059: syntax error : ';'
(65) : error C2447: missing function header (old-style formal list?)
(65) : error C2143: syntax error : missing ';' before ','
(66) : error C2447: missing function header (old-style formal list?)
(66) : error C2143: syntax error : missing ';' before ','
(67) : error C2447: missing function header (old-style formal list?)
(67) : error C2143: syntax error : missing ';' before ','
(68) : error C2447: missing function header (old-style formal list?)
(68) : error C2143: syntax error : missing ';' before ','
(70) : error C2447: missing function header (old-style formal list?)
(70) : error C2143: syntax error : missing ';' before '}'
(70) : error C2143: syntax error : missing ';' before '}'
(70) : error C2143: syntax error : missing ';' before '}'
(134) : error C2143: syntax error : missing ';' before '}'
(134) : error C2143: syntax error : missing ';' before '}'
(134) : error C2143: syntax error : missing ';' before '}'
(139) : error C2143: syntax error : missing ';' before '{'
(139) : error C2447: missing function header (old-style formal list?)
(152) : warning C4390: ';' : empty controlled statement found; is this the intent?
(156) : error C2181: illegal else without matching if
(167) : error C2601: 'OnPaint' : local function definitions are illegal
(317) : fatal error C1075: end of file found before the left brace '{' (167)' was matched
Error executing cl.exe.
ParallelPort.exe - 23 error(s), 2 warning(s)
|
|
|
|
|
well if you'new to c++, first lesson : always focalize on first error in log !
warning C4002: too many actual parameters for macro 'ON_COMMAND_RANGE'
on_command_rang only take 3 parameters as i can remember : first is the first ID of the range, second is the last id of the range, and third is the handler function
|
|
|
|
|
Thanks but i still don't get it.Can u pass me ur email so that i can send u my sourcecode.
|
|
|
|