Thanks Salem.
Actually, i need the round ended option to fix some broken lines of my app.
The n points line is form by n-1 segments where the joining appears broken when i increase the pen...
Type: Posts; User: yongzai
Thanks Salem.
Actually, i need the round ended option to fix some broken lines of my app.
The n points line is form by n-1 segments where the joining appears broken when i increase the pen...
I am using visual studio 2005
I found out that the compiler's include directory for my app does not define the PS_ENDCAP_ROUND. (C:\Program Files\Microsoft Visual Studio...
I would like to draw round ended lines using GDI but the below solution doesnt works.
My Compiler doesn't recognize PS_ENDCAP_ROUND and ExtCreatePen.
LOGBRUSH lBrush;
DWORD pStyle =...
thanks vart, ur method works wonderfully. I did not know the conversion can be done this way.
Regarding the memory issue, I really have no idea on how to overcome it. After inserting 117 items, only...
Thanks guys,
I have replaced all my char array with string but the problem still persist.
As pointed out by Daved, I also removed the for() loop and change that part to:
//id format is...
Here's the callback function that I does insertion into list
bool MySearchCallback(String* id, void* arg)
{
Road *aRoad;
String roadname;
int segmentId, startVertex;
int success; ...
Hi Salem,
I am building the app for embedded platform, using the PDA emulator of Visual Studio .Net2005. As I need to do some Graphics rendering, all my testing was on the emulator.
You are...
After googling in the web, I found that the problem maybe caused by buffer overflow, where the new items overwrite the existing entries. But I still need to figure out how to overcome such problem.
In isolated program, the list works fine.
You are correct, this is a part of a larger program.
I have tried to eliminate possible dangling reference and memory leak by following the guide from...
Hi laserlight,
I tried the code you provided and the list1 contains value of 100 for the first 31 entries, and the rest are '?'
I observed the values from the debugger window, and this is my...
I m using list in my window mobile app but experienced strange behavior.
For example,
for(int k=0; k<50; k++)
list1.push_back(100);
The list1 only contains the first 31 entries of 100,...
Thanks again vart, I made a silly mistake juz now. You are correct, I want the second way but did it in the wrong way. Now it works brilliantly :)
Sorry for the wrong implementation. I have change to reference to pointer, but it complains the same error during execution:
doexit(int code = CXX0065: Error: unable to obtain expression value,...
Thanks for the reply. Maybe my concept was wrong, I tot passing a pointer to the retrieveSub can do the trick. vart, here's my 2nd attempt to pass the pointer by reference, correct me if i m wrong,...
I am using a binary tree whereby the search item is return using pass by reference i.e. "searchElement" store the result
int BSTree::retrieve ( String searchKey, Car *searchElement )
{...
Hi,
How do we delete a column of the excel from c++?
I only know how to delete a row. Well, I tried to change the macro arg from L"Rows" to L"Cols", but it doesn't work.
Thanks in advance....
I found the following solution while googling.
So I reproduce the method to share with others who may have similar problem. Cheers.
//Merge cells for a range of cells:
BOOL...
Hi guys,
I'm using the COM programming to output an excel file from vc++. I would like to merge the cells using vc++. is it possible?
My excel format:
Some lengthy description that stretch...