|
Richard Ernstberger wrote: NetFileEnum
Richard Ernstberger wrote: But i am interested in the names of the open files. Does anyone have an idea about this?
I never tried, but you can use NetFileGetInfo with level as 3
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ThatsAlok wrote: I never tried, but you can use NetFileGetInfo with level as 3
NetFileEnum() will work, too, using level 3. I'm unclear as to why the OP suggested otherwise.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote:
NetFileEnum() will work, too, using level 3.
yeah.. it will work.. sorry i overlooked that!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Thanks for your response.
NetFileEnum is working in some cases.
This means: i can get open files on my local machine and on some Windows-2000-computers. XP-computers fail with the ERROR_ACCESS_DENIED code.
Another try with a NAS-device lets crash NetFileEnum, as it returns an errorcode that is not listed in the VC-docs.
I feel there are some restrictions on this function: maybe i have to change some network-settings on XP. And for the NAS-device: maybe there is no way to query a SMB-device.
If someone has experienc with this, it wold be nice to hear from you.
Thanks,
Richard
|
|
|
|
|
|
Hi, I dont have code for a 64 bit crc, but maybe this crc16 might help you.
Hope it will help.
Function:
short int crc16(int *pBuf, short int Len, short int InitialCrc){
short int crc=0, i=0;
crc = 0;
for (i = 0; i < Len; i++ ) {
crc = (crc >> 8) | (crc << 8);
crc = crc ^ *pBuf;
crc = crc ^ ((crc & 0xff) >> 4);
crc = crc ^ (crc << 12);
crc = crc ^ ((crc & 0xff) << 5);
pBuf++;
}
return(crc);
}
int main()
{
int *ibuf = new char[len];
short int crc;
Memo1->GetTextBuf(ibuf,len);
crc = crc16(&ibuf[0],len,0);
Edit2->Text = len;
Edit3->Text = IntToHex(crc,4);
delete[] ibuf;
}
Regards Programm3r
|
|
|
|
|
Programm3r wrote: Hi, I dont have code for a 64 bit crc, but maybe this crc16 might help you.
Hope it will help.
Thanks. I don't need code for Crc. I just need a widely used 64 bit Crc polynomial. Just like the ones we have for 32 bit Crc's.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
|
Programm3r wrote: Well in that case .... my bad .
Have you tried checcking google?
God bless you. I did search google. But these days you should search Wikipedia too. Just what I wanted.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
This[^] might help. You can look at the source is you just want to see how it's done.
Steve
|
|
|
|
|
Stephen Hewitt wrote: You can look at the source is you just want to see how it's done.
I do get lost trying to find out a proper polynomial myself. I am still lost. That's why I try to go for a widely used polynomial. I will try out that link.
Thank you.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
Hello all,
I have an Activex Control in vc++ 6.0.It is a player plays cam files.
I have designed in the way that everytime the Activex control opens ,cam file will be downloaded from the server(Download Dialog) and after downloading the download dialog is closed automatically using OnThreadFinished.
LRESULT CHttpDownloadDlg::OnThreadFinished(WPARAM wParam, LPARAM )<br />
{<br />
m_bSafeToClose = TRUE;<br />
m_ctrlAnimate.Stop();<br />
<br />
if (m_bAbort)<br />
EndDialog(IDCANCEL);<br />
else if (wParam)<br />
{<br />
AfxMessageBox(m_sError);<br />
EndDialog(IDCANCEL);<br />
}<br />
else<br />
EndDialog(IDOK);<br />
<br />
return 0L;<br />
}
OnThreadFinished is for closing the dialog after the cam file downloads
fully.
1.Is ther any method to close the dialog while downloading the file.
Help me please and give me ur suggestions.
thanks in advance
Sunita
|
|
|
|
|
Create a dialog having a progress bar. In Its OnInitDialog start a thread to update the progress bar. Set the progress bar initalizations in OnInitDialog. The thread fun must have a infinite loop and setPos fun to update the progress bar.
From downloading thread update the progress bar value using a static variable and use this var to update the bar in Thred fun() and when this value become 100 or like u can call end dialog which will close the progress dialog.
|
|
|
|
|
Is there any way I can use an OCX control in an SDI application? I want to use the MSCHRT20.OCX Chart control in my VC++ SDI app so that it can have charting capabilities. Can anyone help?
---
Hakuna-Matada
It means no worries for the rest of your days...
It's our problem free, Philosophy
<marquee behavior="alternate" scrollamount="5" scrolldelay="50">
|
|
|
|
|
Hakuna-Matada wrote: Can anyone help?
So what problem(s) are you having with it?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I would like to know how to use an .OCX control in a VC++ SDI application. Any help towards it would be of great help.
Thanks.
---
Hakuna-Matada
It means no worries for the rest of your days...
It's our problem free, Philosophy
<marquee behavior="alternate" scrollamount="5" scrolldelay="50">
|
|
|
|
|
Start with:
Project --> Add to Project --> Components and Controls --> Registered ActiveX Controls
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all,
I'm testing an application that access to a database (at theis moment an Access 2000 db). I've done all the development in my local machine and all worked fine but when I put the db into the server I realized that client application will be on a different domain than the db. How does the connection string change?
Thanks in advance,
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
|
Good advice. I would stayed away but it's not my choice. I've recoomended others but at this moment I have tot test it in Access.
Isn't there a solution if it's an Access db?
Marc
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
Ok. I finally solved just creating the DSN in another way.
Thanks,
MArc.
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
Hi all,
Am using vc++. Is there is any api to get the current user name logged in the system
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
Its meAm using vc++. Is there is any api to get the current user name logged in the system
GetUserName()
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
Nibu babu thomas wrote: GetUserName()
That returns me 'Nibu babu' when I was expecting 'Nimbu'. What could be the problem?
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
I dont know why the hell the script for voting 5 is disabled only for me??
|
|
|
|
|
VuNic wrote: That returns me 'Nibu babu' when I was expecting 'Nimbu'. What could be the problem?
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|