|
|
Uninitialized STARTUPINFO structure is one of the problems of your code. It can be fixed like this:
STARTUPINFO StartupInfo = { sizeof(STARTUPINFO) };
|
|
|
|
|
In addition, it seems that the invoked regedit tools cannot work in multi-instance mode. For example, I cannot start more then one regedit application from Windows menu or command line. That's why only some of your calls work.
This probably means that you cannot do multi-threaded export using regedit tool.
|
|
|
|
|
CREATE_SUSPENDED
ResumeThread()
Kuphryn
|
|
|
|
|
iam calling the function from another class.in that function i have SetTimer(0,1000,NULL).
but it will no work.
ONTimer is not calling.
ram.
|
|
|
|
|
do you have an HANDLER ( ON_WM_TIMER ) for the timer ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
yah
void CMPEGPlayerDlg::OnPlay()
{
Onstop();
int k = m_list7.GetCurSel();
m_list7.GetText(k,m_SongName);
if(!m_SongName.IsEmpty())
{
OpenNew(m_SongName);
MessageBox(m_SongName);
}
if(m_Player.PlayerMode() == pmReady)
{
MessageBox("bye");
m_Player.Play();
}
SetTimer(0, 1000, NULL);
}
here it is working because it is in the same class
where as
void CMPEGPlayerDlg::OnPlay(CString string)
{
Onstop();
m_SongName=string;
if(!m_SongName.IsEmpty())
{
OpenNew(m_SongName);
MessageBox(m_SongName);
}
if(m_Player.PlayerMode() == pmReady)
{
MessageBox("hi");
m_Player.Play();
}
SetTimer(ID_TIMER, 1000,NULL);
}
herer not working because this fuction is calling from different class.
ram
|
|
|
|
|
How did you call settimer???
"Dream bigger...Do bigger...Expect smaller"
aji
|
|
|
|
|
thank u for ur reply,
what i cann't get u,
ram.
|
|
|
|
|
Perhaps it does not work because of first parameter, which is zero. According to documentation, it must be a non-zero identifier.
Try something like this:
SetTimer(1, 1000, NULL);
I hope it works.
|
|
|
|
|
|
How to declare WM_TIMER? and How to use settimer in another class
whitesky
|
|
|
|
|
i completed my project in release mode. But when i compiled it in debug i am unable to run because of assertion failures,and mfc errors etc.,
please tell me the solution
Regards
Venu g
venu
|
|
|
|
|
well, when you see an ASSERT, just press the "Break" button, and check the line where the ASSERT happens, and fix the errors that provoked the ASSERT.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
thans for your suggestion Maximilien,
but at the same time i am getting mfc send report error when i press that complete application is closing
thanks
venu
venu
|
|
|
|
|
i am getting following error !
hPrevInstance unused and expression can't be evaluated
plz help me
venu
venu
|
|
|
|
|
Hi all,
What is the difference between Picture and Bitmap?
Thanks to all.
|
|
|
|
|
Your question might lead to several philosophical discussions, because it is not at all specific. So, it is not easy to try to use proper definitions without a minimum context to focus on. Anyway, I'll try.
A picture is a general term for a visual representation of something. A picture, by this definition, has to contain both aspects: it must be a representation, and it must be visual.
A bitmap, by itself, will not be a picture. It will just be a sequence of bits. It will become a picture when you display it on a screen, or when you print it on a piece of paper, or when you make it visible in any way.
So, generally speaking, a bitmap is a way to store image data, so that it can be represented as a picture (when used by a display device). Note that so do JPEG, TIFF, GIF, PNG, and many more image data storage formats. None of them are pictures until they are displayed.
Most often with computers the term bitmap is used to refer to the storage of picture data without compression. In this form, there is a data unit for each pixel. For example, an RGB bitmap will contain 3 bytes for each pixel. In a 6 mega-pixel image from your digital camera the bitmap would then have 18 MB in size.
The general oposite of using the term bitmap is usually to refer to compressed images. In these formats, a data unit is used to represent a larger number of pixels. For example, a high quality JPEG would typicall have 0.3 bytes per pixel (about 10 times less than bitmaps). By allowing JPEG compression to discard more and more information then you can have as few as 0.06 bytes per pixel (a single byte will generate enough information to draw more than 16 pixels) and you may still recognize the picture it intends to represent. There are also, of course, lossless compression formats.
To back this up here are google's definitions:
define:picture - a visual representation (of an object or scene or person or abstraction) produced on a surface; "they showed us the pictures of their wedding"; "a movie is a series of images projected so rapidly that the eye integrates them"
define:bitmap - The method of storing information that maps an image pixel, bit by bit. There are many bitmapped file formats, .bmp, .pcx, .pict, .pict-2, tiff, .tif, .gif (89a), and so on. Most image files are bit mapped. This type of file gives you the ´jaggies´, when examined closely you can see the line of pixels that create edges. Bitmap images are used by all computers. The desktop or screen information for all Windows machines uses .bmp files, while the Macintosh uses pict files.
If you take these definitions too far you will run into problems. People could argue that you can have a bitmap of all black pixels, representing no light at all, and that that bitmap can never be represented as a picture. The basis for this argument, is that since a picture is defined as a visual representation, then it must contain some light. If it does not show any light then it is not a picture. However, the bitmap can have all its pixels coded as "light absence" (or black) thus, in fact, that bitmap could be said to represent no picture.
Rilhas
|
|
|
|
|
Hi,
I want to have Horizontal and vertical transition effects in my directshow created Video. I could get the Left to right but not the others(Right to left, top to bottom and bottom to top).
Does DirectShow suport those transitions? if yes can i have the class id for those transitions.
Thanks in Advance,
Poornima
|
|
|
|
|
In my project i found this type of code in a header file, bUT I CAN'T UNDERSTAND IT.
PLZ help me
Thanks
public:
CDCDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDCDlg)
enum { IDD = IDD_DC_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDCDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
|
|
|
|
|
This is a header file of a class named CDCDlg.cpp which is derived from CDialog.
"Dream bigger...Do bigger...Expect smaller"
aji
-- modified at 7:26 Monday 3rd July, 2006
|
|
|
|
|
i think file is DCDlg.cpp not CDCDlg.cpp because C DCDlg.cpp is for class
whitesky
|
|
|
|
|
public:
CDCDlg(CWnd* pParent = NULL); // standard constructor
// This is the constructor for your class.
// Dialog Data
//{{AFX_DATA(CDCDlg)
enum { IDD = IDD_DC_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
This is where the class wizard adds all the data members that you create using the class wizard (ex CEdit , CButton etc)that is why those //{{ brackets are placed to inform the class wizard where to add the code.
and any overrides ex declaration for PreCreateWindow the declaration is added in the protected section that you do using the class wizard.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
-- modified at 7:28 Monday 3rd July, 2006
|
|
|
|
|
a code (i think create with VC6) and a header for DCDlg.cpp (maybe)
this line CDCDlg(CWnd* pParent = NULL); is like this
CDCDlg::CDCDlg(CWnd* pParent )
: CDialog(CssDlg::IDD, pParent)
{
}
enum { IDD = IDD_DC_DIALOG }; id from your Dialog
<br />
protected:<br />
virtual void DoDataExchange(CDataExchange* pDX);
void CDCDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
whitesky
|
|
|
|
|