heres what works when i do it with 2010
this works:
Code:// hello world.cpp : main project file. #include "stdafx.h" using namespace System; int main(array<System::String ^> ^args) { Console::WriteLine(L"Hello World"); return 0; }
Looks like C# o_O
Ah we-a blaze the fyah, make it bun dem!
Isn't that c#. . . ? Or am i gravely mistaken
That, my friends - is Managed C++ (or C++.NET if you will)
When you create a new project DO NOT pick a windows forms project or windows console project - go to 'win32' and THEN pick a project there
Void (01-08-2010)
I see pDevice, are you using Hans' base or is that just the device name you're using?
I'm going to be honest with you, OP:
If you don't know what's wrong, then you don't know C++.
I know what you did wrong.
I know what you're doing wrong, too. You're using a different type of coding, it's not c++, its called:
Copy and Paste programming.
Like BA said, start with basics, read a book.