Click here to Skip to main content
15,903,752 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDatabase error "Record is too large." Pin
Le@rner4-Feb-09 22:41
Le@rner4-Feb-09 22:41 
JokeRe: Database error "Record is too large." Pin
CPallini4-Feb-09 23:13
mveCPallini4-Feb-09 23:13 
GeneralRe: Database error "Record is too large." Pin
Le@rner4-Feb-09 23:16
Le@rner4-Feb-09 23:16 
GeneralRe: Database error "Record is too large." Pin
CPallini4-Feb-09 23:19
mveCPallini4-Feb-09 23:19 
JokeRe: Database error "Record is too large." Pin
Caslen4-Feb-09 23:16
Caslen4-Feb-09 23:16 
GeneralRe: Database error "Record is too large." Pin
CPallini4-Feb-09 23:20
mveCPallini4-Feb-09 23:20 
GeneralRe: Database error "Record is too large." Pin
Caslen4-Feb-09 23:21
Caslen4-Feb-09 23:21 
GeneralRe: Database error "Record is too large." Pin
Le@rner4-Feb-09 23:20
Le@rner4-Feb-09 23:20 
QuestionRe: Database error "Record is too large." Pin
David Crow5-Feb-09 3:28
David Crow5-Feb-09 3:28 
QuestionWork with CWebBrowser On Windows Mobile [modified] Pin
Miss_F4-Feb-09 22:36
Miss_F4-Feb-09 22:36 
AnswerRe: Work with CWebBrowser On Windows Mobile Pin
Alain Rist5-Feb-09 4:40
Alain Rist5-Feb-09 4:40 
GeneralRe: Work with CWebBrowser On Windows Mobile Pin
Miss_F7-Feb-09 2:23
Miss_F7-Feb-09 2:23 
AnswerRe: Work with CWebBrowser On Windows Mobile Pin
Alain Rist7-Feb-09 3:53
Alain Rist7-Feb-09 3:53 
GeneralRe: Work with CWebBrowser On Windows Mobile Pin
Miss_F7-Feb-09 18:21
Miss_F7-Feb-09 18:21 
QuestionProblem with #defined values Pin
ldsdbomber4-Feb-09 22:34
ldsdbomber4-Feb-09 22:34 
AnswerRe: Problem with #defined values Pin
ldsdbomber4-Feb-09 22:42
ldsdbomber4-Feb-09 22:42 
AnswerRe: Problem with #defined values Pin
Code-o-mat4-Feb-09 22:44
Code-o-mat4-Feb-09 22:44 
QuestionRe: Problem with #defined values Pin
CPallini4-Feb-09 23:11
mveCPallini4-Feb-09 23:11 
Question(WMI) I don't get info about all CPU-cores [modified] Pin
Pasy_m4-Feb-09 20:54
Pasy_m4-Feb-09 20:54 
AnswerRe: (WMI) I don't get info about all CPU-cores Pin
Stuart Dootson4-Feb-09 23:10
professionalStuart Dootson4-Feb-09 23:10 
GeneralRe: (WMI) I don't get info about all CPU-cores Pin
Pasy_m5-Feb-09 2:42
Pasy_m5-Feb-09 2:42 
GeneralRe: (WMI) I don't get info about all CPU-cores Pin
David Crow5-Feb-09 3:33
David Crow5-Feb-09 3:33 
GeneralRe: (WMI) I don't get info about all CPU-cores Pin
Pasy_m6-Feb-09 1:27
Pasy_m6-Feb-09 1:27 
AnswerRe: (WMI) I don't get info about all CPU-cores Pin
Pasy_m12-Feb-09 1:38
Pasy_m12-Feb-09 1:38 
QuestionStretching Gifs Pin
chandru.jeeva4-Feb-09 20:47
chandru.jeeva4-Feb-09 20:47 
Hi friends,

I had tried to stretch a Gif image and unable to do

My code is :

CImage image;
HDC dc = GetWindowDC()->GetSafeHdc();
BYTE *m_buffer;
CFile file;
if( !file.Open( MAKEINTRESOURCE(IDR_GIF1), CFile::modeRead) )
return false;
long m_buffer_size = (long)file.GetLength();
m_buffer = new BYTE[m_buffer_size];
if ( file.Read(m_buffer, m_buffer_size) != m_buffer_size )
return false;
file.Close();
IStream *pIstream;
CreateStreamOnHGlobal(NULL, TRUE, (LPSTREAM*)&pIstream);
ULARGE_INTEGER ulnSize;
ulnSize.QuadPart = m_buffer_size;
pIstream->SetSize(ulnSize);
LARGE_INTEGER lnOffset;
lnOffset.QuadPart = 0; //starting location is 0
pIstream->Seek(lnOffset, STREAM_SEEK_SET, NULL);
ULONG mysize;
pIstream->Write(m_buffer,m_buffer_size,&mysize);
image.Load(pIstream);
CRect rectDest;
rectDest.top = 0;
rectDest.bottom = 50;
rectDest.left = 0;
rectDest.right = 50;
image.StretchBlt(dc, rectDest, PATCOPY);
image.Draw(dc,0,0);

Kindly help me .. Smile | :)

Thanks in Advance..

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.