|
That is more involved than I was anticipating, and am not sure how long the file will take to write. Bringin up EXCEL can take either a few seconds or longer, and the file writing varies as well. Thanks for the reference.
|
|
|
|
|
Can you explain a bit clear ?
Do you need progress dialog kind of thing ?
|
|
|
|
|
No, just a pop up at the start of the file writing routing saying 'Writing the XLS file', and then have it closed by the program after the file is written. Thanks.
|
|
|
|
|
You could use a modeless dialog window.
Create/show it before the operation, destroy it after the operation completes. Same thing
as many (most?) progress window implementations, just simpler.
Mark
|
|
|
|
|
|
Sorry for stupid qestion..
In MFC dialog based applications I used WM_INITDIALOG message handler to do various stuff (setting CListCtrl columns etc.).
Now I`ve created an SDI MFC application with CFormView as base class. The closest message handler I can find here is WM_CREATE, which doesn`t suite my needs (it gets called to early - m_listctrl.InsertColumn() fails because there is no m_listctrl at this time).
Please help!
Which message handler do I use here?
-- modified at 11:15 Sunday 28th January, 2007
|
|
|
|
|
Makakuin wrote: Which message handler do I use here?
See OnInitialUpdate .
|
|
|
|
|
I`ll check it out! Thanks!
|
|
|
|
|
prasad_som wrote: See OnInitialUpdate.
That must an MFC thing.
To the op:
WM_CREATE and WM_CREATEDIALOG are sent during the call to CreateWindow() and CreateDialog(). The window is not created until after these messages have been processed. So it's not the best of places to initialize window dependent data.
One method I often use, from the WM_CREATE handler, call PostMessage() with your own WM_APP + XXX message. This is guarenteed to be the first message you get making it perfect for setting any data.
|
|
|
|
|
WalderMort wrote: That must an MFC thing.
Yes, it is.
OP is using MFC SDI application.
|
|
|
|
|
I would like to port one of my Visual Studio 6 application to Visual Studio Express 2005. I would like to be able to use Viusal Studio Express 2005 because I can't shell the money that is required to purchase the full edition of Visual Studio since the projects I am working on are mostly personal projects.
I have looked at Visual Studio Express 2005 and I discovered that it does not support MFC. My application Is fairly small in size and complexity. One dialog box with a menu. The main function is to send and receive data on the serial port when the user clicks on a button. I have started looking around for how I can port my app and I figured maybe using something like wxWidgets would make sense for the GUI part of the app. Now, I don't know what I should use for the serial communications aspects of my app. I need to be able to send data asynchronously. The other aspects is the use of some base functions for data manipulation. For instance, I am using CMap to store data in memory. My understanding is that these functions are not availalble anymore in Visual Studio Express. What can I use to replace these functions? STL? Is there an open source version of it that would work with Visual Studio Express?
Can someone give me pointers?
I do not want to use Managed code, because I want my app to run outside of .NET. I want my app to be a small executable that doesn't require proprietary .DLLs so that I can package all in one installer and doesn't any addtional download or install.
Martin
|
|
|
|
|
Blamor wrote: I have started looking around for how I can port my app and I figured maybe using something like wxWidgets would make sense for the GUI part of the app.
That makes sense. Once you've worked with MFC, it will be very easy to use wxWidget, their usage is quite similar.
Blamor wrote: Now, I don't know what I should use for the serial communications aspects of my app.
Well, what did you use in your VC6 application ? I don't remember that it exist MFC classes for serial communication. You could simply use the plain API functions (like CreateFile, ReadFile, ...). anyway, you can find a lot of existing classes for serial communication on codeproject.
Blamor wrote: For instance, I am using CMap to store data in memory. My understanding is that these functions are not availalble anymore in Visual Studio Express. What can I use to replace these functions? STL? Is there an open source version of it that would work with Visual Studio Express?
Well, first, these are not functions but classes. And yes, you can use the STL which is distribute with the express edition (wow, I cannot imagine that somebody can distribute a compiler without STL libraries, even for free )
There is also a map in the STL.
|
|
|
|
|
I want have make a window form aplecatie for my clan.
and i have made a button withe the name servers
and i want that as i click on the button servers that i
got all ther server ip's with the server statics.
in a new form or a pop up form
but i dont know how to do that.
i hope this is enough information.
|
|
|
|
|
I use "Visual C++ 2005 Express edition"
|
|
|
|
|
Hi all friends.
How is it possible to generate sound alarm via Sound Card without using any multi media file ?
similar to Beep(,) that we determine sound frequence .
thanks .
|
|
|
|
|
Why can't you use Beep()? It does precisely what you said you wanted.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Volume of sound that Beep generate it is very low . I need sound that it's volume was very high .
thanks .
|
|
|
|
|
Turn your speakers up, try a higher frequency, or play a wav file that has the volume turned up.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
No No . The sound that Beep generate it , transferred from system speaker , no sound card .
|
|
|
|
|
You're at the mercy of the hardware, and there is no solution if you don't have a sound card.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
how to learn basic concept of vc++
|
|
|
|
|
|
Buy a book. Google will give you plenty of hits, but a beginner book will give you a better grounding
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Christian Graus wrote: Google will give you plenty of hits, but a beginner book will give you a better grounding
Well said.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Sonipriya wrote: how to learn basic concept of vc++
VC++ is obsolete. Learn <big><big>C#</big></big> instead!
|
|
|
|