|
Hello!!
I want to display text file.
Thanx a lot
"If you change then change for the good."
|
|
|
|
|
Hello
For Text File you can use CEdit Control with Multiline option set.
Or if your file size is large and you want some extra thigs to display like changing the colour of text ...
you car use RichEditControl.
Regards
Anil
|
|
|
|
|
Hi ,
I want to display vertical text in a CStatic text box which has the word wrap facility.
can anyone help me with an example.
Thanks,
Gayathri
|
|
|
|
|
Hi
Try to find out at this site...
http://www.codeguru.com/Cpp/controls/staticctrl/article.php/c2927/
Regards
Anil
|
|
|
|
|
Hello Friends,
Can any one tell where I can find the study materials (on the internet) for function pointer in C and C++ ?
How function pointer are used in the implementation of callback function in c and c++?
Where I can complete details of function pointer on the internet(where I can freely download demo codes for function pointers in c OR CPP).
I would be gratefull if anybody can help me in this matter
From
Philip.
-- modified at 4:26 Monday 6th February, 2006
|
|
|
|
|
|
why don't you ask here particuliar questions about function pointers ?
there are definitely several C/C++ experts which can help much than reading lines on the internet...
for demos also, there are plenty of examples on CodeProject too...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
|
Hi Guys,
First of all i really thank to all as i got all the answers to my doubts.
This time i have some interesting problem. In my projects thre are more than 300 classes. But in the class view it's only showing 1 class. Another interesting the same code when it was in the original directory its showing all the classes but when i placed the same code in a different folder it's showing only one class. My team mates are also facing the same problem. Please help me if you know the reason.
|
|
|
|
|
Sometimes Visual C++ 6 class view dies, and you need to make it look again at your classes.
Close visual c++
using taskmanager, kill the msdev process if it doesn't go away quickly.
go to the location of your project.
delete the .ncb file. (eg. myproj.ncb)
rerun vc++.
expand a project in the class view. see the "1983 files to go" line get smaller
enjoy all your classes!
Of course, this applies to v6. I have no idea about 2003-2005, etc.
Iain.
|
|
|
|
|
|
I want to implement a function like this.drag an item from a ListCtrl to system-shell (I mean the explorer ) ,when the item is dropped I wann get the destination where it 's drogged to (I wann get the full path)? just like WinRar,file can be dragged from a compression package to wherever the user indicate .
not need to offer me the whole code,just give me the vital one.
thanks ahead.
|
|
|
|
|
what ever technology does winRar use ?
|
|
|
|
|
Hi all
i have a problem in retrieving primarykeys form microsoft access database (by catalog2 example offered by msdn help),
when i request the SQLPrimaryKeys API function, no results returned to me, and when i called the SQL_API_SQLPRIMARYKEYS API to be sure that the ODBC driver support the SQLPrimaryKeys function, the result was that the system doesn't support this API function (ODBC version 3.x)
If any one faced this problem, please inform me who can i solve it
|
|
|
|
|
I subclass an Edit Control(whose Id is IDC_quantite) by Cnumeric(class that control if the caracters are numerics or not).
How can I activate the OnKillFocus message related to this edit control ?
I learn my self
|
|
|
|
|
|
I know that i must use WM_KILLFOCUS but how to do it from my Cnumeric class because when I write now i am writting on object of class Cnumeric but how can I send a message to the first class CEdit
|
|
|
|
|
I have try fromCnumeric class this but it not working
void CNumericEdit::OnKillfocus()
{
CWnd::GetParent()->PostMessage(WM_KILLFOCUS,0,0);
}
|
|
|
|
|
I guess you would like to call the base class handler.
Replace
CWnd::GetParent()->PostMessage(WM_KILLFOCUS,0,0);
With
CEdit::OnKillFocus();
Owner drawn
Jesus Loves
|
|
|
|
|
If it's true, this message will be sended to all CEdit, it's not possible to send it to exactly one object CEdit where i prefere ?
|
|
|
|
|
It won't goto all but only to the corresponding CNumeric's base class i.e. CEdit . It won't affect any other.
Owner drawn
Jesus Loves
|
|
|
|
|
csUserName and csComputerName contain valid entries. As soon as the instance of a Recordset Class is created, both are erased. Interesting: The CString Object csSqlStatement is not erased.
code sniplet:
CString csComputerName; // Speichert den Hostnamen des PCs
CString csUserName; // Speichert den UserNamen ( Windows)
CString csTimeNow; // Speichert die Uhrzeit
CString csConnectionString; // Verbindungs Daten
// Hole aktuelle Zeit
COleDateTime coTimeNow(COleDateTime::GetCurrentTime());
csTimeNow.Format( "%04d.%02d.%02d %02d:%02d:%02d", coTimeNow.GetYear(),
coTimeNow.GetMonth(),
coTimeNow.GetDay(),
coTimeNow.GetHour(),
coTimeNow.GetMinute(),
coTimeNow.GetSecond());
// Hole Hostnamen
DWORD dwHostLength = MAX_COMPUTERNAME_LENGTH + 1;
GetComputerName( csComputerName.GetBuffer( 0), &dwHostLength);
// Hole UserNamen
DWORD dwUserLength = UNLEN + 1;
GetUserName( csUserName.GetBuffer( 0), &dwUserLength);
// Instanz zur Datenbank aufbauen
csConnectionString = "DSN=ODR_CRM;UID=ODRGMBH;PWD=origin";
m_pDB = new CDatabase();
if( m_pDB->OpenEx(csConnectionString, CDatabase::noOdbcDialog))
{
// We´re connected to the database
}
else
{
// we have a problem connecting to the database
}
// !!!!!
// ! Next statement will erase csComputerName and csUserName !
// Access to Class Protokoll Table
m_pProtocol = new CProtokoll( m_pDB);
m_pProtocol->Open(); // ready to use
|
|
|
|
|
You have to pass a length to CString::GetBuffer() . By passing 0, you're allocating a buffer of 0 bytes to receive the computer name in, but telling GetComputerName() there is actually "dwHostLength" bytes. That's just asking for trouble. Similarly for the user name.
Also, when you call GetBuffer() , you have to call ReleaseBuffer() afterwards. Put in the call to ReleaseBuffer() straight after the call to GetComputerName() (and GetUserName() ).
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Thanks a lot ! Changed it into:
// Hole Hostnamen
DWORD dwHostLength = MAX_COMPUTERNAME_LENGTH + 1;
GetComputerName( csComputerName.GetBuffer( MAX_COMPUTERNAME_LENGTH + 1), &dwHostLength);
csComputerName.ReleaseBuffer();
// Hole UserNamen
DWORD dwUserLength = UNLEN + 1;
GetUserName( csUserName.GetBuffer( UNLEN + 1), &dwUserLength);
csUserName.ReleaseBuffer();
and now it works.
|
|
|
|
|
Glad to help. BTW, you could just use dwHostLength and dwUserLength in the calls to GetBuffer() instead of computing the length twice. It's a bit safer if you change the calculation later and forget to change both places...
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|