Hello,
After one full evening of research, I decided to post my nooby problem here. Basically, I just want to start a microstation project in Viz Studio 2013.
I had both include Microstation :
MicroStation\mdl\includeMicroStation\mdl\MicroStationAPI
Into the main file, I added
#define winNT#include <MicroStation.API>BEGIN_BENTLEY_NAMESPACE
That's all, but compiler returns me many error (14), these are the 4 firsts :
Error 1 error C2146: syntax error : missing ';' before identifier 'size_type' c:\users\tom\bentley\microstation\mdl\include\memutilallocator.h 42 1 MdlTESTError 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\tom\bentley\microstation\mdl\include\memutilallocator.h 42 1 MdlTESTError 3 error C2146: syntax error : missing ';' before identifier 'difference_type' c:\users\tom\bentley\microstation\mdl\include\memutilallocator.h 43 1 MdlTESTError 4 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\tom\bentley\microstation\mdl\include\memutilallocator.h 43 1 MdlTEST
Anyway, I cannot do anything, it's always wrong somewhere into these files.
Of course I checked all http://www.la-solutions.co.uk/content/Publications-MDL.htm#ArticleIndexDevTools, thanks Jon, but I couldn't find a solution.
Could you see what's wrong ??
Thank you and have a nice day
Tom
Unknown said: I just want to start a MicroStation project in Viz Studio 2013
When writing a native-code C/C++ application, use the right version of Viz Studio!
Unknown said:#include <MicroStation.API>
No such object MicroStation.API! If it's the header file you want to include, then do this...
#include <MicroStationAPI.h>
Regards, Jon Summers LA Solutions
Yes of course, MicroStation.h
So I am probably using a wrong version, I will try with an old one.
But, these versions are not available anymore, so is it impossible to develop ?
If you are an MSDN subscriber, go to MSDN Subscriber Downloads at msdn.microsoft.com/.../securedownloads and enter "Visual Studio 2005 Professional" in the search box.
Yes, I just tried with Visual Studio 2005, but I have exactly the same errors than my first post into this thread. So I wanted to try with others, but it's impossible.
Hi Tom,
Unknown said:Yes, I just tried with Visual Studio 2005, but I have exactly the same errors than my first post into this thread. So I wanted to try with others, but it's impossible.
Sorry, but it's completely wrong way of thinking! If the only recommended compiler version doesn't work, is the right solution to try unsupported versions instead of to hunt for the source of the problem and to solve it?
To better understand you environment and configuration: You compile your code using bmake, started from MicroStation SDK development shell, or you use other approach?
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point