|
How about submitting a question that actually makes sense?
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
With the lack of information you've provided, an answer is going to be difficult to provide.
What is inpf , and name ? Why is the number 15 hard-coded?
Provide a realistic code snippet and you're bound to get more help!
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Somebody asked here about libraries for burning. I searched for them (free ones) and I couldn't find anyone. I think it may be useful for lots of apps and I would like to suggest TheCodeProject to add into web's downloads one, because I think that this is the best programmer-to-programmer web site. If anyone can tell where can we find libraries or a library for burning CDS through VC++, please tell.
Thank you very much.
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
while ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|
|
The title of this just cracked me up.
Rafael Fernández López wrote:
Somebody asked here about libraries for burning.
There are just too many wise-ass responses to add here.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
What's wrong there ?? I meant any libraries for burning data into cds... what's wrong with that ?? Think about that I'm not english, I'm spanish so maybe I am not saying the same as I would like to.
Sorry if I said something that you didn't like.
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
while ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|
|
Rafael Fernández López wrote:
Re: About burning libraries...
Sorry if I said something that you didn't like.
He reffered to burning the library like the library of Alexandria. As this has been already done when the arab caliph conquered Egypt (in AD.600 and something), the next on the list would be the British Library or the Library of Congress.
I fear that this text set me on quite a lot homedefence watchlists.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
There is a syntax error in your sig. There is no else in a while loop!
Rickard Andersson
Here is my card, contact me later!
UIN: 50302279
Sonork: 37318
|
|
|
|
|
arrrrrgghhhhh, hahahahhaha. this is just making me mad... I'm gonna change it just now !! Thnx
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
while ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|
|
Rafael Fernández López wrote:
life(bool me, bool her)
{
while(her)
{
me = true ;
}
else
{
me = false ;
}
}
Will this compile?
|
|
|
|
|
hhahahahaha, someone told me too. I didn't notice what I wrote... I did it too fast. Thanks.
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
if ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|
|
Rafael Fernández López wrote:
void life ( bool me, bool her )
{
if ( her )
{
me = true ;
}
else
{
me = false ;
}
}
Actually, your first idea was better (but syntactically challenged) - since a while loop would continue forever as long as her was TRUE. The way it is now, life will only check once for the value of her and then terminate (hopefully peacefully while you sleep)
void life(bool me, bool her)
{
while(her)
{
me = true;
}
me = false ;
}
|
|
|
|
|
|
I know but none of them is free. Thanks.
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
if ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|
|
Too bad
Have you tried searching it in SourceForge?
Or probably you could get it in Linux source codes. It must be somewhere in it.
Hope this helps
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
|
Rafael Fernández López wrote:
If anyone can tell where can we find libraries or a library for burning CDS through VC++, please tell.
I dimly remember to have seen a Win-version of the 'cdrdao' or 'cdrecord' software (originating in the unix-world). These are not really libraries but command-line driven cd-burners. You produce a ISO file and throw it at them.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
I need help!!!!!!!!!!
I am trying to write a program to play tic-tac-toe using a CFormView. In which i have added 9 buttons. When i click on each button i need to display the bitmap(IDB_BITMAP1) for example on that button. I have tried using
HBITMAP bmpHandle = ::LoadBitmap( AfxGetResourceHandle(), MAKEINTRESOURCE(IDB_BITMAP1) );
m_button1.SetBitmap(bmpHandle);
in the views OnInitialUpdate(). i am not sure what else i need to do.please help me.!!!!!
|
|
|
|
|
If you could put your images into icons... you could do that this way:
AfxGetApp()->LoadIcon(MY_RESOURCE);
Hope it helped.
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
while ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|
|
where do i have to add that code. i tried adding it to the OnButton1() function. it is not working.
|
|
|
|
|
<br />
HICON my_icon = AfxGetApp()->LoadIcon(MY_ICON );<br />
<br />
m_button1.SetIcon(my_icon, 1 );<br />
OR:
<br />
HICON my_icon = (HICON)LoadImage(AfxGetInstanceHandle(),MAKEINTRESOURCE(MY_RESOURCE),IMAGE_ICON ,16,16,0);<br />
<br />
m_button1.SetIcon(my_icon, 1);<br />
Hope it helped.
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
while ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|
|
If /* This is for setting big or little, 1=big, 0=little */, then why does SetIcon needs 1 to load a small icon?
Not clear enough?
Oki.
If I generate a Dialog Based MFC App and I delete the call SetIcon(m_hIcon, FALSE) on OnInitDialog, the small version of m_hIcon will be loaded. But if I delete SetIcon(m_hIcon, TRUE), the big version will be loaded and converted to a smaller one.
Why is this?
Is my version corrupted or something??
|
|
|
|
|
What I was wanting to do, for demonstrative purposes only, is give the impression that my program is printing an item, followed by another, and so on.
The program is a dialog box. There is an Edit box that has a title of a chart to print. What I want the program to do is display chart one, generate a delay, then display chart 2, and so on, giving the appearance that the application is printing each chart.
The problem is is when I call UpdateData(FALSE), the dialog does not update immediatly, so of course the following doesn't work.
m_chart = "Chart1";
UpdateData(FALSE)
Sleep(1000);
m_chart = "Chart2";
UpdateData(FALSE)
Sleep(1000);
....
How do I go about doing this?
Kevin Shaffer
kshaff03@msn.com
|
|
|
|
|
|
That looks like it should work perfectly.
Thanks Michael!
Kevin Shaffer
kshaff03@msn.com
|
|
|
|
|
Well, there is another way instead of using control variables:
From MSDN:
<br />
CWnd::SetDlgItemText(int nID, LPCTSTR lpszString);<br />
So you would be able to type and run this:
<br />
SetDlgItemText(MY_RESOURCE, "I am alive");<br />
Applying this to your source code would be:
<br />
SetDlgItemText(MY_RESOURCE, "This is my first text");<br />
Sleep(1000);<br />
SetDlgItemText(MY_RESOURCE, "This is my second text");<br />
Sleep(1000);<br />
Hope it helped.
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
while ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|