|
Member 4709444 wrote: As CListCtrl looks to complx for me for my small app...
How can a list control be too complex here...
Member 4709444 wrote: There I only included this project for the colors: Adding color to Listview with customdraw[^]
...but not here? I'm not convinced you know what it is that you do want.
The XListCtrl link I provided you required you to: 1) add two files to your project, 2) replace CListCtrl with XListCtrl , and 3) call the control's SetCheckbox() method for those columns you want to contain a checkbox. It does not get any simpler.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I would like some example code in visual c++ for reading a access file . Pass a file name and receive the data back.
An example would work really well.
thanks.
Merlin Vilhauer
merlin Vilhauer
|
|
|
|
|
|
I will be given a char *text="cat sad cattle saddle"
I need to check if my char *pattern="ca" match any of the text
there are rules like "." matches any character
[rt] and as long as it match one of the character in the []...
this is crazy, anyone can sugguest a function in c++ that will do the job?
|
|
|
|
|
ayeosq wrote: ...anyone can sugguest a function in c++ that will do the job?
The string class has many methods. Have you looked? The CRT has functions like strstr() that might also interest you.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Your idea seems to be basic regular expressions evaluation system.Read this article how to build your own regex parser.
Life is a stage and we are all actors!
|
|
|
|
|
hi
I need the help for , How to connect the sql server using MFC
Thanks !
~~~~~~~~Raju~~~~~~~~~~~~~
|
|
|
|
|
Using CDatabase and CRecordSet is possible solution but there is some other ways too.There is plenty of samples at codeproject how to use these classes just see here and and here.
Life is a stage and we are all actors!
|
|
|
|
|
Well, you could start by researching ODBC, ADO, CDatabase , and CRecordset . That should be enough to then generate some specific questions.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
#include <stdio.h>
#include <stdlib.h>
#include <dos.h>
#include <conio.h>
main( )
{
float octave[7]={130.81,146.83,164.81,174.61,196.220,246.94};
int adn;
while( !kbhit( ) )
{
adn = random( 7 );
sound( octave[ adn ] * 10 );
delay( 190 );
nosound( );
}
}
|
|
|
|
|
Are we supposed to guess what the linker error is?
LNK2019 is a self-explanatory error message.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Could you please:
1) Format the code properly and use the code block tags
2) Describe what the problem is
3) Give the exact error message
|
|
|
|
|
It looks like you missed to link with a library [^].
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]
|
|
|
|
|
I think the library path set in the IDE is not correct.
Величие не Бога может быть недооценена.
|
|
|
|
|
|
|
|
I've got quite a few ActiveX Controls that have been ported to VS2008 from VS 6 and have been tasked with implementing multi-lingual support, specifically Shift-Jis. In the past we had a separate build machine, project and resource files on a Japanese version of Server 2000 and VS 6.0 that we used to build our Shift-Jis versions. While I could go and set this up I was thinking that there has to be an easier way to accomplish this. Does anyone have any pointers or links to lead me in the right direction. It's been a rather fruitless search so far but I have the nagging feeling that I'm not looking for the right things or with the right terms.
|
|
|
|
|
I am using VC++ 6.0 Enterprise edition & using Access database. I would need to extract the few data from the database & show this data in preview and then print the data in some format. The print page could be more than 1 page.
Could you provide some literature on above or some sample code for the same?
|
|
|
|
|
You know the Code Project is your development resource...[^]
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]
|
|
|
|
|
diptipanchal wrote: I would need to extract the few data from the database...
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Dear All,
I am using CEdit to display a text in an array like below :
wchar_t szData[5];
szData[0] = 'a';
szData[1] = 'b';
szData[2] = 'c';
szData[3] = '\r';
szData[4] = '\0';
m_EDIT.ReplaceSel(szData);
But, when I display the contents, the CR is displaying as boxes, even I tried with '\n' and the result is the same. Since, it is displaying as a box, further text is not displayed on the next line and it is printed in the same line with boxes after every "abc". Please help to solve the issue.
modified on Tuesday, August 25, 2009 5:15 AM
|
|
|
|
|
First, there's an error in your code: you are not increasing the index. Is it only a typpo ?
Second, you need to have both the carriage return and newline characters (I don't remember in which order, you'll need to test it).
|
|
|
|
|
I am really sorry Cedric Moonen. It is a typing mistake in my previous message (now corrected it).
Cedric Moonen wrote: Second, you need to have both the carriage return and newline characters
I agree with your comment, when I use \r\n then it is displaying in the nextline but my real problem is that my input text will come like the following :
"abc\rxyz\rpqr\r"
|
|
|
|
|
Then you will need to convert it so that all the \r sequences are replaced by \r\n sequences. std::string and CString have functions to do that.
|
|
|
|