|
Did you try specifying your obj as external library?
P.S. I assume those obj files were generated by MS compiler
|
|
|
|
|
Both of your suggestions have worked. Thank you both very much.
John
|
|
|
|
|
Hi,
1/I use CCalendar (OCX)
I would like to disable the calendar but it doesn't work.
Can you help me ?
2/ I would like to use cmonthcalendar but when I click to a day when I show the date, the date is wrong.
Why ?
Best Regards
youssef
|
|
|
|
|
This is a simple question, I'm sure you have the answer, help me out please.
I have a List control in my dialog, to which I associate a member variable of CListCtrl. The style of this control is:
General: Visible, Tab stop
Styles: View-Report, Align-Left, Sort-None,
Single Selection, Edit Labels, No column header, Show selection always
More Styles: Border
Extended Styles: Static edge.
In the OnInitDialog, I had the following:
m_myListCtrl.InsertItem(0, "item 0");
But when the dialog is displayed, nothing in the list control!
What am I missing?
|
|
|
|
|
sigh, it turned out that I have to do more overhead work:
m_myListCtrl.InsertColumn(0, "First Column", LVCFMT_LEFT, nWidth);
m_myListCtrl.InsertItem(0, "my item");
beats me!
|
|
|
|
|
hi,
this is what we do.. as
m_List.InsertColumn( // Ask Mfc to create/insert a column
0, // This is the rank/order of this
// particular item
"Name", // The caption we want for this header
LVCFMT_LEFT, // The relative position we want the
// items under this header to have
100); // The width we want for the items under
// this header
m_List.InsertColumn(1, "Profession", LVCFMT_CENTER, 80);
m_List.InsertColumn(2, "Fav. Sport", LVCFMT_LEFT, 100);
m_List.InsertColumn(3, "Hobby", LVCFMT_LEFT, 80);
and to add items..
provide some items to display under the headers:
int nItem; // This integer will be used to identify the
// header item we are dealing with.
// Give a name/caption to an item to display under the first header
nItem = m_List.InsertItem(0, "Sandra");
// Create a caption for the corresponding headers.
m_List.SetItemText(nItem, 1, "Singer");
m_List.SetItemText(nItem, 2, "HandBall");
m_List.SetItemText(nItem, 3, "Beach");
i hope so you get..why you were getting an error..
cheers
Himanshu
|
|
|
|
|
Thank you, Himanshu. I got it now.
This list control is more complext to use than those combo box and edit control.
|
|
|
|
|
Yes first you have to insert columns, then you can insert rows as items. Finally you can set each columns values for that new item : InsertColumn, InsertItem, SetItem for each column...
Hope it helps,
JM
Earth > Europe > France > Lyon
|
|
|
|
|
Hi
I'm having problems with splitter windows and transferring data between the panes. I have split my window in 3, one a CEditView, and the other two are CViews. Now I want to transfer the text I type from the CEditView to the CView, but I'm stuck with this! What should I do???
Regards
Jef
|
|
|
|
|
|
I don't know if i messed up with the code but no UpdateAllViews doesn't seem to work.. I'm even unable to get the document from my custom CView classes, though i included the *doc.h!!!.. .. I'm thinking about something as i'm writing: does i need a document for each view i create??? It can't be, right??
Jef
|
|
|
|
|
Use the CDocument as a bridge between all views (provide it with some members for this kind of info) and use UpdateAllViews .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
hi all,
i have to develop a remote shell like Windows Explorer
but it should have HTML interface..
please help me..
|
|
|
|
|
Please ask a more detailed question and we will help you.
|
|
|
|
|
actually the problem is i don't know how
call shell funtions such changing directory..
creating files .etc..
|
|
|
|
|
|
I have just completed 145 Gnu makefiles that allow anyone
with the free MinGW tool set to compile and execute all of
the example programs which Charles Petzold describes in his
"Programming Windows Fifth Edition" book, which is the
standard reference book on Microsoft's WIN32 API.
I freely distribute these 145 makefiles in a .ZIP file,
along with an installation program that will copy them into
Petzold's directory structure, from my web page at:
http://www.computersciencelab.com/Petzold.htm
Only 5 of the 145 programs require user intervention to
compile with the Gnu compiler, which is not bad for porting
that many programs to a new compiler, especially given
Microsoft's lax adherence to standards.
You are free to use these makefiles with whatever version
of the MinGW tools you prefer, but I created them for use
with the MinGW based C++ integrated development environment
that is part of my computer programming curriculum.
Petzold's book is expensive enough, so it's great that these
makefiles and the MinGW tools mean that you don't need to send
another $100 Microsoft's way to purchase their Visual C/C++
compiler.
John Kopplin
|
|
|
|
|
Excellent forum to place this advertisement. 90% of us do not like to work with VC++ (Not) .
|
|
|
|
|
Well actually, Visual C++ is my primary development tool,
and that is why I am familiar with this web site and use
it as a resource.
But even those who have no interest in the Gnu compiler
may still be interested in my list of errata for the
Petzold book, which more than doubles the size of the
errata list that Petzold shows on his web site.
John Kopplin
|
|
|
|
|
It has nothing to do with that, he's simply offering people an option. Some people can't afford VC, so what he has done is given them the abbility to compile the samples without having to own a copy...
cheers,
-B
|
|
|
|
|
I would like to enumerate the netbios names of a machine.
nbtstat -A IPAddress command can do this very easily. It displays all the netbios names.
I searched msdn and codeproject but I could not find an example.
How can I do this ? Is there an api or do I need to craft a UDP packet by myself and send to port 137 of the target machine ?
Thanks
Orcun Colak
|
|
|
|
|
Hello All,
I have a requirement to read Foxpro dbf files without using ODBC or any other sane methodology, I remember a long time ago I did this in C using a structure but It's so long ago I've forgotten. What I've tried so far is creating a class ( you might gather my C & C++ has gathered dust ) as below but it is not satisfactory ( fields overflowing etc... ). The sample table I've been using has three fields, clm_ref c(10), name c(50) and salary n(15,2),where c(2) is a character field of 2 chars and n(15,2) is a numeric field of 12 digits with precision of 2, here's what I've got so far.
Class Record
{
char filler[1]; */ required for deleted field */
char clm_ref[10];
char name[50];
char salary[15];
void RecordGetData(ifstream &);
};
Record::RecordGetData(ifstream f_in)
{
f_in.read((char*) this,sizeof(*this));
}
int main()
{
Record Claims;
ifstream ifile;
ifile.open("mydata.dbf");
DBF_HEAD dbf_head;
ifile.read((char*) &dbf_head,sizeof(DBF_HEAD)); */ Header info */
ifile.seekg(dbf_head.data_offset,ios::beg); */ seek to data offset*/
Claims.RecordGetData(ifile);
cout << "Claim ref " << Claims.clm_ref << endl;
}
While Claims.clm_ref contains the clm_ref data it also contains part of the name, I'm lost any ideas much appreciated
regards
Pete Kane
Pete Kane
|
|
|
|
|
CodeBase [^] acceptable?
"Well I'm just a hard working corporate slave, my mind should hate what my body does crave.
Well I'm just a humble corporate slave, driving myself into a corporate grave"
Corporate Slave, SNOG
|
|
|
|
|
Try googling for xbase. IIRC it can handle FoxPro files also.
|
|
|
|
|
okay thanks chaps, but I really would like to code this myself have you any idea as to why my approach doesn't work ?
cheers
Pete Kane
|
|
|
|