|
Thanks, I'll work on this :]
I'll post up some code later on when I've got it working.
|
|
|
|
|
On a side note: why don't you use some existing class for that ? std::list or std::vector ?
|
|
|
|
|
I didn't know they existed! :P
If I can't work this out then I'll take a look at them.
|
|
|
|
|
Sauce! wrote: If I can't work this out then I'll take a look at them.
You should definitively take a look at them (maybe not for this project but at least for the next one). I agree, it looks quite difficult at a first sight but the STL is very usefull. There are some good container classes (list, vector, map, ...) which have been tested by a lot of people. So, you don't need to reinvent the wheel and come out with something that need testing, debugging and is not flexible enough to be reused.
|
|
|
|
|
I didn't take a very in-depth look at them but from what I saw I didn't think It would be as easy to do with them what I wanted but I'll take another peek at it tonight and see what I can get out of it.
|
|
|
|
|
Hi,
I need to add many buttons to groupbox and it should get the scrollbar if the buttons dont fix in to the groupbox. In .NET we can do it through Panel control. But please tell me how to do it in MFC.
|
|
|
|
|
Anybody plz help to know the method of reding very fast from mshflexgrid in MFC.The grid contains very huge string .the total rows in that is maximum of 25000.Anybody plz supply a solution for this .
vijith vijayan
|
|
|
|
|
You better make a data model object which is only displayed in the grid.
Greetings from Germany
|
|
|
|
|
Thanks for the reply .Could u plz elobrate your solution.i didnt get it .If possible provide me a sample code .
vijith vijayan
|
|
|
|
|
hi ,
Using VC++.....i was able to read data file with different columns..but i want to extract each individual column for furthur processing...my data files are tsv format(tab separated).
my data in tsv is like this
TheTime Heart_Rate spo2 belt acc_x acc_y acc_z temp
3.956.860.418.777 1.025.091 0.9678570 -0.7526630 -1.448.000 -1.383.487 -1.103.595 -2.810.811
3.956.860.418.783 1.024.589 0.9676060 -0.8066331 -1.451.012 -1.383.487 -1.103.595 -2.812.317
3.956.860.418.789 1.024.589 0.9676060 -0.9462026 -1.447.247 -1.384.240 -1.106.607 -2.810.560
3.956.860.418.795 1.024.338 0.9673550 -1.076.986 -1.446.996 -1.385.746 -1.102.591 -2.816.082
how do i go about extracting each column??
thnkx
|
|
|
|
|
If you're using MFC then have a look at CString::Tokenize [^] method. On the other hand, without MFC , strtok [^] maybe the way to go.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
If you are using MFC, have you looked at AfxExtractSubString() ?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
thank you pallini and david
|
|
|
|
|
I wish to capture some live video and preview, but PlayVideoCap example that i downloaded from Windows SDK, (DirectX) just doesn't do the job. It compiles and there is no error messages. video preview show black screen,although avi frame capturing works fine.. and video capture with VideoCap works. I wish to capture from the Capture Card as well and currently using a surveillance camera.
I am beginner in video programming C++. What possibilities of mistakes there may be? Any advice please! Any other sample codes??
Cheers,
kel
any help will be appreciated.
|
|
|
|
|
go to this link and ask for help "www.google.com"
|
|
|
|
|
How do I pass parameter to member function from main()
class test
{
public:
typedef enum
{ FileModeText,
FileModeBinary
}FileMode;
void func(FileMode);
};
int main(int argc, char* argv[])
{
test tst;
tst.func(..)/*how do I pass here fo type enum.I would like to pass FileModeText as parameter*/
return 0;
}
|
|
|
|
|
Somethign like:
test::FileMode fMode = test::FileModeTest;<br />
tst.func( fMode );
should work. What exactly is the problem, compiler error, you're getting?
"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)
|
|
|
|
|
Hi, Thanks for your quick answer. I tried same. Now I tried with your solution. Still it is not working.I am getting following error:
error LNK2001: unresolved external symbol "public: void __thiscall test::func(enum test::FileMode)" (?func@test@@QAEXW4FileMode@1@@Z)
Debug/single.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
|
|
|
|
|
There is no definition of test::func in posted code (there is only its declaration). Did you forget it?
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Oh! Yes.Thanks. It is working now.
|
|
|
|
|
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
This is telling you that the Linker can't find the implementation of test::func( test::FileMode ); the function you're trying to call. T
he simple cause of this might be that you haven't actually written it yet, more complex possible causes include that it exists somewhere the linker can't find it or the linkers incremental stupidity counter has wrapped around its 16bit vlaue limit and you just need to give it a good kicking and make it try again.
"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)
|
|
|
|
|
Oh!OOps my oversight.Thanks. It is working now.
|
|
|
|
|
I try to write
CString stringLiteral = _T("this is a string containing "" ");
but the compiler give me "concatinating mismatched string" error
Please help
thank in advance
|
|
|
|
|
easily,
before you want to use quates, place \
example :
("this is a string containing \"\" ");
thanks is it...
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|