Click here to Skip to main content
15,927,592 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: At Last! My DCOM Tutorial for VS.NET is Here! Pin
Brian C Hart3-Jan-06 7:39
professionalBrian C Hart3-Jan-06 7:39 
GeneralRe: At Last! My DCOM Tutorial for VS.NET is Here! Pin
Nish Nishant3-Jan-06 8:00
sitebuilderNish Nishant3-Jan-06 8:00 
Questionhow can i call hook function to a specified window , if the window is activated ...? Pin
pradpb99929-Dec-05 18:16
pradpb99929-Dec-05 18:16 
AnswerRe: how can i call hook function to a specified window , if the window is activated ...? Pin
Nish Nishant3-Jan-06 6:17
sitebuilderNish Nishant3-Jan-06 6:17 
Questionprewitt c++ linux edge detector Pin
berthele29-Dec-05 13:36
berthele29-Dec-05 13:36 
AnswerRe: prewitt c++ linux edge detector Pin
Nish Nishant3-Jan-06 7:27
sitebuilderNish Nishant3-Jan-06 7:27 
QuestionWindows image Acquisition Automation layer? Pin
Roy K28-Dec-05 15:34
Roy K28-Dec-05 15:34 
AnswerRe: Windows image Acquisition Automation layer? Pin
Roy K29-Dec-05 13:48
Roy K29-Dec-05 13:48 
found it out -> yes it can here is a sample of the code to setup a webcam...

//Main Windows Image Acquisition Variables
WiaVideoClass* wiaVideo = new WiaVideoClass();
ItemClass* item;
String* selectedID;
WiaClass* wiaManager = new WiaClass();
CollectionClass* wiaObjects;

//Device specific variables
Object* device;
String* devName; //holds the name of the device

* * *

//Finds the WIA device
for(int i = 0; i < wiaManager->Devices->Count; i++)
{
//loads the wia information from the devices in the wiaManager into wiaObjects so the
// devices can be accessed
wiaObjects = dynamic_cast<collectionclass*>(wiaManager->Devices);

//accesses one of the wia deceives in the wiaObjects variable
device = wiaObjects->get_Item(i);

//passes the device by reference to wiaManager to create the WIA item
// this return value of the created item is type casted from ItemClass to item
item = dynamic_cast<itemclass*>(wiaManager->Create(&device));

//gets the device info in the object datatype and returns it, it is typecasted to a string
selectedID = dynamic_cast<string*>(item->GetPropById( (WiaItemPropertyId) WiaDeviceInfoPropertyId::DeviceInfoDevId ));

//get the webcam name
devName = dynamic_cast<string*>(item->GetPropById( (WiaItemPropertyId) WiaDeviceInfoPropertyId::DeviceInfoDevName ));

}

//some standard error messages / protection from crashing
if(selectedID == "")
{
//problem
}
else
{
//no problem
}

-- modified at 19:48 Thursday 29th December, 2005


i forgot, make sure you reference the window image acquisition com and the wia video com too
QuestionAnimated Bitmaps Pin
adamx2028-Dec-05 13:49
adamx2028-Dec-05 13:49 
AnswerRe: Animated Bitmaps Pin
Owner drawn29-Dec-05 19:05
Owner drawn29-Dec-05 19:05 
QuestionHow to get flicker free image Pin
sam o neil28-Dec-05 4:29
sam o neil28-Dec-05 4:29 
QuestionWhy NET windows forms app is so slow in loading for debugging? Pin
9ine28-Dec-05 0:44
9ine28-Dec-05 0:44 
AnswerRe: Why NET windows forms app is so slow in loading for debugging? Pin
Saksida Bojan28-Dec-05 7:38
Saksida Bojan28-Dec-05 7:38 
GeneralRe: Why NET windows forms app is so slow in loading for debugging? Pin
9ine30-Dec-05 4:41
9ine30-Dec-05 4:41 
GeneralRe: Why NET windows forms app is so slow in loading for debugging? Pin
Saksida Bojan30-Dec-05 4:55
Saksida Bojan30-Dec-05 4:55 
Questionhow to customize MS OFFICE using WINDOWS API's..? Pin
pradpb99927-Dec-05 22:19
pradpb99927-Dec-05 22:19 
QuestionWorking with Byte-Array Pin
realmontanakid27-Dec-05 21:03
realmontanakid27-Dec-05 21:03 
AnswerRe: Working with Byte-Array Pin
S. Senthil Kumar27-Dec-05 21:21
S. Senthil Kumar27-Dec-05 21:21 
GeneralRe: Working with Byte-Array Pin
realmontanakid27-Dec-05 21:33
realmontanakid27-Dec-05 21:33 
GeneralRe: Working with Byte-Array Pin
S. Senthil Kumar27-Dec-05 21:36
S. Senthil Kumar27-Dec-05 21:36 
GeneralRe: Working with Byte-Array Pin
realmontanakid27-Dec-05 21:48
realmontanakid27-Dec-05 21:48 
GeneralRe: Working with Byte-Array Pin
realmontanakid27-Dec-05 22:10
realmontanakid27-Dec-05 22:10 
GeneralRe: Working with Byte-Array Pin
S. Senthil Kumar27-Dec-05 22:34
S. Senthil Kumar27-Dec-05 22:34 
QuestionDatabinding inside User Controls. Pin
Gustyn27-Dec-05 10:06
Gustyn27-Dec-05 10:06 
QuestionUser controls Pin
Wes Aday27-Dec-05 4:34
professionalWes Aday27-Dec-05 4:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.