|
I will give the vertices of outer polygon, the code need to generate the vertices of inner polygon , with given tolerance for e.g. 50 mt.
|
|
|
|
|
haveu got the algorithm first ?
making it as a code segment is not a problem ..ths problem is moer to do with geometry then codeing ...
redindian
|
|
|
|
|
I dont have the algorithm, iam waiting for that only.
|
|
|
|
|
Iam waiting for the readymade code, because i urgently need that one.
|
|
|
|
|
hi!
does anybody use dialog with big scrollbar (vertical) ?
first if i move the scrollbar down, i can see my buttons in the bottom of the dialog. important: the buttons have to be on the bottom. i don't want them at the top.
but, if i open the dialog, i can't see them.
how can i manage it? i want see the pushbuttons while scrolling, everytime.
it could be similar to the excel function to fix the window i.e for topics at the top of cells.
i tried with floating buttons, but it flickers. not so beautiful
possible, just connect with a dockable window, which include all buttons of the scrollable dialog???
does anybody have an idear?? example?
thanks!!!!
|
|
|
|
|
hi,
can anybody tell me how do i go about building an ISAPI application. the application which i intend to build is as follows: the user will select some options from a web page(options regarding some images) and then click the get button. then the image selected by the user should get displayed on the page. in html this is simple but this is only a test application.in the final application the user is going to select the name of another application and also send some data required by that application. the background program(i.e. the ISAPI extension ) will have to check whether the application required by the user exist and then pass on the data to that application and wait for the result. when it obtains the result it will show it back to the user. so as a first i want only to send back some images. can anyone tell me how to go about this application. i tried using the sample programs on code project but they did not have any explanation and did not worl properly. Lastly is there anyother better way to build this application other than what i have said(if it is the correct way)
thanks
aditya
|
|
|
|
|
Hi friends,
I would like to know how can we transmitt video captured from a webcam to another system through LAN in real time.
(Link to related articles,white papers,sample projects..etc are also welcome!!)
Thanx in advance
|
|
|
|
|
Respected all
I have a data file in the following form
-----------------------------------------------------
;sdfsd
;sdfsd
;sfhsd
;nfs
;gfsfjgsf
;X Y index
12 34 2333
14 56 3334
12 56 7895
;sdkfskd
;sdhfkjd
45 34 3433
------------------------------------------------
in the above file the line started with SEMICOLON will be consider as comments i.e i have to read only the lines stating without SEMICOLON and all lines starting from SEMICOLON will show an error exception and read that line that start without SEMICOLON.
so how can i read the above format of file reading.
waiting for + response.
david
|
|
|
|
|
CString strFile = "theFile.txt"
std::ifstream SourceFile(strFile);
char buffer[50];
while (!SourceFile.eof() && ::PathFileExists(strFile)) {
SourceFile.getline(buffer, sizeof(buffer));
if ( ) {
}
}
SourceFile.close();
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Respected Toxcct
Regards!
Thanks for response, but now how i can proceed in
if(.....)
i dont know that how i write the condition in my case, so plz push me.
Waiting for + response.
|
|
|
|
|
Hi,
I would like to know the role of IMPLEMENT_DYNAMIC,IMPLEMENT_SERIAL & IMPLEMENT_DYNCREATE macros in mFC.
I very well know that they are used for Dynamic Creation of objects,Accessing runtime information and for Serialization. But I want to know how these macros help in this? Can anyone please give me some link to articles where I can find this information.
Thanks
Madhavi.
|
|
|
|
|
Hi!
Can someone please help me how to write a button control that can be dragged and dropped?
I want to drag the button from one side of the Dialog to the other.
I'm doing this to learn.
Thanks!
|
|
|
|
|
reposting the same question[^] will cause the same answers...
if no one answered much is because :
1) the question is not clear enough
2) no one knows
3) what has been answered performs you enough infos for you to do it !
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hello,
I created a extended TabCtrl from CTabCtrl. Then subclassed it to a CPropertySheet. The problem is after I select any other page in the propertysheet, it will get hanged on activate or deactivate other windows which make my program to do repaint.
If the page has no controls on it, there is no problem.
The creation of propertysheet is as follows:
m_pPropSheet = new CPropSheetEx("",this);
m_pPropSheet->AddPage(&m_page3);
m_pPropSheet->AddPage(&m_page2);
m_pPropSheet->AddPage(&m_page1);
m_pPropSheet->Create(this,WS_CHILD|WS_VISIBLE);
In CPropSheetEx (the derived class), I use the following to subclass the tabctrl:
BOOL CPropSheetEx::OnInitDialog()
{
BOOL bResult = CPropertySheet::OnInitDialog();
CTabCtrl* pTabCtrl = GetTabControl();
m_tabctrl.SubclassWindow(pTabCtrl->GetSafeHwnd());
return bResult;
}
I did override OnPaint() of the CTabCtrl in my derived CTabCtrlEx to draw my special tab styles.
Can anybody help me, please?
Thank you!
|
|
|
|
|
Sorry, I didn't understand this part:
Nishad S wrote:
it will get hanged on activate or deactivate other windows which make my program to do repaint
Can you clarify it?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Suppose my program is running top of all windows, when I minimized and then restore any other window over my program's window, then my program will get hanged.
I think it causes the complete redraw of my program's window.
It is also get hanged when I activate another window over my window completely and then reactivate my window.
In short, I think, my program gets hanged when the window is completely redrawn.
If there is no controls on the page, no problem!
|
|
|
|
|
I found the following...
When I create the propertysheet by DoModal() there is no problem!
Also the following code is also fine:
m_pPropSheet = new CPropSheetEx("");
m_pPropSheet->AddPage(&m_page3);
m_pPropSheet->AddPage(&m_page2);
m_pPropSheet->AddPage(&m_page1);
m_pPropSheet->Create();
But the propertysheet comes in a new window, which I cannot allow!
|
|
|
|
|
all the problems I have had with hanging Property Sheets has been due to this[^]
Steve
|
|
|
|
|
Thank you!
I tried, but the problem is still exists.
|
|
|
|
|
I'm just guessing here, but try adding clipping styles to the sheet window:
m_pPropSheet->Create(this, WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS);
Also, you might temporarily comment the tab control subclassing so as to determine if the problem is related to the tab control or not.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
I have a VC6 project I am moving to VS2005 ( I did not write it ). I've just finished all the compile errors, but the link errors have me beat. I moved a lot of code from nonstandard headers to headers like iostream, fstream and string. I've put using statements in, obviously.
I'm getting a ton of these:
Error 58 error LNK2001: unresolved external symbol __imp_??6std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z dcmjpeg.lib
It's very possible that these errors are from linking against other libraries, which may also use the old headers.
It's a long time since I've been this involved in a C++ project, and I have to say that while most of it has come back easily, on this I'm stumped. Any advice appreciated.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Not an answer, but some time questions still help
The error mentions dcmjpeg.lib (part of the DICOM Toolkit, I guess.) Do all of the errors come from dcmtk libraries?
Are you compiling those libraries from the sources or using distributed binaries? If the former, are you sure they are being compiled with the same settings as the rest of your project? If the latter, maybe you need a newer version?
You might get something at comp.protocols.dicom...
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Thanks - I just worked out that some of my libraries were from the DICOM stuff, and went looking for a newer version. No, I'm not building the library. I just inherited this project in the last few weeks, and my first recommendation was a move to a newer compiler than VC6, which forced fixing all the non standard C++ in the project ( methods with implied int/no return statements, base classes with pure virtual methods that were not implimented in all derived classes, etc ).
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
I just inherited this project [...] methods with implied int/no return statements
I hope whoever wrote those methods isn't at the reach of your hands
Christian Graus wrote:
base classes with pure virtual methods that were not implimented in all derived classes
But these couldn't be instantiated even in VC6, right?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Jose Lamas Rios wrote:
I hope whoever wrote those methods isn't at the reach of your hands
LOL - actually, I started in that frame of mind, but he's a vet who learned C in uni 10 years ago, and ended up on this project. He's pretty open to learning how to do things properly, and he's a nice guy. I think he may have been the wrong guy for the job, but it's too late to change that now.
Jose Lamas Rios wrote:
But these couldn't be instantiated even in VC6, right?
Imagine my disgust, but I'm afraid VC6 was compiling this code.
FWIW, I got the latest library, and it's clear it's been updated. The old version contains a file called ofstream.h (!). It includes pretty much every non standard header I can think of, and seems to me to add to the original ofstream.h. I can't imagine why else it's there, and it certainly has comments to say people have been adding to it. Bloody hell.
I never seem to charge enough for this sort of work....
Christian Graus - Microsoft MVP - C++
|
|
|
|