|
The read only property isn't chacked.
What else could it be?
SnaidiS(Semion)
|
|
|
|
|
Semion_N wrote: http://img525.imageshack.us/img525/117/errorji2.jpg[^]
Is the .rc file read only?
|
|
|
|
|
Hmm yes I think so.
When I try to add timer event I get this error.
SnaidiS(Semion)
|
|
|
|
|
Semion_N wrote: When I try to add timer event I get this error.
delete your .aps and .ncb file and then try again
|
|
|
|
|
I tried but it didn't help.
SnaidiS(Semion)
|
|
|
|
|
ThatsAlok wrote: delete your .aps and .ncb file and then try again
<joke> and .dsp, .dsw too! </joke>
You love others not for what they are, but for what you are when you are with them. Others too love you not for what you are, but for what they can be when they are with you. People need not always do the right – they can and will go wrong too. But there has to be this trust that the wrong may be only in the action and not in the intention. Without the faith that the intentions of my loved one will be right, love will not survive. Starvation of love does not cease by receiving love, but ceases only by giving love. Above all, remember, you can never do or give enough for someone you love. - Frozen Thoughts
|
|
|
|
|
brahmma wrote: delete your .aps and .ncb file and then try again
<joke> and .dsp, .dsw too!
do you why .aps and .ncb file is created?
|
|
|
|
|
ThatsAlok wrote: do you why .aps and .ncb file is created?
From MSDN:
.aps -- The binary version of the current resource script file. This file is used for quick loading. The resource editor generates and uses a .APS file. This file contains a binary format of the resources.
.ncb -- The .ncb file contains ClassView browser information. If it is read-only at the time Visual C++ opens the project, ClassView is unavailable.
|
|
|
|
|
Nibu babu thomas wrote: From MSDN:
h he he
|
|
|
|
|
ThatsAlok wrote: Nibu babu thomas wrote:
From MSDN:
h he he
They made it, hence they know better.
|
|
|
|
|
brahmma wrote: delete your .aps and .ncb file and then try again
<joke> and .dsp, .dsw too!
Any Way! it will of much help too.. kill the tension before it kill you
|
|
|
|
|
I think, your issue is similar to reported here[^], and claimed fixed now(SP1).
Similarly, refer this[^] discussion.
|
|
|
|
|
OK,Ill try the SP1.
SnaidiS(Semion)
|
|
|
|
|
I downloaded and installed vs 2005 sp1 but it didn't solve the problem...
SnaidiS(Semion)
|
|
|
|
|
Can you try things, given in my second link ?
|
|
|
|
|
|
Semion_N wrote: http://www.uploading.com/files/HE1IXIZV/CDialogSK_demo.rar.html[^]
It requires some kind of login.
|
|
|
|
|
Good news for you ! Got the culprit.
Go to SkinDialog_DemoDlg.cpp . There is first line in the file as,
#using <system.dll> , remove that line. This line was causing problem, it is unnecessarily there.
Removing this line should solve your problem.
|
|
|
|
|
Oh, Thank you!
It worked fine!;P
SnaidiS(Semion)
|
|
|
|
|
|
I have c code which extracts the contents of the file word by word, I want to change it to C++ how to do it ?
C code :-
char words[length];<br />
<br />
FILE *fp;<br />
fp = fopen("D:\\demo.txt", "r"); <br />
<br />
while (fscanf(fp, "%s", &words)!= -1)
C++ Code:-
ifstream fin;<br />
fin.open("D:\\demo.txt", ios::in); <br />
<br />
while(fin) <br />
{<br />
<br />
}<br />
|
|
|
|
|
This should do the trick:
ifstream fin;<br />
fin.open("D:\\demo.txt", ios::in); <br />
char szBuffer[255];<br />
<br />
while(!fin.eof()) <br />
{<br />
fin >> szBuffer;<br />
}<br />
The >> operator will extract a string until a valid white space is found.
You have to be carefull about the size of your buffer ! if a word is longer than 255, then you'll have a problem.
See also this:
The extraction operation can be limited to a certain number of characters (thus avoiding the possibility of buffer overflow) if the field width (which can be set with ios_base::width or setw) is set to a value greater than zero. In this case, the extraction ends one character before the count of characters extracted reaches the value of field width, leaving space for the ending null character. After a call to this extraction operation the value of the field width is automatically reset to zero.
|
|
|
|
|
Thanks Cedric Moonen code is working & also for the information.
|
|
|
|
|
Cedric Moonen wrote: You have to be carefull about the size of your buffer ! if a word is longer than 255, then you'll have a problem.
Or just use a string variable instead.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I checked in the doc of the ifstream (I never use it to read strings so I didn't) and I couldn't find an operator overloading for a std::string. Are you sure it works ?
|
|
|
|