|
how can I send nIndx in OnInitDialog?
|
|
|
|
|
Use an Init function for these kind of initialization purposes.
NoName II wrote: how can I send nIndx in OnInitDialog?
Store the nIndx as a member variable or store the person object as a member variable of the dialog class.
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
|
Hi,
I have these coding in my vc++ project.In this,bitmap m_pdib is converted in to jpeg and this jpeg image is shown in the videoplayer.
m_pdib.GetJpgData(1,true);
m_pdib.DispTODC(1, true);
I want to store this converted jpeg image into a file.How to create a file and store this jpeg image
sunita ramesh
-- modified at 3:09 Friday 5th May, 2006
|
|
|
|
|
|
I have a newly desinged cam file in which image files are stored in the form of bitmap.This bitmap is retrived & converted in to jpeg image and then it is displayed in the video player.(it is an Active control ).
Everytime to play the video,i call this function,Playwave(int picno).
for displaying this image,i call m_pdib.GetJpegData(1,true) and m_pdib.DispTODC(1,true).
I want to store this jpeg image in a folder.
How to do that.
sunita
|
|
|
|
|
If you could put the image on a DC or on a CBitmap object you can solve your problem using the class CImage . It has the Save function that automatically convert the image in many file format (jpg gif png bmp).
Hope this helps.
|
|
|
|
|
thanks for ur reply.
Do i need to add class cImage.
How to do this..
Can u please explain me in detail.
sunita ramesh
|
|
|
|
|
DEFINE_GUID(ImageFormatJPEG, 0xb96b3cae,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e);
CImage m_Image;
m_Image.Attach(hbitmap handle);
m_Image.Save(yourfile,ImageFormatJPEG);
m_Image.Detach();
|
|
|
|
|
I think your problem is write file(jpeg)
But I suggest if you can convert bitmap to jpeg use to write data jpeg to file instead use CImage
|
|
|
|
|
thats wat my problem.
Can u please explain how to put jpeg data in a file.
sunita ramesh
|
|
|
|
|
|
Thanks for ur reply
Already I display the image using
m_pdib.GetJpgData(1,true);
m_pdib.DispTODC(1,true);
1 is nothing but jpeg image1.similarly if i put 2 means i get second image.
So can't i able to store this image in a file by adding few lines instead of using a new class.
sunita ramesh
-- modified at 5:43 Friday 5th May, 2006
|
|
|
|
|
Every body knows Outlook.pst file stores person folders
info. But how to read the contents of this binary file in
order to know how many folders under the personal folders
and what are their names? If anybody knows please help me?
knarasimharao
|
|
|
|
|
You posted this question 17 minutes ago.
Maxwell Chen
|
|
|
|
|
If you are not able to see the post on this page please go to the next page or check your posts for the response. The people here are to help each other and sometimes reading through the same question can cause frustration to creep in . Please keep a track of the posts that you make and quote properly what you are willing to ask and discuss.
Vision is Always important and so is your ATTITUDE.
Wishes.
Anshuman Dandekar
|
|
|
|
|
Hi,
Is there a function for determining the size in bytes of an embedded resource?
My program needs to use LoadResource to load resources on the fly, and it would really help if it could tell the size of the resource it has loaded.
Thanks,
Rich
ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸
|
|
|
|
|
|
Thanks, Steve.
ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸
|
|
|
|
|
How to read .PST file using VC++?
What is the structure to read .PST files using Files.
knarasimharao
|
|
|
|
|
What are PST files ?
You can perhaps find the file format by googling (I didn't find it on http://www.wotsit.org[^])
|
|
|
|
|
I guess he's talking about MSOutlook Personal folders.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
|
Hi,
I am asking the file structure for reading .PST files. Becuase I have to open .PST files using File Handling in VC++ in binary mode, and I have to read the messages and display on the correcsponding Rich Edit Control. If you know the structure of .PST file, that helps alot to me. Because structure contains the size of each column like sender name, receivers name, message and so on.
knarasimharao
|
|
|
|
|
This program is going fairly smoothly, only problem being that it keeps blowing up at the point where I try to copy my current dynamic array to a temporary one. I'm sure it's a frivolous error, but I just can't seem to locate it. Spent the past 30 minutes staring at it to no avail. Anyone who cares to take a couple minutes to look over it, it would be incredibly helpful. Thanks!
Header File :
#include <iostream>
using namespace std;
int i;
class Array
{
private:
int element;
int *array;
bool extend();
bool contract();
public:
Array( );
Array(int array);
Array(int array, int elem);
~Array() {}
bool append();
bool chop();
bool print();
bool success;
};
Array :: Array ( )
{
int *array = 0;
}
Array::Array (int elem)
{
int *array = 0;
element = elem;
array = new int[element];
for (i=0; i<element; i++)
{
cout << "Please enter element "<< i << " : " << endl;
cin >> array[i];
}
}
bool Array :: append()
{
success = false;
success = extend();
if (success = true)
return (true);
else
return (false);
}
bool Array:: extend()
{
element += 1;
int* temp = 0;
temp = new int[element];
for (i=0; i<element; i++){
temp[i] = array[i];
}
cout << "Enter new element value : " << endl;
cin >> temp[element];
delete [] array;
array = temp;
return (true);
}
bool Array :: chop()
{
success = false;
success = contract();
if (success = true)
return (true);
else
return (false);
}
bool Array :: contract()
{
element -= 1;
int* temp2 = NULL;
temp2 = new int[element];
for (i=0; i<element; i++){
temp2[i] = array[i];
}
delete [] array;
array = temp2;
return (true);
}
bool Array :: print()
{
for (i = 0; i < element; i++)
{
cout << "The value of element " << i << " is " << array[i] << endl;
}
return (true);
}
Main File (not really necessary with this I'm sure)
#include <iostream>
#include "class.h"
using namespace std;
void main()
{
int n;
int elem;
bool completion = false;
cout << "Enter desired array size : " << endl;
cin >> elem;
Array ar1(elem);
completion = ar1.append();
if (completion == true)
{
cout << "Append successful!" << endl;
}
else
{
cout << "Append Unsuccessful!!" << endl;
}
completion = false;
completion = ar1.chop();
if (completion == true)
{
cout << "Chop successful!" << endl;
}
else
{
cout << "Chop Unsuccessful!!" << endl;
}
completion = false;
completion = ar1.print();
if (completion == true)
{
cout << "Print successful!" << endl;
}
else
{
cout << "Print Unsuccessful!!" << endl;
}
completion = false;
system ("pause");
}
Please forgive my newbishness
|
|
|
|