Does atom developer sdk supports CLR.

Does atom developer sdk supports CLR.

I created an application in VC++ CLR Windows forms.But error appears when compiling the app.Doesn't the sdk support CLR. Or should I configure anything else.When I tried to create a hello world app in win32 console it worked well.
12 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Akshaynath,

Please post your errors and I will be happy to assist you.

It is possible to utilze the ATOM SDK from CLR code, however care must be taken to ensure your application passes the Validation Guidelines.

I tried many ways to resolve error.I succeeded in building console win32 application.But when I use the same settings in CLR windows forms application following error occurs

Error 1 error LNK2028: unresolved token (0A000014) "public: __clrcall com::intel::adp::ApplicationId::ApplicationId(class com::intel::adp::ApplicationId const &)" (??0ApplicationId@adp@intel@com@@$$FQAM@ABV0123@@Z) referenced in function "public: static void __clrcall com::intel::adp::ApplicationId::(class com::intel::adp::ApplicationId *,class com::intel::adp::ApplicationId *)" (?@ApplicationId@adp@intel@com@@$$FSMXPAV1234@0@Z) app.obj
Error 2 error LNK2028: unresolved token (0A000015) "public: __clrcall com::intel::adp::Application::Application(class com::intel::adp::ApplicationId)" (??0Application@adp@intel@com@@$$FQAM@VApplicationId@123@@Z) referenced in function "int __clrcall main(cli::array^)" (?main@@$$HYMHP$01AP$AAVString@System@@@Z) app.obj
Error 3 error LNK2028: unresolved token (0A00001A) "public: virtual __clrcall com::intel::adp::ApplicationId::~ApplicationId(void)" (??1ApplicationId@adp@intel@com@@$$FUAM@XZ) referenced in function "public: static void __clrcall com::intel::adp::ApplicationId::(class com::intel::adp::ApplicationId *)" (?@ApplicationId@adp@intel@com@@$$FSMXPAV1234@@Z) app.obj
Error 4 error LNK2020: unresolved token (0A00001C) ADP_DEBUG_APPLICATIONID app.obj
Error 5 error LNK2028: unresolved token (0A00001D) "public: __clrcall com::intel::adp::ApplicationId::ApplicationId(struct ADP_APPLICATIONID)" (??0ApplicationId@adp@intel@com@@$$FQAM@UADP_APPLICATIONID@@@Z) referenced in function "void __clrcall `anonymous namespace'::`dynamic initializer for 'void __clrcall myApplicationID::A0x79de3035(void)''(void)" (???__E?A0x79de3035@myApplicationID@@YMXXZ@?A0x79de3035@@$$FYMXXZ) app.obj
Error 6 error LNK2019: unresolved external symbol "public: __clrcall com::intel::adp::ApplicationId::ApplicationId(class com::intel::adp::ApplicationId const &)" (??0ApplicationId@adp@intel@com@@$$FQAM@ABV0123@@Z) referenced in function "public: static void __clrcall com::intel::adp::ApplicationId::(class com::intel::adp::ApplicationId *,class com::intel::adp::ApplicationId *)" (?@ApplicationId@adp@intel@com@@$$FSMXPAV1234@0@Z) app.obj
Error 7 error LNK2019: unresolved external symbol "public: virtual __clrcall com::intel::adp::ApplicationId::~ApplicationId(void)" (??1ApplicationId@adp@intel@com@@$$FUAM@XZ) referenced in function "public: static void __clrcall com::intel::adp::ApplicationId::(class com::intel::adp::ApplicationId *)" (?@ApplicationId@adp@intel@com@@$$FSMXPAV1234@@Z) app.obj
Error 8 error LNK2019: unresolved external symbol "public: __clrcall com::intel::adp::Application::Application(class com::intel::adp::ApplicationId)" (??0Application@adp@intel@com@@$$FQAM@VApplicationId@123@@Z) referenced in function "int __clrcall main(cli::array^)" (?main@@$$HYMHP$01AP$AAVString@System@@@Z) app.obj
Error 9 error LNK2019: unresolved external symbol "public: __clrcall com::intel::adp::ApplicationId::ApplicationId(struct ADP_APPLICATIONID)" (??0ApplicationId@adp@intel@com@@$$FQAM@UADP_APPLICATIONID@@@Z) referenced in function "void __clrcall `anonymous namespace'::`dynamic initializer for 'void __clrcall myApplicationID::A0x79de3035(void)''(void)" (???__E?A0x79de3035@myApplicationID@@YMXXZ@?A0x79de3035@@$$FYMXXZ) app.obj
Error 10 error LNK2001: unresolved external symbol ADP_DEBUG_APPLICATIONID app.obj
Error 11 fatal error LNK1120: 10 unresolved externals C:\Documents and Settings\Akshaynath\Desktop\INTEL\app\Debug\app.exe 1

