|
I am already in the rocess of makin this utility ,but some ppl say that they move bad sectors in damaged floppies!! How can we do that? We can just indicate the OS that the sector is bad ,we cant move it here n there around.So I just wanted to confirm this thing. I hav tried my programs on several floppies n 8/10 hav been suceessfully repaired .But anyways Thanks .
|
|
|
|
|
|
Hey , Listen
CFlopy is just to read from a floppy , onthing else OK. It is not a floppy repairer . If u dont know the answer ,then stop guessing.
|
|
|
|
|
No, you listen. He suggested you look at an article related to your question. It might have had information that was useful to you, even though it didn't solve your problem directly. Your response is rude and uncalled for.
Software Zen: delete this;
|
|
|
|
|
Thank you for support
whitesky
|
|
|
|
|
You're welcome.
Normally I don't correct other people's behavior in public, but ingratitude is one of my hot buttons.
Software Zen: delete this;
|
|
|
|
|
I am here (usualy only visual c fourm)for answer to questions and you know that i can dont answer to any question and i see questions(only) but i like answer to questions becuase i want help to programers
whitesky
|
|
|
|
|
how can we detect bad sectors in a floppy??PLz tell with some implementation!!
|
|
|
|
|
Have you tried "chkdsk" command? It checks and fixes bad sectors on a drive.
- It's easier to make than to correct a mistake.
|
|
|
|
|
Is it possible to center align the subitem image (no text in subitem) in a List control (CListCtrl)? CListCtrl::SetItem() doesn't seem to do so. Help please!
|
|
|
|
|
SeeHere[^] im not sure but maybe it is some helpful to you
whitesky
|
|
|
|
|
Yes I have seen that before but that is owner draw list and I have to use normal list control.
Thanks for your input.
|
|
|
|
|
Hi,
i m getting this error, does anyone know hot to fix ?
[Linker Error] Fatal: Error detected (IMP302)
[Linker Error] Fatal: Access violation. Link terminated.
Software Development Specialist
|
|
|
|
|
It is internal compiler error, try to 'Rebuilt All' it may help.
Here someone has the same problem.
|
|
|
|
|
i want to creat a form with button that have nonectangular shape , such circle ,...
how i can do it?
erfan
|
|
|
|
|
|
|
1. Is there a way to get notification event/handler to window.ActiveXObject via IWebBrowser2 or any other Internet Explorer Library?
What I am trying to do here is recording the sent/received webmail. Before AJAX era, I utilized OnBeforeNavigate in WebBrowser Control to get notification event so I can capture the traditional webmail. But now with AJAX, since the top URL will not change when user click on "Inbox","Compose", the usual trick won't work and I think I need to inspect the data retrieved by XMLHTTP which means I need to have notification event for that. Do you know any way to do this for IE?
Thank you so much
Paulino
|
|
|
|
|
thanks for your reply i will send what i make in the receive function
void CConnect::OnReceive(int nErrorCode)
{
// TODO: Add your specialized code here and/or call the base class
char *Buf=new char[10000];
int i=Receive (Buf,10000);
Buf[i]=NULL;
AfxMessageBox("a");
if (Buf[0] == '1')
{
if (Buf[0] == '<')
{
do
{
int i=0;
UserName[i]=Buf[i+2];
i++;
}
while (Buf[i+2] != '>');
}
}
else if (Buf[0] == '2')
{
if (Buf[0] == '<')
{
do //User
{
int j=0;
User[j]=Buf[i+1];
j++;
i++;
}
while (Buf[i+1] != '>');
if (Buf[i+2] == '<')
{
do //message
{
int x=0;
Message[x]=Buf[i+3];
i++;
x++;
}
while (Buf[i+3] != '>');
}
}
}
Send(User,10000);
AfxGetMainWnd()->PostMessage(UM_AII,(WPARAM)Buf,0);
CSocket::OnReceive(nErrorCode);
}
/////////////////////////////////////////////////////////////////
void CConnect::GetPeople (CString IP, UINT Port)
/* get the IP and Port from getpeername function from OnAccept and send it here so i can save the connected poeple on it with thier user name*/
{
CListen L;
LOP[Index].IP=L.IP;
LOP[Index].Port=L.Port;
LOP[Index].UserName=UserName[Index];
Index++;
}
///////////////////////////////////////////////////////////////////////
int CConnect:: Search(char User[])
/* this function to search for people in the struct but i don't know how to send thier IP and Port to the other Client who want to connect to them i don't make any use from it*/
{
for(Index=0;Index<100;Index++)
{
if(LOP[Index].UserName==User[Index])
{
CString IP=LOP[Index].IP;
UINT Port=LOP[Index].Port;
}
else
Index++;
}
return Index;
}
|
|
|
|
|
I use an external DVD burner connected through firewire, and want to be able to dynamically detect when it's switched on and off while my app is running, so I know when it's available or not.
I have seen the following CP article, which suggests using the WM_DEVICECHANGE broadcast message but wasn't exactly sure how to handle this message. I need it to run on Win 95 so I cannot use SHChangeNotifyRegister() which is only for Win 2000 and above.
http://www.codeproject.com/shell/shchangenotifyregister.asp[^]
|
|
|
|
|
|
I've got a lot of help of user
_AnShUmAn_
with a question of formating a DateTimePicker. He suggested me, to use a CDateTimeCtrl value instead of an COleDateTime value. And it works fine in the dialog, but I cannot get the values back at the and of my dialog. Can anyone help me?
Thanks, Gerhard
|
|
|
|
|
// Using ClassWizard, create a member variable for the CDateTimeCtrl "value"
class CMyDialog : public CDialog
{
// Construction
public:
CMyDialog(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CMyDialog)
enum { IDD = IDD_DIALOG1 };
CTime m_TimeValue;
//}}AFX_DATA
...
// Then if, for example, your dialog is shown on a menu item selection...
void CMyView::OnShowdialog()
{
// TODO: Add your command handler code here
CMyDialog dlg;
dlg.m_TimeValue=CTime::GetCurrentTime(); // Init time
if (dlg.DoModal()==IDOK) {
TRACE("%s\n",dlg.m_TimeValue.Format("%Y/%m/%d %H:%M:%S"));
}
}
-- modified at 18:34 Sunday 11th June, 2006
|
|
|
|
|
Thanks for your reply, but I have the same problem as with COleDateTime.
If I use CTime or COleDateTime, I can read the entered values in the
"if (dlg.DoModal()==IDOK) {..."-block, but I cannot format the dialog-field.
If I use CDateTimeCtrl, I can format my dialog-field with
m_begin.SetFormat("yyyy/MM");
in the OnInitDialog, but in the "if (dlg.DoModal()==IDOK) {..."-block I don't get the values for year or month.
Thanks, Gerhard
|
|
|
|
|
ensger wrote: He suggested me, to use a CDateTimeCtrl value instead of an COleDateTime value.
I'm not sure why this was suggested. They are mutually exclusive classes. The former is actually attached to a control, and thus only exists as long as the dialog itself does, whereas the latter is just used to manipulate date/time values, and exists as long as the CDialog -derived class exists.
ensger wrote: ...but I cannot get the values back at the and of my dialog.
As long as the dialog's OnOK() method is updating the COleDateTime object, you can get the correct values.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|