I am trying to control the backlight of a device using labview touch panel module. Does anyone have any ideas on how to do this? In C++ I could call a setdevicepower() function but labview doesn't have the ability that I know of to do this. I am interfacing with Windows CE 5.0 or 6.0. Any help would be good. Thanks!
I don't know much about Windows CE, but I'll try to reply.
In your C++ code I suspect you are using some library. Looking at SetDevicePower on msdn it's coredll.lib, right ?
What you could do is to find a coredll.dll (if it exists) and then call this library from within LabVIEW (see: How Do I Call a Dynamic Link Library (DLL) from LabVIEW? ) . If the dll doesn't exist, you could write your own in C++.
Related
I was trying to use a COM DLL written VC++ in VB 6 with the help of this Article - http://www.codeproject.com/Articles/8745/A-Beginner-tutorial-for-writing-simple-COM-ATL-DLL
I have created the COM Dll as well as VB forms and the project works fine.
Now I am trying to use the same COM dll in a Win32 Windows forms application written in VS2008.
I have created a similar form to that of vb, I have added the reference of COM Dll to the project.
I would like to know how to use the same Get and Put functions in VC++.
Any pointers towards related tutorials or any info on how to do it would be helpful. Thanks in advance
I am going to access a C# library from C++ in a embedded Linux system. The library is going to be made using Mono.
I have a large code base written in C++ running on a embedded Linux.
Because the C++ is unmanaged I can't just make calls to the library.
I was thinking about making a wrapper layer on top of the library and then using IPC calls.
I don't make the C# library myself, so maybe I need some kind of wrapper layer.
Any ideas will be appreciated.
You need to link to the mono runtime (embed it), and then call it. See http://www.mono-project.com/Embedding_Mono
I have just downloaded Visual Studio 2012 Express, I have created a new Win32 project on C++ and I can't find where find the form so I can add some controls to it using the IDE exactly as I used to do in C#!
Could someone please help me on how to add a Form and Some controls on it using the IDE ?
You can't create forms for native C++ applications by GUI. You have to either use MFC or C++/CLI, or stick to C#. Unfortunately, GUI applications creation in pure C++ isn't very easy.
You could also take a look at Qt Creator - although I don't like it personally, it might be just what you need.
You can add a .rc file to your solution, and then from resource view add a new Resource. Then you can work with the toolbox, I hope that helps.
I have been told to test a codebase using Fitnesse tool. But the problem is that the code is written in VC++ with MFC and other windows programming things (of which I have no idea at present).
I know how to use Fitnesse tool for java but not for VC++. I read it on their site about some documentation regarding vc++, but was not clear. Also I am working in windows environment and I am not allowed to use Linux. So please if somebody can tell me how to integrate it for VC++, so that I am able do my job.
You can use the java fitnesse, but you need a custom "testrunner" implementation.
There is one for dotNET, but I am not sure one exists for MFC
Try http://fitnesse.org/PlugIns for a full list
You may be able to port the C++ slim to MFC
i am new in wince developmen and know about c#.net i want to know about intial steps to begin working on QT with c# for wince thanks
My bet is that you're navigating uncharted territory here. There is a desktop project that allows C# to be used with QT called Qyoto but I suspect that it's unlikely anyone has put in the effort to try using it on a device. You would probably have to pull the source and port it manually. My bet is that just using the Compact Framework, which is already supported under Windows CE, is going to be far less effort.