Can someone give me a step by step instruction to make clr windows form application work with sdk.

I am traveling, and will be back tomorrow morning. When I return I will put a blog post on that topic together. In the meantime, please have a look at this post.

http://appdeveloper.intel.com/en-us/node/1373

Akshaynath,

To get your CLR application up and running the quickest please review your application settings and ensure they match the following:

* To access this window, simply right click on your project in the solution explorer window and choose Properties.

Compiler:

/Od /I "C:\Program Files\Intel\Intel Atom Developer Program SDK\0.9\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /FD /EHa /MDd /Yu"stdafx.h" /Fp"Debug\App.pch" /Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /nologo /c /Zi /clr /TP /errorReport:prompt /FU "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll" /FU "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll" /FU "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll" /FU "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll" /FU "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.XML.dll"

Linker:

/OUT:"C:\DEV\App\Debug\App.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\Program Files\Intel\Intel Atom Developer Program SDK\0.9\lib" /MANIFEST /MANIFESTFILE:"Debug\App.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /INCLUDE:"__DllMainCRTStartup@12" /DEBUG /ASSEMBLYDEBUG /PDB:"c:\DEV\App\Debug\App.pdb" /SUBSYSTEM:WINDOWS /ENTRY:"main" /DYNAMICBASE /FIXED:No /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT adpcored.lib adpcppfd.lib psapi.lib shlwapi.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

Once your application is configured to match this (or close), go ahead and try to recompile. Should it still result in errors, please post the errors here.

Hello Sir
Thank you for your Advice .I did as you said .But now a completely new error is showing up.I am listing it below.Please give me a solution.

C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5949) : error C2811: 'System::Windows::Forms::IDataObject' : cannot inherit from 'IUnknown', a ref class can only inherit from a ref class or interface class
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5953) : warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5957) : warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5960) : warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5964) : warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5969) : warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5973) : warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5979) : warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5982) : warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5985) : warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(6110) : error C3699: '*' : cannot use this indirection on type 'System::Windows::Forms::IDataObject'
compiler replacing '*' with '^' to continue parsing
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(6123) : error C3699: '*' : cannot use this indirection on type 'System::Windows::Forms::IDataObject'
compiler replacing '*' with '^' to continue parsing
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(6136) : error C3699: '*' : cannot use this indirection on type 'System::Windows::Forms::IDataObject'
compiler replacing '*' with '^' to continue parsing
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(6171) : error C3699: '*' : cannot use this indirection on type 'System::Windows::Forms::IDataObject'
compiler replacing '*' with '^' to continue parsing
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(6184) : error C3699: '*' : cannot use this indirection on type 'System::Windows::Forms::IDataObject'
compiler replacing '*' with '^' to continue parsing
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(6282) : error C3699: '*' : cannot use this indirection on type 'System::Windows::Forms::IMessageFilter'
compiler replacing '*' with '^' to continue parsing
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(12671) : error C3699: '*' : cannot use this indirection on type 'System::Windows::Forms::IDataObject'
compiler replacing '*' with '^' to continue parsing
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(12677) : error C3699: '*' : cannot use this indirection on type 'System::Windows::Forms::IDataObject'

Akshaynath,

Are you using Visual Studio 2008?

If your code contains no sensitive data, perhaps you can post a link to a zip archive so I can review and find a solution for you?

Hello

I have a good news and a Bad news here.Finally I succeeded in compiling my application using sdk.I use Visual Studio 2008 C++ to build my app.

But the Bad news is that After debugging an error message appears. It tells me about a debug assertion failure.I cannot actually run my application.
When I searched the net for solution I saw that some spywares can cause such error.I am a beginner and I dont know about asserts. Please help me to solve this..

Akshaynath,

Please post all error messages, this will help in the debugging process.

In the meantime, give this a try:

Go to your project properties, linker section, click Input. Add "__DllMainCRTStartup@12" to the "Force Symbol References" section.

The problem you are describing sounds like one I encountered a little while back:

http://appdeveloper.intel.com/en-us/node/1373#comment-3740

Thank you Sir

Your solution worked out.The problem has been fixed.The app is running properly. If you can , can you please explain about this 'assertion errors' and about "__DllMainCRTStartup@12". I am interested to know about it

Akshaynath,

You are quite welcome.

What seems to have happened, is that when your project was created certain CRT initialization references wer eimmited by Visual Strudio. This could have been caused by inclusio of ATL features or som other wizard selections.\

What you may try to reproduce this is to create a new c+++ project using the wizard, include ATL and see if this problem presents itself again. In any case, I am glad to see you on your way to submitting your app to the AppUp client.

Please let me know if I can be of further assistance

Leave a Comment

Please sign in to add a comment. Not a member? Join today