I want to display an Excel Diagram on one of my property sheet. I write my programm with VC++6.How can i do it?Could someone help me?
and what means LPDISPATCH GetDiagram()?What will i get? Is the value of the diagram ? Or a diagram?
I'm not entirely sure what you intend to do, but I think you'll need to investigate COM. I believe the new name for doing such things is .net, but I don't think that is supported by VC++6(I may be completely wrong about this though as I haven't used visual studio much in the past)
I believe under the projects menu there will be a menu "Add Class", which will generate some header files for you to interface with COM objects. Do a google for COM etc. You can also use MSDN.com as a resource.
Be warned though if you go down this path, as most documaentation you will find will be for VB applications, and a strong use of variant types can make debugging a nightmare without docs.
My job is to write in Excel ,read from Excel and display Diagram .Now i could write and read.I've used EXCEL.EXE from type library function to write/read (Excel.Application, Excel.Workbook,Excel.Sheet...).But i don't know how to display with VC++. I know that it is no easy to do it with VC++.But i have to use VC++ .
Thanks, thats work fine! The next thing that I would like to have, is a dynamic menu for each views. The main menu will contain a top menu item called "Operation" and each views will have different operations. So, how can I do that?
My first idea was to create a popup menu for each views and attach the popup menu to the top menu "Operation". But I really need help to do that.
I am doing a project related to TAPI.When i am executing the appllication ,i got an error that the selected line does't support voice capabilities.What will be the problem? How can i identify that my modem having suitable driver.(I am using voice modem).Help me please...
The basic nature of your questions leads me to beleive you are not familiar with this book, which I recommend you read, before you get too deep into TAPI development - "Windows Telephony Programming" by Chris Sells
how should i start with which of them and how to continue???
thanks,waiting for reply.
the website i want to develop is something like codeproject.com
If you're going use the controls provided in the Visual Studio wizard or standard windows controls, the style will depend on the style the user has selected for his or her own desktop.
If someone is using a classic windows desktop, the style will look like windows 98 on that computer. Someone else might be using the default windows XP style which will appear to be what it sounds like you're looking for.
Sorry but I don't know of a way to manually change the styles of your controls if you're using standard windows ones; if there is one, I'd like to know to, so I look forward to someone else answering this post
What you could do is simply write your own button or edit classes instead. Then you can make your controls look like whatever you want. This is what I do for games and other programs that are supposed to look pretty and original. It's not difficult, the basic idea is that you just need to import a few bitmaps into your resources file, blit them onto your device context and catch mouse clicks when they land over the bitmaps. It's especially easy for buttons.
For edit boxes you could just draw edits with no outline overtop of a bitmap that looks like the windows xp style editbox that you're looking for.
You need a manifest file (xml), there is one at the microsoft website some where. Once you have a manifest, you can do one of two things:
1) Rename it ot MyApp.exe.manifest, where MyApp is the name of your application. Then place the manifest in the same directory as your application, Windows will find it.
Or the more usual way,
2) Place the renamed manifest in your projects res directory and use the resource editor to add it to your program as a binary resource. The name of the manifest resource must be 24. That is the name of the resource not the name of the file.
Also you should edit the manifest file so that contains information about your application. The one supplied by Microsoft is more of a template and contains statement like this "Your application description here", which are just place holders.
If you do a search using keywords: Microsoft, XP, and manifest; you should have no problems finding what you need.
I have derived CPropertyPage class with OnOK() function, but when I try to return from OnOK() on condition not closing the page, I can't prevent closing. Every time I have my page closed no matter if I return from OnOK(). Where have to handle event to stop close?
else//You can show a message box
Love Forgives--Love Gives--Jesus is Love
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord