|
Hi all,
at a certain place of my code i test the controls of my view on the RuntimeClasses.
If they are CEdit i make a special operation ...
At the View i send the variables (as value, not as pointer) to this function,
the function is MyDDX_Control which executes some operations before the variable of type CEdit or CStatic goes to the real DDX_Control-Function.
Already before i send the CStatic variables (in my case CFontStatic) to MyDDX_Control i check them
via the Watching-Tool
the first Label is correctly of type CFontStatic,
the second Label (also declared as CFontStatic) is as value of type CFontStatic and if i check
it as pointer with the watcher, the type is CCustomerView ( The Class-name of the view where the control is located ...
I've nothing changed into the source code appart some definitions.
I put into the class-header a blank-definition of classes which appears in this class and the include of the real header of the pointers into the .cpp
class xxx;
public class yyy
{
public: xxx *var;
}
but appart of these changings i've nothing changed.
Is it possible that those changings provokes errors like this?
Big thanks !!
|
|
|
|
|
I saved the source code and restored old ones.
With the old source codes it works...
Now i have a lot of checks to do :S
|
|
|
|
|
ya I see your problem!!!
your class xxx is too explicitly rated and class yyy has denied it access, as she wants to be wined and dined first, and talked to like how was your day dear....no wham bam thank-you ma'am.....no sir class yyy is too classy for that!!!
-- modified at 16:10 Thursday 12th July, 2007
Yours Truly, The One and Only!
|
|
|
|
|
I have developed a server and client application for lan monitoring.The problem is that I have to change the permissions of of my client application for all users, but changing permissions in all the computers is hectic task(when we have a large no. of computers connected to server). so I want to cahnge permissions from server only without going to all computers.
Is there any application to do this.
please help urgently
|
|
|
|
|
Be patient while asking a question and Do Not cross post across the forums.
People do help you here but asking them to post answers urgently is not a GOOD idea.
Can you post some details about the working of your application and what do you exactly want to achieve. Specific questions will help you to get the answers more rapidly.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I regret that i posted the same question in many forums.
my software is related client- server relationship in which server appication runs in the server and client appication in the client computers.whenever any user login in a particular computer in the lan that pc with user name will be displayed in the main listbox of the application that is running in the server in order to administrate the whole LAN. whenever any user login to the computer that client application extracts the server ip address from registry as i am using the 2 or 3 registry keys. the problem is not with administrator account as it has permission to access the registry values but the problem is with local users who have no such permissions.
so i want to set permissions for those 2 or 3 registry key values as "full control" for all users so that any user login , he can be displayed in the main window of the server appication running in the server.
so please help
Rahul Singhal
|
|
|
|
|
rahul_31366 wrote: I have to change the permissions of of my client application for all users
This is usely no good design. But I reckon it depends on what you are trying to achieve. Any more detail ?
|
|
|
|
|
Hi, I'm a newbee in programming world and I learn to program in C++ by analyzing source codes. I don't know whether this is good idea but... Anyway the reason why I posted this message here because I have a problem. Whenever I download someones source code ( mainly simple games like tetris) there is included header file called graphics.h. When I compile this source code it reports me that it can't find such header file. What is the problem? I mean I know that i don't have such header file but why? I'm using Visual Studio 6 and VS 2005.
|
|
|
|
|
Do you have this file on your computer?
|
|
|
|
|
You cannot find graphic.h when you try to compile with visual studio because it is a borland extension. Microsoft uses a different one, so is gnu etc etc.
Try compiling with Borland Builder it should work...
Downloading someone's source code and trying to compile it with vis studio is not enough. You have to take into account which platform was used to write the program. For example you could try download a game which was written for Linux and try to compile it in visual studio. It will most certainly fail because it will use libraries and extensions that were only developed for the linux system.
|
|
|
|
|
I think graphics.h is a part of Borland Turbo C++. It does not come with MS Visual studio.
You could install Turbo C++ 3.0 etc to compile the code.
Also you could port it to gcc to run on *nix based systems:
http://www.sandroid.org/TurboC/[^]
this is this.
|
|
|
|
|
I am trying to capture a video from web cam but I am getting error 'ICaptureGraphBuilder2' : missing storage-class or type specifiers
Can any one help me how to use DirectShow. I have already include the Dshow.h and Strmiids.lib. but still I am geting error message
S.Yamini
|
|
|
|
|
Did you sww that forum,I test ICaptureGraphBuilder2 with my compiler when I include that headers file it doesnt any problem,whats your compiler?
|
|
|
|
|
If it is working for u it is great to hear that. I am using visual studio 6.Can i know what complier u r using and what header u have added to it.
S.Yamini
|
|
|
|
|
My compiler is VS2005 and I include "Dshow.h" and declare this interface CComPtr ICreateDevEnum pCde =NULL; and then use of CoCreateInstance.
|
|
|
|
|
Can u send me the whole code to my id
yamini.s@europlex.in
S.Yamini
|
|
|
|
|
What code? and I said to you on your previous message about that link.
|
|
|
|
|
Can I know what lib u added so that it can work.I am using Visual studio 2003.I am sorry for asking the code. But for past three days I am setting with this error. Can I know how u implemented it.
S.YAmini
|
|
|
|
|
I dont import any lib files I said I got an linker error that it seems I need to include a lib file but for that interface I include dshow.h and it worked.
|
|
|
|
|
R u using directX 9.0. What compiler u r using. Can u tell me what steps u have used
S.Yamini
|
|
|
|
|
Can I know what lib u added so that it can work.I am using Visual studio 2003.I am sorry for asking the code. But for past three days I am setting with this error. Can I know how u implemented it.
S.Yamini
|
|
|
|
|
Im not sure your problem will be solve with it or no but did you install DirectX 9.0 SDK ?
|
|
|
|
|
Yes I have installed it. can I know how to declare interface for my compiler. when it works for u it should work for me also. but it is not working.Please help me.
S.Yamini
|
|
|
|
|
I think its better yo show your code so if I know I answer to you of if other people knows then they answer to you.
|
|
|
|
|
#if !defined(AFX_CAPTUREVIDEO_H__057736B5_B61B_4850_8D82_E181E0B25B61__INCLUDED_)
#define AFX_CAPTUREVIDEO_H__057736B5_B61B_4850_8D82_E181E0B25B61__INCLUDED_
//--------------------------------------------------------------------------//
// Copyright DILLIP KUMAR KARA 2004
// You may do whatever you want with this code, as long as you include this
// copyright notice in your implementation files.
// Comments and bug Reports: codeguru_bank@yahoo.com
//--------------------------------------------------------------------------//
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CaptureVideo.h : header file
#include <atlbase.h>
#include <windows.h>
#include <dshow.h>
//
enum PLAYSTATE {STOPPED, PAUSED, RUNNING, INIT};
#define WM_GRAPHNOTIFY WM_USER+1
#ifndef SAFE_RELEASE
#define SAFE_RELEASE( x ) \
if ( NULL != x ) \
{ \
x->Release( ); \
x = NULL; \
}
#endif
/////////////////////////////////////////////////////////////////////////////
// CCaptureVideo window
class CCaptureVideo : public CWnd
{
// Construction
public:
CCaptureVideo();
// Attributes
public:
void StopCapture();
void StartTVTuner();
void StartWebcam();
void StartCompositeVideo();
void StartSVideo();
void RemoveGraphFromRot(DWORD pdwRegister);
void UnIntializeVideo();
HRESULT InitializeVideo(HWND hWnd);
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCaptureVideo)
//}}AFX_VIRTUAL
// Implementation
public:
void ResizeVideoWindow();
virtual ~CCaptureVideo();
// Generated message map functions
protected:
//{{AFX_MSG(CCaptureVideo)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
afx_msg HRESULT OnGraphNotify(WPARAM wp , LPARAM lp);
DECLARE_MESSAGE_MAP()
protected:
void ResizeVideoWindowMoniker();
void CloseInterfacesMoniker();
//----------------For Webcam-----------------//
void RemoveGraphFromRotMoniker(DWORD pdwRegister);
HRESULT AddGraphToRotMoniker(IUnknown *pUnkGraph, DWORD *pdwRegister);
HRESULT SetupVideoWindowMoniker();
HRESULT HandleGraphEventMoniker();
HRESULT FindCaptureDeviceMoniker(IMoniker** ppMoniker);
HRESULT AddCaptureMonikerToGraph(IMoniker* pMoniker);
HRESULT CaptureVideoByMoniker();
HRESULT GetInterfacesMoniker();
//------------------Video--------------------//
void DisplayMesg(TCHAR* szFormat, ...);
LRESULT ClearInterfaces(WPARAM wp, LPARAM lp);
void CloseInterfaces();
HRESULT AddGraphToRot(IUnknown* pUnkGraph, DWORD* pdwRegister);
HRESULT CaptureVideo();
HRESULT HandleGraphEvent();
HRESULT ChangePreviewState(int nShow);
HRESULT SetupVideoWindow();
HRESULT FindCaptureDevice(IBaseFilter** ppSrcFilter);
HRESULT GetInterfaces();
private:
UINT chSVideo, chCompVideo , chWebCam , chFullScreen , chAlwaysOnTop ;
int nVSourceCount;
int nAnalogCount;
CBrush m_emptyBrush;
DWORD m_dwGraphRegister;
BOOL bDevCheck;
HWND m_hApp;
//------------------Video--------------------//
IVideoWindow* m_pVW ;
IMediaControl* m_pMC ;
IMediaEventEx* m_pME ;
IGraphBuilder* m_pGraph ;
ICaptureGraphBuilder2* m_pCapture ;
IBaseFilter* pSrcF;
PLAYSTATE m_psCurrent;
//----------------For Webcam-----------------//
IVideoWindow* m_pVWMoniker ;
IMediaControl* m_pMCMoniker ;
IMediaEventEx* m_pMEMoniker ;
ICaptureGraphBuilder2* m_pCaptureMoniker ;
IFilterGraph2* m_pFilterGraph ;// IFilterGraph2 provides AddSourceFileForMoniker()
BOOL bVideo , bWebCam;
int vType;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CAPTUREVIDEO_H__057736B5_B61B_4850_8D82_E181E0B25B61__INCLUDED_)
I have copied my header file code but I am getting error only for ICaptureGraphBuilder2
S.Yamini
|
|
|
|