|
Firstly, Thanx for the reply.
Actually my task here is i have an input iges file.
I have to read the geometry data using c++ from this file and recreate the geometry.
I opened the file in a notepad and i found the data is in the form of some kind of numbers.
I do not know how to read the geomtry from the file.
It wold be very helpfull if you let me know if there are any good links related to this.
Thank you.
|
|
|
|
|
There are some free IGES related tools, some with source code, here[^].
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
raesa wrote: Please do tell me if there is a way to read an IGES file.
Yes there is a way.
A.
First, I assume you already have a 3D graphic engine to display, huh, 3D.
Second, get the IGES specifications, there are a couple of link on the IGES wikipedia page.
Third, read and parse the file to extract 3d entities and convert them to you own internal format.
B.
Get hold of a free converter and convert the IGES file to something you can read.
good luck.
This signature was proudly tested on animals.
|
|
|
|
|
Hi,
With Visual Studio 2008, how can I specify the operating system for who I will compile my application? I develop under Vista but I want to utilize on XP.
Thanks,
Claude
|
|
|
|
|
This can be done by changing the default value of WINVER[^]
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
You could put this in your StdAfx.h file:
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
Use version > 0x0400 otherlise you will get a compile error in VS2008.
The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
I Want to Build Application in VC++ (dialog):
void CFirstVCDlg::OnHello()
{
MessageBox("This is my first Visual C++ Application!");
}
Why error is showed?:
error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'const char [41]' to 'LPCTSTR'
thank you
thank you
soso
|
|
|
|
|
Try using
MessageBox(_T("This is my first Visual C++ Application!"));
it should work
|
|
|
|
|
Ok, Thank you very much
thank you
soso
|
|
|
|
|
You might be using unicode build( which is default in vs2005 and later ). so should pass unicode string to MessageBox() function. To convert your string to unicode. use _T macro.
MessageBox( _T("This is my first Visual C++ Application!"));
|
|
|
|
|
You are building for Unicode and therefore trying to pass an ANSI string to an API which expects an Unicode string. Include all your literal strings within the TEXT macro.
anassamar wrote: MessageBox("This is my first Visual C++ Application!");
MessageBox(_T("This is my first Visual C++ Application!"));
The _T macro automatically emits an ANSI or an Unicode string (by prefixing nothing if building for MBCS or by prefixing L to the literal string if building for Unicode)
These links may help you further to understand about string data types:
The Complete Guide to C++ Strings, Part I - Win32 Character Encodings[^]
The Complete Guide to C++ Strings, Part II - String Wrapper Classes[^]
This might help you with International programming and Unicode:
International programming[^]
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
推荐网站www.codeproject.com 和 www.codeguru.com,在这里可以找到
|
|
|
|
|
Hi all,
I want to close a messagebox without clicking its button or without pressing Esc.
can u please tell me how can i do 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, May 28, 2009 7:03 AM
|
|
|
|
|
"_$h@nky_" wrote: I want to open close a messagebox without clicking its button or without pressing Esc.
That makes no sense at all! Do you want to close a message box or show it? Is it really difficult to even clearly explain what you want?!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
search for timed message box on code project or google for it.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
EndDialog()
Setup a timer for that job
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
"_$h@nky_" wrote: can u please tell me how can i do this.
Here is one example.
"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
|
|
|
|
|
open the messagebox on a separate thread and kill that thread when you need to close it
Marius
~~~~~~~~~~~~~~
.NET developer
|
|
|
|
|
Hello
I am trying to convert from "String ^" to std::String on VC++ 2005. I use this piece of code:
std::string s;
String ^ ss = "hello";
s = ss;
I have got the following error:
error C2679: binary '=' : no operator found which takes a right-hand operand of type 'System::String ^' (or there is no acceptable conversion)
Any idea?
Thanks
|
|
|
|
|
You must have posted your query at the managed c++ forum. This board is for queries on native language programming (the actual stuff). Besides that, Why would you be converting a String to std::string ?!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
ops, sorry for the mistake. The reason I need the converion is because I am merging code from different VC projects and versions. Some code use std::string variables and the other system::String ^
Thanks. I will post it in the correct place
|
|
|
|
|
If only it were that simple...
Here's my attempt at code that gets the raw wide characters from a CLR String into a std::wstring - I'll leave the conversion to ASCII to you - there are plenty of examples of how to do that part of it...
String^ ss = "hello";
std::wstring s;
array<wchar_t>^ chars = ss->ToCharArray();
pin_ptr<wchar_t> charPtr = &chars[0];
s = std::wstring(charPtr, charPtr+ss->Length);
Microsoft's suggested solution is here[^].
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
Hi all!
i have injected the kernel32.dll for the "CreateFileW" and i have customized the funcation.
i wana log only the files created by the user not by the system exe and dll and processes.
i have filtered by using "dwCreationDisposition" and dwFlagsAndAttributes
even though i cant filter some of the files created temperarily and some exe files.
has anybody known any filtering techniques in the kernel.
i welcome if someone leads me for a good technique
Thanks all!
Regards
Jack
|
|
|
|