View Full Version : Win32 API Application
May 13, 2010, 10:23:13
I need simple application written by API (C\C++ laguage)
where i can get live image.
I have Video Capture Device DMx 41AUC02(usb camera)
thank you very much!
May 14, 2010, 09:00:20
Please see the simple samples that come with IC Imaging Control. For example the "callback" is a simple Win32 console application.
May 16, 2010, 10:30:04
I send you my API project.
please help me what wrong with it?
a have an Unhandled exception(in debug mode)
after if(!m_Grabber.openDev( "DMx 41AUC02" ))
Unhandled exception at 0x1d22a35b in test.exe: 0xC0000005: Access violation reading location 0x1d22a35b.
if i run application - the window close without any message
in Debug folder i have
in Release folder the same files without 'd'.
in addition i have all the time Unhandled exception in samples
in function showDevicePage.
only in sample DemoApp i have not problem!??
Windows XP Home Edition 2002 ,SP2, Microsoft Visual C++ .NET 2003 7.1.3088
May 17, 2010, 10:05:21
I am very sorry, but I was not able to reproduce your problem. Maybe this happened, because I changed some parts in the configuration. Also I moved the InitLibrary() and the setHWND() call to the WinMain() function, because these functions need only to be called once.
I changed the project configuration using the makros capabilities of Visual Studio. In the first step, I created an environment varialbe "IC31PATH". This varialbe contents the path to your IC Imaging Control 3.1. This is for example:
"c:\Documents and Settings\username\My Documents\IC Imaging Control 3.1"
"username" is your username. "My Documents" may is translated into your Windows using language.
Maybe you have to restart the computer after you have created this environment varialbe.
Now you can setup your project (which already have done in the attachment):
Open the project properties, select "All configurations", choose "C++" and enter in "Additional Include Directories " "$(IC31PATH)\classlib\include"
Then choose "Linker" and enter at "Output File" "$(IC31PATH)\classlib\$(PlatformName)\$(Configurati onName)/test.exe".
Enter at "Additional Library Directories" "$(IC31PATH)\classlib\$(PlatformName)\$(Configurati onName)". (Maybe "$(TargetDir)" will do the same job.
Now you have setup all configurations for debug and release, and if wanted also for 64 bit.
Please see the attached project for sample.
Also I would like you to remove the license key from InitLibrary next time you post a project.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.