|
Could probably help you out but I'd need to see the code. I don't do well in generalities for these kinds of problems. Up to you.
mphilmon@pobox.com
|
|
|
|
|
hey yaar
in the OnCommand
u can filter your menu command by LOWORD(WPARAM)
all the menu commands will be go there....so try..
sofware behind everything...
Enjoy with the codes...
Renjith Pandalam
|
|
|
|
|
Hi,
Can ne body help me to write an application
which takes a shot from camera and save it
into a file on HDD..
Its a LG camera
Any links or nething that i can read
Sameer
|
|
|
|
|
There's a good example (several actually) in the DirectX 8.1 SDK (available from the MSDN Downloads).
Under Samples\Multimedia\DirectShow\Editing. It's called StillCap and illustrates movie and still capture.
Derek Lakin.
I wish I was what I thought I was when I wished I was what I am.
Salamander Software Ltd.
|
|
|
|
|
Hi,
Actually what i want is that in my application
whenever a user presses a button, the camera is
turned on.. takes a shot and saves that in a
JPG or BMP file and frees the resources..
This should be done w/o doing anything on the
screen
I've done it for a Motion (avi - timebased).. but how
to do it for a Shot
Please Help
Sameer
|
|
|
|
|
Then I guess you'll have to get your hands dirty and rip out the frame grabbing stuff and put it into your app.
Sorry, but I don't enough about video capture to help much. I just hacked the example I mentioned to get it to behave how I wanted (but I didn't change the video capture functionality).
Derek Lakin.
I wish I was what I thought I was when I wished I was what I am.
Salamander Software Ltd.
|
|
|
|
|
Hi everybody!
I need help to achieve a project at work.
My app is a MFC dialog based. I need to access variables and control between 3 modeless dialog. How can I do that. I've tried everything I know.
I have already a lot of work done in both 3 dialogs...
Let me explain what I've done.
- I have 3 templates : IDD_MainDlg , IDD_Dialog1 , IDD_Dialog2
- IDD_MainDlg's class is CMainDlg (Created with the wizard at startup...)
- IDD_Dialog1's class is CDialog1 and then IDD_Dialog2 is CDialog2.
- I've declared :
CDialog1 m_Dialog1;
CDialog2 m_Dialog2;
inside the CMainDlg header file.
- I've created :
m_Dialog1.Create(IDD_Dialog1,this);
m_Dialog2.Create(IDD_Dialog2,this);
m_Dialog1.ShowWindow(SW_SHOW);
m_Dialog2.ShowWindow(SW_SHOW);
inside the OnInitDialog() of CMainDlg;
Let say that I have a CSliderCtrl object called 'm_Slider' declared inside the CDialog2 header file. When I'm in CMainDlg, I can access this variable by typing m_Dialog2.m_Slider without problem or error. Where I'm confused is when I'm inside CDialog1 and want to access m_Slider.
This is the 'best one' of all codes I've tried :
CDialog2* pWnd;
CMainDlg pdlg;
pWnd = &pdlg.m_Dialog2;
pWnd->m_Slider.SetPos(0);
I always get an assertion error. When debugging it always say that there is no handle
_AFXCMN_INLINE void CSliderCtrl::SetPos(int nPos)
{ ASSERT(::IsWindow(m_hWnd)); ::SendMessage(m_hWnd, TBM_SETPOS, TRUE, nPos); }
(m_hWnd is always 0x00000000 )
What can I do to get all the things working well ?!?!?!
I have a lot of data to pass between theses three dialogs so...
Best regards,
Brind
If coding looks like drugs... I should go on therapy...
|
|
|
|
|
You're code is not working because the window has not been created yet. Always keep in mind that just because you create an instance of an MFC class such as CDialog (or a derived class), the encapsulated window isn't actually there until you tell the class to create it.
With regards to communicating data between these various dialogs, there several ways to achieve this. If you're simply trying to get initialization data to one dialog from another, you can change the constructor to accept this information. Then in the dialog's constructor, you save this information in member variables and finally use it to init the dialog's controls in either the OnInitDialog or DoDataExchange function.
Cheers,
Tom Archer
Author, Inside C#
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.
|
|
|
|
|
Hi Tom ,
I don't understand what you said when you tell that 'the encapsulated window isn't actually there until you tell the class to create it'. Is this because I create my window inside the main window or what? Would you supply me a small example that will point me in the right direction.
Also, my datas to be communicated aren't only to be passed at initialisation of the dialog, they are to be communicated all the time until I stop the app.
Im newbie in C++ so, there's a lot of thing that confuse me!!
Thanks,
Brind
If coding looks like drugs... I should go on therapy...
|
|
|
|
|
When you instantiate a CDialog, you don't have a window yet. You won't until you specifically tell the class to create its underlying window. In the case of a modal dialog this is done via DoModal. In the case of a modeless dialog, this is done via Create or CreateIndirect. In you situation, you're referring to controls on a dialog that haven't been created because their containing window (the dialog) hasn't been created. Therefore, you'll need to move that code using one of the techniques I described.
Cheers,
Tom Archer
Author, Inside C#
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.
|
|
|
|
|
What is this function used for?
No seriously, I have been playing around with CFtpConnection, specifically PutFile, and I have found that i need to specify exacly where the file should be placed on the server. I tried to use SetCurrentDirectory but to no avail. The functions returns success but when I just put the file name in PutFile it transfers it to the root. To me SetCurrentDirectory should let me put just the file name(no path) in PutFile.
So my question is. Am I doing it wrong and SetCurrentDirectory should work the way I want it to, or am I suck with PutFile with the Path\FileName.
Thanks in advance
***********************
Tony Fontenot
Recreational Solutions
tony@recsolutions.com
***********************
|
|
|
|
|
That's definitely strange because I've written a very basic FTP client and it works fine.
Cheers,
Tom Archer
Author, Inside C#
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.
|
|
|
|
|
It worked perfectly for me, you tried using GetCurrentDirectory and then set the path relatively with SetCurrentDirectory ? What was the error that GetLastError() reports ?
x = GetLastError();
Better put the variable x on the watch window with the modifier hr like this:
x,hr
what the error says ?
See this on this page for a basic ftp tool using wininet :
Some tips
Cheers,
Joao Vaz
Frustrated TCL programmer,good c++ programmer wannabe
|
|
|
|
|
Got it working thanks all
***********************
Tony Fontenot
Recreational Solutions
tony@recsolutions.com
***********************
|
|
|
|
|
how can i add Explorer's functions ,for example,the list view of the Explorer ,to my program?
i am coming quietly just as i am leaving quietly.
|
|
|
|
|
You have to implement IShellBrowser.
|
|
|
|
|
Hi there,
I made 3 forms(dialogs) in the resource in my project.
How can i change the document's form in my program ?
For example the menu has 3 items:
FORM 1
FORM 2
FORM 3
Now, i want to when i click on each items, program show me the forms ...
So, please tell me how can change forms in the document(formview) ?!!!
Thanks.
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
You need to create a CFormView-derived class via the ClassWizard for each dialog resource that you defined. Then you need to call CFrameWnd::CreateView() for each view. Then use CFrameWnd::SetActiveView() to switch between them.
cheers,
swinefeaster
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|
|
Thanks for help
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
In addition to swinefeasters' advice (gotta love a handle like that), check out this thread where I've explained step by step how to do this.
Cheers,
Tom Archer
Author, Inside C#
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.
|
|
|
|
|
Hello Master. Tom Archer,
Thanks alooot for example, it is my honor that someone like you answer me
With Best Regards.
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
You're very welcome. Let me know if you need any further assistance.
Cheers,
Tom Archer
Author, Inside C#
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.
|
|
|
|
|
Hi there,
For example i want to put Flex Grid activex in CView ...
How could i do that ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Haven't test it before but I guess you can do it with Create() function of that ActiveX.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
Hi, i would like to give my toolbar buttons the IE6 look. Well, is this a style i should set, are they owner draw??? Any idea
Thanks
Gabriel
don´t worry drink happy
|
|
|
|