|
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 ;
} }
|
|
|
|
|
Hi there
I have a CFrameWnd with a CTreeCtrl and a CListCtrl ... If a user selects a control it automaticly got the focus (Yes its the truth ) ... but how to determine which control got the focus?
Thanks for reading
|
|
|
|
|
|
You could do something like this:
<br />
CWnd* pWnd = CFrameWnd::GetFocus();<br />
Then you can work with pWnd, when really you are working with the control that has the focus. For testing purposes you can try this:
<br />
CWnd* pWnd = CFrameWnd::GetFocus();<br />
<br />
pWnd->SetWindowText("THIS WORKS MAN !!");<br />
Hope it helped...;)
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
while ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|
|
thank you both for answering and helping
|
|
|
|
|
I'm looking for a way to limit the tcp/ip bandwidth of an application (or set of applications) from another application.
Basically I need to provide the facility to limit the upload and download KBytes/Sec of a set of processes, with the limits set by the application I am writing.
I know this is possible (as there are a number of applications out there that can do this, www.netlimiter.com is one example), however I need to be able to include the functionallity in my own program.
Any suggestions of what approach to take, where to look for ideas etc...?
Thanks...
Blade[DMS]
|
|
|
|
|
If it will help in your search, this technique is often called 'throttling'.
Elaine
The tigress is here
|
|
|
|
|
Thanks... Thats the word I was looking for
So far my search has lead me to "Packet Filtering" with potential solutions here on codeproject[^] for Win XP and 2000.
Not sure if this is the right direction to head yet tho...
Blade[DMS]
|
|
|
|
|
|
I'm currently modifying a program originally written in C, and I'm fairly inexperienced in programming using MFC and Visual C++
I have a class that gets read in from a menu command, which works OK.
How can I access this class from the automatically generated View classses so that I can display it?
Any help and/or comments are welcome
Keck
|
|
|
|
|
If you have the class in your document class use GetDocument() in your view class to get a pointer to the document and access the member variable from there.
John
|
|
|
|
|
Thanks - I realise now exactly what's going on in this case
thank you again
Working as intended
Keck
|
|
|
|
|
Hi, i want to block net access in pc (in a local network)
this pc connect to web althrought Proxy or connection
sharing. Can anyone help me, thank for advance.
|
|
|
|
|
Program the router to do so. For non sophisticated users, set up a firewall on the PC in question.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|