|
Yes, there's the link to, in my previous answer.
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]
|
|
|
|
|
Sorry sir but I am a little confuse ^_^
I am still newbie here in codeproject so I thought its better
to ask a little ^_^
|
|
|
|
|
Click here to gain access to the collaboration / testing forum.
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]
|
|
|
|
|
Hello sir now I post again the game code in the section what you have said ^_^
By the way sir where can i find here some tutorials about the basic of 2d sprite using dark gdk kit for c++
thanks again
|
|
|
|
|
HI all,
I m using System Tray Icon for my application.
i m taking help of this article for system tray icon.
Adding Icons to the System Tray[^]
I m already ask this query to author of article but he not respond me.
please help me for this.
this application works fine on VISTA,but when i run application on XP,its create system tray icon but bot display the ballon.
please help me....
Please provide me any demo application for this
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
modified on Thursday, September 24, 2009 7:16 AM
|
|
|
|
|
See MSDN official sample for System tray (in SDK)
|
|
|
|
|
I am useing VC++ 2008 Service Pack2 OS Microsoft Windows XP.I had create simple Dialog Based application and add a button and Edit box.On Button Click open a folder dialog Box.When i click on Button and select a file name and again click on button then i am getting exception.
Unhandled exception at 0x7ca51646 in test.exe: 0xC0000005: Access violation reading location 0x01064db0.
I debug the code and found when cursor come here then exception
if (dlg.DoModal()==IDOK)
code of ButtonClick
const char szFilters[]="Excel Files|*.xls;*.xlsx|";
CKSFileDialog dlg (TRUE, "xlsx", NULL,OFN_FILEMUSTEXIST| OFN_HIDEREADONLY, szFilters,this);
dlg.SetMyParent(this);
if (dlg.DoModal()==IDOK)
{
SetDlgItemText(IDC_EDIT1, dlg.GetPathName());
}
Plz help me
|
|
|
|
|
The end of the filter must have 2 pipe symbols.
const char szFilters[]="Excel Files|*.xls;*.xlsx||";
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
thank for reply but still problem is same.
|
|
|
|
|
Please try without the SetMyParent call.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
i try this but still problem is same.
|
|
|
|
|
Did you override DoModal in your class?
If so, what changes has been done in it.
Generally, what was the reason to derive your own class from CFileDialog ?
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
derive your own class from CFileDialog
i was try this.But in that case also same exception show.
|
|
|
|
|
I'm trying to understand what your class CKSFileDialog does.
Why don't you directly use the CFileDialog class like this -
const char szFilters[]="Excel Files|*.xls;*.xlsx||";
CFileDialog dlg (TRUE, "xlsx", NULL,OFN_FILEMUSTEXIST| OFN_HIDEREADONLY, szFilters,this);
if (dlg.DoModal()==IDOK)
{
SetDlgItemText(IDC_EDIT1, dlg.GetPathName());
}
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
i test code given by you but still exception is same.
|
|
|
|
|
|
|
At one time this was a known problem with CFileDialog . I would have thought it to be fixed by VS2008. It has to do with the size of the OPENFILENAME structure. This structure has three extra members if _WIN32_WINNT >= 0x0500. This causes problems because CFileDialog has a OPENFILENAME member, but MFC itself was built with the smaller size. Since the class in your app will not line up with what is in MFC, it crashes. See the first Q&A 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
|
|
|
|
|
thanks for article.
You have any solution for that problem.
|
|
|
|
|
MsmVc wrote: thanks for article.
Which I just realized was close but not the exact one I meant to post. Sorry about that.
MsmVc wrote: You have any solution for that problem.
Did you see the CFileDialogEx class? Have you considered using GetOpenFileName directly?
"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
|
|
|
|
|
yes i try
CFileDialogEx but nothing change in output.Still i am getting exception.
|
|
|
|
|
I am using automation classes to draw chart through excel from VC
Is there any documetation where i can get the values of the variables to passed to ChartType
Ex I have this code
_Application app;
_Workbook newBook;
Workbooks books;
Worksheets sheets;
_Worksheet newSheet;
Charts charts;
_Chart newChart;
COleVariant vOpt((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
//Create Excel server (start Excel)
if(!app.CreateDispatch("Excel.Application"))
{
AfxMessageBox("Can’t start Excel server!");
return;
}
app.SetVisible(true); //set Excel visible
// app.p.put_UserControl(TRUE); //user can operate Excel
books = app.GetWorkbooks();
newBook=books.Open("d:\\wipro1.csv",vOpt, vOpt, vOpt, vOpt, vOpt,
vOpt, vOpt, vOpt, vOpt, vOpt,vOpt, vOpt,vOpt,vOpt);
sheets = newBook.GetSheets();
newSheet = sheets.GetItem(COleVariant((short)2));
charts = newBook.GetCharts();
newChart = charts.Add(vOpt,vOpt,COleVariant((short)1));
newChart.SetName("My chart");
newChart.SetChartType((long)1);
---------------------------
The above code works fine but what variables should be passed to SetChartType ? which Variable corresponds to which charttype?
Prithaa
|
|
|
|
|
good morning
Here are the value for excel 12 ?
well the values retrieved from Microsoft.Office.Interop.Excel.dll
runtime version v1.1.4322
version 12.0.0.0
public enum XlChartType
{
xlXYScatter = -4169,
xlRadar = -4151,
xlDoughnut = -4120,
xl3DPie = -4102,
xl3DLine = -4101,
xl3DColumn = -4100,
xl3DArea = -4098,
xlArea = 1,
xlLine = 4,
xlPie = 5,
xlBubble = 15,
xlColumnClustered = 51,
xlColumnStacked = 52,
xlColumnStacked100 = 53,
xl3DColumnClustered = 54,
xl3DColumnStacked = 55,
xl3DColumnStacked100 = 56,
xlBarClustered = 57,
xlBarStacked = 58,
xlBarStacked100 = 59,
xl3DBarClustered = 60,
xl3DBarStacked = 61,
xl3DBarStacked100 = 62,
xlLineStacked = 63,
xlLineStacked100 = 64,
xlLineMarkers = 65,
xlLineMarkersStacked = 66,
xlLineMarkersStacked100 = 67,
xlPieOfPie = 68,
xlPieExploded = 69,
xl3DPieExploded = 70,
xlBarOfPie = 71,
xlXYScatterSmooth = 72,
xlXYScatterSmoothNoMarkers = 73,
xlXYScatterLines = 74,
xlXYScatterLinesNoMarkers = 75,
xlAreaStacked = 76,
xlAreaStacked100 = 77,
xl3DAreaStacked = 78,
xl3DAreaStacked100 = 79,
xlDoughnutExploded = 80,
xlRadarMarkers = 81,
xlRadarFilled = 82,
xlSurface = 83,
xlSurfaceWireframe = 84,
xlSurfaceTopView = 85,
xlSurfaceTopViewWireframe = 86,
xlBubble3DEffect = 87,
xlStockHLC = 88,
xlStockOHLC = 89,
xlStockVHLC = 90,
xlStockVOHLC = 91,
xlCylinderColClustered = 92,
xlCylinderColStacked = 93,
xlCylinderColStacked100 = 94,
xlCylinderBarClustered = 95,
xlCylinderBarStacked = 96,
xlCylinderBarStacked100 = 97,
xlCylinderCol = 98,
xlConeColClustered = 99,
xlConeColStacked = 100,
xlConeColStacked100 = 101,
xlConeBarClustered = 102,
xlConeBarStacked = 103,
xlConeBarStacked100 = 104,
xlConeCol = 105,
xlPyramidColClustered = 106,
xlPyramidColStacked = 107,
xlPyramidColStacked100 = 108,
xlPyramidBarClustered = 109,
xlPyramidBarStacked = 110,
xlPyramidBarStacked100 = 111,
xlPyramidCol = 112,
}
Regards
Franck
|
|
|
|
|
Hello,
I have used the above chart types and to draw stock volume option
xlStockVOHLC = 91 . The data is arranged properly in excel sheet but how to select data for the chart in columns
i m using the following for data range
_Chart newChart;
Range oRang;
oRang = newSheet.GetUsedRange()
newChart.SetSourceData(oRang,COleVariant((short)1));
pritha
|
|
|
|
|
Hi,
I am trying to automate the opening file in framemaker and then try to convert it into xml file. While opening the file in framemaker i get some dialogs with OK and Cancel button.
For some file these dialogs come up but not for others.
How do i handle these dialogs in my code.
Thanks in advance for any help
|
|
|
|
|