Zoklet.net

Go Back   Zoklet.net > Technology > Technophiles and Technophiliacs > Codes of all kinds

Reply
 
Thread Tools
  #1  
Old 01-18-2010, 02:23 AM
Mutant Funk Drink's Avatar
Mutant Funk Drink Mutant Funk Drink is offline
Grand Duke
 
Join Date: Jan 2009
Thanks: 2,651
Thanked 1,560 Times in 1,001 Posts
Confused Need help copying simple functions from C++ to VB

I own a Logitech Orbit camera, which is basically a camera that has Pan/Tilt/Zoom support.

The program that came with the camera has basic control over PTZ, but I want to experiment more with it on my own. Perhaps have it track movement or something.

Logitech released and example of controlling the PTZ in C++.
http://www.quickcamteam.net/document...Z-1.1.zip/view

Even though it's fairly simplistic, I want to use these functions in a GUI of some kind and I'm having a tough time doing that in C++. I should learn C++, but I don't have the time right now. I do know Visual Basic, however.

I've already [foolishly] tried converting the code to VB using one of Tangible Software's programs, but it didn't work.

Pretty much the camera is controlled by DirectShow commands, and I want to know how I can control the camera the same way in Visual Basic.

I'd greatly appreciate some help. The C++ code seems fairly simple, and it's from the Logitech site so you know I haven't written any malicious code.
__________________
Aristophanes once wrote, roughly translated; "Youth ages, immaturity is outgrown, ignorance can be educated, and drunkenness sobered, but STUPID lasts forever."

Give a man a fish, he'll eat for a day. Give a man religion, and he'll starve praying for a fish.
Reply With Quote
  #2  
Old 01-19-2010, 11:43 PM
a334jv2df's Avatar
a334jv2df a334jv2df is offline
Duke
 
Join Date: Jan 2009
Thanks: 661
Thanked 742 Times in 519 Posts
Send a message via ICQ to a334jv2df Send a message via AIM to a334jv2df Send a message via Yahoo to a334jv2df
Default Re: Need help copying simple functions from C++ to VB

Why can't you just create separate executable files using c++ for each / every task that needs to be done, then create a simple VB GUI that executes a specific c++ exe file whenever the specific button is pressed
Reply With Quote
  #3  
Old 01-20-2010, 12:18 AM
Mutant Funk Drink's Avatar
Mutant Funk Drink Mutant Funk Drink is offline
Grand Duke
 
Join Date: Jan 2009
Thanks: 2,651
Thanked 1,560 Times in 1,001 Posts
Default Re: Need help copying simple functions from C++ to VB

Quote:
Originally Posted by TheHateMachine View Post
Why can't you just create separate executable files using c++ for each / every task that needs to be done, then create a simple VB GUI that executes a specific c++ exe file whenever the specific button is pressed
I was thinking about that, or possibly adding command line parameters to the program so I wouldn't have to have a separate exe for every degree of pan/tilt.

I'd still like to have full control embedded in the program, but if it isn't possible then I'll have to resort to doing that.
__________________
Aristophanes once wrote, roughly translated; "Youth ages, immaturity is outgrown, ignorance can be educated, and drunkenness sobered, but STUPID lasts forever."

Give a man a fish, he'll eat for a day. Give a man religion, and he'll starve praying for a fish.
Reply With Quote
Reply

Bookmarks

Tags
copying, functions, simple

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Are discontinuous functions always rational functions? TwinkleTits Math, Science, and Engineering 5 12-16-2009 11:46 AM
Key Copying? Uber_Apples Generally Speaking 12 10-24-2009 08:03 PM
Need help with functions. Really Awesome Nickname Math, Science, and Engineering 33 07-09-2009 04:18 AM
Simple Solutions for Simple Minds bornkiller DIY 7 07-03-2009 12:57 AM
Key copying idea MrNatowski Bad Ideas 5 06-09-2009 07:14 AM


All times are GMT. The time now is 09:11 AM.


Hot Topics
On IRC
Users: 4
Messages/minute: 0
Topic: "http://www.zoklet.net/..."
Users: 21
Messages/minute: 0
Topic: "ask ibm why atlantis is real"
Users: 9
Messages/minute: 0
Topic: "vaginaboob"
Advertisements
Your ad could go right HERE! Contact us!

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.