|
any LogiTech webcam programmer here? QuickCam SDK?
norm
|
|
|
|
|
I dont know anything about the QuickCam SDK, but dont those devices have a TWAIN interface?
|
|
|
|
|
i downloaded the SDK and started playing with it. The samples are very simple and client implementation almost seems trivial - which is good.
I compiled the project and there's no compile time error and things looked good. The only problem is that it "cant connect to camera" (not using exact phrase here) for some reason. I have re-installed my webcam as well as the SDK and still have the same problem - well, i guess i will have to try do this on a different machine... more, the software that came with the webcam worked as normal. no error no nothing. but the sample project that came with the SDK didnt work for some reason (connection to camera)...
My question is: if u have experience with logitech webcam SDK, it'd be helpful if u can tell me such and such are the usual cause for problem associated with camera connection.
here's the URL:
http://developer.logitech.com/developer/
Thanks.
norm
|
|
|
|
|
one cool feature that comes with the logitech quickcam: motion detection =)
it would be cool if u can access the video/individual frames in realtime (image processing)... but perhaps that cant be done with avi.
i think u prolly need to do this by taking a sequence of still shots (jpeg or whatever format it supports) and process each frame individually... anyway, cool toy
norm
|
|
|
|
|
|
Hey guys
I have a CWinThread thread that I start off from a service. I also show a modeless dialog from this thread. My intention is to use SetThreadDesktop and to bring up the dialog box in one of the active virtual desktops. But my problem is that SetThreadDesktop fails and my dialog comes up in the current desktop. If I convert this to a worker thread (using CreateThread ) and then bring up my modeless dialog it works fine (I provide the message pump myself).
The document of SetThreadDesktop says this :-
The SetThreadDesktop function will fail if the calling thread has any windows or hooks on its current desktop (unless the hDesktop parameter is a handle to the current desktop).
My guess is that MFC threads do some hooking of their own and this is why SetThreadDesktop is failing. Does anyone know of any work-around to this issue?
Regards,
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Don't know if this is going to help you, but in case you are playing with a service, make sure to check the "interactive user" in the service properties (this can be done programmatically as well).
|
|
|
|
|
.S.Rod. wrote:
Don't know if this is going to help you, but in case you are playing with a service, make sure to check the "interactive user" in the service properties (this can be done programmatically as well).
Yup, that option is already set
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Hey everyone!
Okay, I need to know how to pass an instance of a class as a parameter for a constructor, and then have that constructor call the constructor of the supplied parameter. Kinda like this piece of code:
class classA
{
public:
classA (int somevalue, classB classBInstance);
void wasteTime ();
private:
classB *classBInstanceCopy;
};
class classB
{
public:
classB () { };
classB (int somevalue);
int something;
};
classB::classB (int somevalue)
{
something = somevalue;
}
classA::classA (int somevalue, classB classBInstance) : classBInstance (somevalue)
{
classBInstanceCopy = &classBInstance;
}
void classA::wasteTime ()
{
printf ("Hey, how about a %d?", classBInstanceCopy->something);
}
void main ()
{
classB myInstance;
classA myClass (myInstance);
myClass.wasteTime ();
}
I think you get the idea: I wanna have a class where the constructor takes another class as a parameter, call the constructor of that class and then later be able to reference that supplied class. How is that possible? I'm sure there's some way using pointers, but how? Oh, and anyone know how I can get rid of that empty classB constructor? As far as I understand it's only there so I can create an instance of classB in the fassion of "classB myInstance". So, if anyone has an idea, let me know!
Thanks
tilli
|
|
|
|
|
There are several solution. One solution is template.
ClassB<classa> cbObject;
template<typename t="">
class ClassB
{
...
T *Create();
};
template<typename t="">
T* ClassB::Create()
{
T *pT = new T(// Parameter);
return pT;
}
Kuphryn
|
|
|
|
|
Thanks for the reply! Now I'm not really familiar with templates, so for my special case, where I want the parameter passed to be a descendant of classB (so something declared class classWhatever : public classB), what do I need to do? I can somewhat see the use of templates here, I would probably put a templated class instance into classA and then have classA have called that instances constructor, based on what type of class was passed to classA's constructor. Where do I need to make the changes then?
Tilli
|
|
|
|
|
Okay, this seems to do it just as well:
template <class clType>
class classA
{
public:
classA (int somevalue);
void wasteTime ();
private:
clType classInstance;
};
class classB
{
public:
classB () { };
classB (int somevalue);
int something;
};
classB::classB (int somevalue)
{
something = somevalue;
}
template <class clType> classA<clType>::classA (int somevalue) : classInstance (somevalue)
{
}
template <class clType> void classA<clType>::wasteTime ()
{
printf ("Hey, how about a %d?", classBInstanceCopy.something);
}
void main ()
{
classB myInstance;
classA<classB> myClass (myInstance);
myClass.wasteTime ();
}
Looks good? Alright! Thanks for the hint!
Tilli
|
|
|
|
|
|
I want to add some documentation to my
program. Something where they can click
Here/Learn More and it just talks about
various topics.
Any one know of a simple demo project
that would do this and that would work
on all operating systems? Please let me
know.
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|
|
Sir, If some application running on a PC trying to connect outside word, then how can we know about that. I want to keep watch on all outgoing connections made by all the application. Help me if you can.
C.R.Naik
|
|
|
|
|
Hmm, this seems to be kinda my area to watch. Although my suggestions have nothing to do with coding. There are a few programs online that you can download that will do pretty much what your asking for. I think one such program was called NetWatcher. Perhaps a search on Yahoo, Google, or some other search engine using the keywords, "Net Monitor, Net watcher, IPX logger, Connection watcher" or some similiar keyword might dredge up some good results.
"Don't tell me I'm smart, I might actually believe you!"
|
|
|
|
|
Can any one give me a hand on above
thx in advance
|
|
|
|
|
One solution is Winsock. Communicate directly with to server via socket.
Kuphryn
|
|
|
|
|
hi,
i want to know how costly is it to create fonts,pens etc and u know, selecting and destroying every time, say in ondraw.
My problem is this(with font only)
I have to adjust the font size for the names of somethings which will be displayed in resiable boxes.the names should be appropriately sized according the box size.
any help
Raja huus
posted once.no replies
|
|
|
|
|
What do you mean with how much it cost?
How much memory it takes?
If so, it depends on how much GDI you do...
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
i mean the speed of such a program that has to constantly create different sized fonts ...any easier way
|
|
|
|
|
This may sound stupid, but here we go anyways. Let's say I have 2 applications. (Prog1 and Prog2) What I want to do, is have Prog1 run Prog2, then periodically check to see if Prog2 is still running. Obviously I'll need a timer event to do this, but I don't know how to start Prog2, or see if it's still running. If you can tell me that much, I can do the rest, and will be very gratefull. NOTE: I do know how to start Prog2 using WinExec() and ShellExecute(), but I have a sneaky suspicion that I'll need to use CreateProcess(), of which I know nothing.
"Don't tell me I'm smart, I might actually believe you!"
|
|
|
|
|
Magius96 wrote:
This may sound stupid,
I know that feeling.
How about giving Prog2 a title and then
bool bRet = false;
HWND hWindow;
hWindow = ::FindWindow(NULL, _T("Prog2"));
if(hWindow!=NULL) bRet = true;
Or another way might be to get Prog2 to create a named Mutex that Prog1 checks for.
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining.
Said by Roger Wright about me.
|
|
|
|
|
Thanks for the advice, but I can't use the first suggestion, because Prog2 is actually a dos program, and several copies of it could be running at once. I also can't use the 2nd suggestion, because Prog2 is already compiled.
"Don't tell me I'm smart, I might actually believe you!"
|
|
|
|
|
Magius96 wrote:
I also can't use the 2nd suggestion, because Prog2 is already compiled
Yes you can. He suggested you'd modify Prog1 to wait for Prog2. Basically you CreateProcess(Prog2) and WaitForSingleObject() on the process handle.
--
This space for rent.
|
|
|
|