|
mrby123 wrote: It is something odd...
There's nothing odd about it. You are clicking the Post Message button instead of the Preview button.
mrby123 wrote: for (i=0;i {
After three times now, can you not see anything wrong with your code snippet?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
And your code actually compiles?
Very strange for loop.
Unless you did not copy your entire code snippet correctly I cannot see an index i increment
|
|
|
|
|
Did you even bother to preview your post before submitting it? Does it not look strange to you at all?
mrby123 wrote: fscanf( f_ptr3,"%s\n", ftitle[i]);
Try:
fscanf(f_ptr3, "%s\n", ftitle[i].GetBuffer(MAX_PATH));
ftitle[i].ReleaseBuffer();
Why use FILE* and fscanf() with MFC when CStdioFile is available.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Firstly, Thanks for your help. Your code works for me. I am not familar with MFC. I guess MAX_PATH is a system built variabler ? So I do not need to define it.
Why use FILE* and fscanf() with MFC when CStdioFile is available - I am hybrid my old c++ code of some meth calculations with MFC interface, so I get into these troubles.
Thanks a lots from your guys for lighting me up.
|
|
|
|
|
mrby123 wrote: I guess MAX_PATH is a system built variabler ? So I do not need to define it.
Correct. It's defined in windef.h .
mrby123 wrote: I am hybrid my old c++ code...
Perhaps you meant old C code. Same here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi i have create an activex. how to open it in browser ie internet explorer. im newbie to this activex. pls help me
|
|
|
|
|
You need to use the OBJECT tag in HTML. For ex. the following code will load the adobe flash player in internet explorer.
If you want to load you activex control, just change the following classid with your control classid.
<html>
<body>
<OBJECT height=150 width=150 align=middle classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>
<PARAM NAME="background" VALUE="transparent">
<PARAM NAME="BGCOLOR" VALUE="#CCCCFF">
</OBJECT>
</body>
</html>
|
|
|
|
|
I know this is not a serious warning, if you could even call it that, but it's annoying.
First-chance exception at ... Access violation reading location ...
Is there any way to find the cause and make the thing go away so that I can have my output window filled with something useful?
Waldermort
|
|
|
|
|
It may indeed indicate a serious problem. To find out what's causing it (VS 2005) tick the check box under Debug->Exceptions, Win32 Exceptions for c0000005 Access violation in the Break when Thrown column. Run your code and see where the exeception is being raised.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Thanks for that.
The exceptions are being thrown as a result of using the TreeView_xxx set of macros, using SendMessage instead seems to resolve the problem. Wonder why this is happening? Time to do some googling...
Waldermort
|
|
|
|
|
Hello Friends,
Can we put the Custom Icon in the Balloon Tool Tip instead of the Windows icons ??
If yes can you tell me how to do this ?
Thnnks in advance.
|
|
|
|
|
This is a wonderful place for me to learn programme.But sorry to my poor English.There are too many things I cannot read and too much I don't how to say.I wonder how long can I get used to English and be successgul in programming! sigh:
|
|
|
|
|
class="FQ"> bornunique wrote: There are too many things I cannot read and too much I don't how to say.
Doesn't matter that much...
- NS -
|
|
|
|
|
I think that you can read some of these[^] sample-articles.
Then the best way to learn is.... USE it!
Russell
|
|
|
|
|
Do you want to learning C++?
|
|
|
|
|
bornunique wrote: I cannot read and too much I don't how to say
your english seems to quite good. even better then me! you should begin with some sample / beginner article.. as if you go for advance article.. you surly lead your self in trouble. best place for you here would be http://www.codeproject.com/cpp
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I want to know that is mfc still popular now?Shall I make an approach to it?
who can give me some advice?
|
|
|
|
|
That's like asking a VB'er if 1 + 1 is 2
Waldermort
|
|
|
|
|
MFC is still popular, but no so much as C#. I still use it on a daily basis, mostly for real-time stuff. Anything .NET can't hold a flame to C++ speed wise.
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
Justin Perez wrote: MFC is still popular, but no so much as C#.
How in the world could you possibly know such a thing? Have you polled everyone, or at least a representative sample?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: How in the world could you possibly know such a thing? Have you polled everyone, or at least a representative sample?
From the weather report, of course!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
I agree with your point.
Though I have no doubt it is true, for the script kiddies outnumber the rest of us by ????, I don't know but it's a lot! For them C# is the new VB and like the old VB will of course be more popular with them than C++. If the noise here on CP is any indication the script kiddie numbers are growing at an alarming rate.
|
|
|
|
|
led mike wrote: If the noise here on CP is any indication the script kiddie numbers are growing at an alarming rate.
I once asked a transmission mechanic what make of vehicle he saw the most of in his shop. Without hesitation, he said it was Chrysler* vehicles. That could be interpreted in one of two ways: 1) Chrysler makes an inferior product, or 2) there are more Chrysler vehicles on the road than comparable models, so it stands to reason that more Chrysler vehicles will be in the shop than others. Therefore, GM could have an equally faulty vehicle, but if there are less of them on the road, statistically there will also be less of them in the shop, but that is no indicator that they are a better vehicle.
* The argument could be made for any make, not just Chrysler.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: That could be interpreted in one of two ways: 1) Chrysler makes an inferior product, or 2) there are more Chrysler vehicles on the road than comparable models
So that horrible analogy means that you can't tell if their numbers are growing by the posts here on CP? What about the comp.lang.C++ news group?
|
|
|
|
|
led mike wrote: ...you can't tell if their numbers are growing by the posts here on CP?
There may very well be an equal number of "C++" members but they are just not posting, or they are posting at a time when you and I are offline. My point is, you can't tell about one simply because of the apparent lack of the other.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|