|
I am attempting to write a C++ application that can read data from an .STL file (such as volume, xyz values, etc.) I am having trouble with this task. Can anyone help? I've seen some freeware called Admesh. The Admesh software computes reads data only from simple .STL files, but cannot read a complex file. Any help would be appreciated.
rtprogrammer
|
|
|
|
|
If you want to read the file yourself, you have to know the file format and do everything yourself. An alternative would be to use a library (or existing source code) that do that for you (if you can find that).
For the file format, google is your friend[^]
|
|
|
|
|
I will try to implement your suggestion. Thanks for the info.
rtprogrammer
|
|
|
|
|
Hi all,
How can i create a window inside a dialog to display video
captured from any device attached to the system.For capturing and displaying i
will be using DirectShow.
Thanks and Regards,
Mayank
|
|
|
|
|
Download the Platform SDK (version Server 2003 R2 or newer) - the DirectShow SDK is included.
There's enough documentation and sample code there to get you started pretty quickly.
If you run into specific problems, don't hesitate to ask here
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hi all,
I have an Object that hasn't the ON_INITMENU ...
and I want to disable the menu of it...
I tried to do that using HOOKs but I can't disable the Right-Click button
On the keyboard (next to Alt btn)
(The control is CHtmlEditCtrl2 in Design mode)
Please help me.
Thanks.
Every new thing you learn,Gives you a new personality.
|
|
|
|
|
dSolariuM wrote: I tried to do that using HOOKs but I can't disable the Right-Click button
On the keyboard (next to Alt btn)
Is that virtual-key code VK_APPS (0x5D) ?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hello. I have an SDI application where i pace a resource dialog as a child window. The problem is that the dialog is taller that the main frame so a part of the dialog is not showing. Can someone give me an advise where and how to resize the main frame according to dialog size? Thanks in advance!
|
|
|
|
|
johnny__XP wrote: Can someone give me an advise where and how to resize the main frame...
To size any window, check out SetWindowPos() and MoveWindow() .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Is this MFC? If so, in your CFormView's OnInitialUpdate call:
ResizeParentToFit(FALSE );
The boilerplate code created for SDI in VS2005 does not include the FALSE which allows the parent to grow.
Judy
|
|
|
|
|
Hello everyone!
I have the following problem in my MDI App.
If my MDIChildView is not maximized I remove the main menu
of my MDIFrame (SetMenu(NULL)). Then I maximize my view
and I set my frame main menu to the original menu (SetMenu
(pOrgMenu)). The menu appears, but the control menu
(maximize, minimize, close button) of my child view don't
appear in the menu bar, as it should do.
The only possibility that I have is to call
MDIRestore()
MDIMaximize()
of my child window. But this results in an ugly window
flash.
I have already tried all things I know about MDI frames
and child views, but non of that worked.
Has anyone an idea, how I can solve this problem?
The only thing i found with google was "nothing"
Thank you to everyone, if he has a solution, or (sigh) not!!
Enrico
-Yes, i don't write a good english-
Unlukily it's not a Joke...
Hope you'll understand!!
|
|
|
|
|
You may need to call DrawMenuBar to get it to display correctly.
If you vote me down, my score will only get lower
|
|
|
|
|
|
Hai !
suggest me to perform the socket disconnection in VC++ 6.0.
I used "close" and "shutdown" to perform socket disconnection but when saw through TCP View the socket remaining connect.
Onther one, To disconnect we have to perform both the side client and server operation or client side only enogh.
shakumar
|
|
|
|
|
shakumar_22 wrote: suggest me to perform the socket disconnection in VC++ 6.0.
How did you connect it? Is closesocket() what you are looking for?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
I want to skim many bitmaps files,so I show the bitmaps in listctrl in items,and the icon is the bitmaps' shrinked ones~~ And you can find this in windows before you open a bitmap file~
But....how to do it ~`?
Thanks`
|
|
|
|
|
|
CImage::Create(...) lets me create an alpha channel,
but how do I change the bits in it?
I'd like to use TextOut and create a blurred shadow effect for a text image.
|
|
|
|
|
if you want to set some effects to your images or texts you can use of GDI+ for example(GetTextContrast or Graphics::DrawString) and also CImage has a function AlphaBlend that you can use of it.
|
|
|
|
|
HappyFunBall wrote: but how do I change the bits in it?
The CImage::GetPitch() and CImage::GetBits() methods provide direct access to the image's pixel
data.
CImage::GetBits() gets you a pointer to the image pixel data.
CImage::GetPitch() is the bytes-per-row, and if it's negative, CImage::GetBits() returns a pointer
to the LAST row of the image, so you can use the signed value returned by CImage::GetPitch()
to iterate through the rows of pixel data.
The layout of the pixel data varies depending on the format of the bitmap.
For a 32bit-per-pixel ARGB image, the pixel data bytes are layed out RGBARGBARGBA... so if you
take each pixel as a DWORD, the high order byte is the alpha channel byte.
Hope this helped!
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hey,
I have appended a new menu item at the end of the existing menu
i.e after Help Menu.
Now i want to create its submenu tried not not successful.
Pls help me out
Regards,
Pankaj Sachdeva
|
|
|
|
|
See this thread "How to close the running appliaction" "Creating and Adding Menu at runtime" below the forum.
|
|
|
|
|
|
It was a syntax error;) oh I think you are a new asker.After make it whats problem what you are not successful?
|
|
|
|