|
I don't think OpenGL can do (or defines ) thickness of a surface.
You will need to draw one smaller cylinder (or bigger ) with a radius difference of the desired thickness, and draw the top and bottom trimmed surfaces to close up the top and bottom of the cylinder.
|
|
|
|
|
rushiraj.jhala wrote: I want to display a cylinder with hole.
the gluCylinder is some-what of a rough tool for this type of work. You can get into some of the super-ellipsoids or constructive geometry, both of which have their difficulties. You can also switch prototypes to a torus and scale it significantly in one direction. This does produce a rounded top rather than a flat. The other method is just to calculate it. A cylinder is easy to draw as it is just a circle with in an inner and outer dimension and a surface between the two. You could actually define the whole thing as one tri-strip by running a diagnal line around the inner and outer surfaces and meeting back up with itself at the end. 360 degrees, one tri-strip, makes a fast and easy surface to play with (this would be equivalent to a wrap torus, but with a flat inner-outer and top-bottom dimension).
Constructive Solid Geometry[^]
Wrap Torus[^]
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
pls do help me in ending a process from the server without shutting down the remote host..
while using InitiateSytemShutdown() it forcefully closes and then shutdowns the system. but i need to end the process wihtout shutting down the system.
pls do reply as early as possible..
|
|
|
|
|
void EndProcess(string PID)<br />
{<br />
HANDLE ps;<br />
int id=atoi(PID.c_str());<br />
ps = OpenProcess(1,false,id);<br />
if(ps)<br />
{<br />
if(!TerminateProcess(ps,-9))<br />
{<br />
ShowMessage("Could not end process specified!");<br />
}<br />
else<br />
{<br />
ShowMessage("Process successfully terminated!");<br />
}<br />
}<br />
}
Is that what you want?
|
|
|
|
|
Hi,
I wrote a dll ,currently i was assigned to write a UNIT TEST CASE DOCUMENT,i don`t have a prior experince of writing unit test case document.what does unit test case document means..?i have around 20 functions in the dll. Does any one has the format of the unit test case document, sample document or related URL,kindly help me..i don`t know whether this is the correct forum to post...
Thanks in before
James
|
|
|
|
|
If you have around 20 functions in your DLL, then unit testing simply would mean testing each and every one of those functions individually for functionality, performance, or whatever you are intending to test it for. Unit Testing, in Wikipedia[^]
I am not ashamed to confess that I am ignorant of what I do not know.
- Marcus Tullius Cicero
|
|
|
|
|
I need mstcpip.h file to compile my program.
Who can help me?
Please send it to me(contact to me via email: theoceanman246@yahoo.com).
-- modified at 0:25 Saturday 24th February, 2007
|
|
|
|
|
|
I got it.
Thanks u so much!
|
|
|
|
|
You're welcome
|
|
|
|
|
skyline2 wrote: Please send it to me(contact to me via email: theoceanman246@yahoo.com).
No, we won't. If you won't read the forum, why would we reply to you ?
Way to attract spam, BTW.
I'd be very surprised if your program compiles as a result of adding this header, a #include for a header almost always also requires a lib file, and probably other header and/or cpp files. A header can represent the hook into a library, it rarely represents a library.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
OK,I'll try it more.
Thanks anyway!
|
|
|
|
|
Or you could get it where you're supposed to:
Microsoft ® Windows Server® 2003 R2 Platform SDK[^]
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
(Rex Kramer "Airplane!")
|
|
|
|
|
I got it.
Thanks u so much!
|
|
|
|
|
hi,
i have a dialog based application, on pressing Escape key my application closes, i want to detect the escape key press and need to retain my apps how to do it?
zari
|
|
|
|
|
Override the virtual function OnCancel() and do nothing there. Handle the event WM_CLOSE and call CDialog::OnCancel() there. Or override PreTranslateMessage() and eat the Esc key press there!
A friend is, as it were, a second self.
- Marcus Tullius Cicero
|
|
|
|
|
|
And maybe you need to same work for Enter(IDOK) with brahmma answers
|
|
|
|
|
|
I am supporting French for my project (MFC).
I have to use "String Tables" instead of creating a new set of Dialogs for each supported language. String Tables are to support multiple languages.
Could you tell me more about this, please.
Please send me an example
Thanks a lot!
Papais
|
|
|
|
|
Start by reading:
1) Internationalization and Multiple Language Support[^]
2) Tips on internationalization of software[^]
Another approach to 1 above would be to have string resource table only DLLs and manually loading strings from resource instead of recreating each dialog, menu, and etc. for each language. This would require more coding, but a non-programmer could be taught to edit the string tables.
There is also a good book offered by Microsoft Press on the subject, version one of that book was in the VC6.0 MSDN help.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
What version of Visual C++ are you using? If you are using VS 2003 or above, the IDE supports Unicode.
Let us not listen to those who think we ought to be angry with our enemies, and who believe this to be great and manly. Nothing is so praiseworthy, nothing so clearly shows a great and noble soul, as clemency and readiness to forgive.
- Marcus Tullius Cicero
|
|
|
|
|
|
I've created my dialog based application in 1600 x 1200 resolution.. It's a pretty large dialog with lots of conrols..
My problem is when the screen is set in lower resolutions, The program will not load the full dialog. Some of the right and bottom gets cut off. I've made it so you can scroll vertically and horizontally, but it still cuts off some of the dialog.
Any Ideas?
http://www.aquawicket.com/edrummonitor
|
|
|
|
|
aquawicket wrote: Any Ideas?
Create various-sized templates and load the appropriate one at runtime.
Program to the smallest common denominator.
Use a property sheet.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|