|
Actually I hooked it with the purpose of hiding a file. But as far as I could see the explorer makes a lot of calls for FindNextFile and it eventually crashes.
How can I hide the file though or how can I fix this pb.
I get the same pb when I hook CreateFile the explorer craseh immediatelly.
gabby
|
|
|
|
|
|
Have you ever heard of privacy ?
what if I want a folder to be private?
and what is with the atitude dude ?
I posted a question .
If u know the answer and u are willing to help answer me otherwise I don't need your stupid replies
gabby
|
|
|
|
|
euacela wrote: what if I want a folder to be private?
Windows has user-level permissions built in.
euacela wrote: otherwise I don't need your stupid replies
on no
of course you don't have to tell us the name of your app. but i thought it might be nice if you could warn us so that we could know in advance which programs are out to subvert our filesystems.
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
euacela wrote: Have you ever heard of privacy ?
what if I want a folder to be private?
there is much differnce between Privacy and making folder private.. what if you make spy ware application that hide users important file...
euacela wrote: what is with the atitude dude ?
if I ask same about yours....
euacela wrote: If u know the answer and u are willing to help answer me otherwise I don't need your stupid replies
Hai.. are we your servent ?... calm down.. behave professionally, you are not a kid. if you don't like the comment better not answer his/her reply..
"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
|
|
|
|
|
Hey man what is this a programming forum or a good manner forum.
And look at this Chris Losinger guy, the question wasn't addressed to him and it is not about servents. I said if you are willing to help ! Do you kn ow what that means ? As I can see no. Willing means if you want and no one is forcing you. I didn't say you must help me (like others post questions and get answers).
Isn't this a Visual C++ forum. Am I on the wrong website asking how to better hook FindNextFileW ?
If you think you can help and if you want to help I would appreciate that otherwise don't reply comment regarding the "IQ" of my question. For you smart guys it is very easy right? Well I am not like that. I don't need opinios wheter the program is good or bad the program is for me. I am not a hacker or whatever you might think. I am registered on this website for a while and it used to be better much better. Everybody would encourage you to ask whatever to develop your c++ skills, now everyone is treating you like a scum (and you call it evolution )
Now there are only wise guys that come around with opinions
Thank you.
gabby
|
|
|
|
|
euacela wrote: Hey man what is this a programming forum or a good manner forum.
Good Manner are also part of Good programming...
euacela wrote: Chris Losinger guy
Have you check the Age difference between you and Mr. Losinger? Do you treat elderly people same way at your home?
euacela wrote: I am not a hacker or whatever you might think.
I very Well Know that.. I have appreciated article written by you many times, if you doesn’t remember that.. You can still check that at the forum situated at bottom of your article...
euacela wrote: For you smart guys it is very easy ri
Who say I am Smart Guy?!... I am simple Programmer like you.. Frankly speaking... you have much more knowledge of language than me...
euacela wrote: Now there are only wise guys that come around with opinions
I believe, your are taking suggestion wrong way.. Calm buddy.. Before it too late.. I have done many mistake due to this... but ... leave it .... Your wish.. Who am I who are advising you... you are well grown up guy.
"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
|
|
|
|
|
ThatsAlok wrote: euacela wrote:
Hey man what is this a programming forum or a good manner forum.
Good Manner are also part of Good programming...
I agree to that. I don't know who you are Mr Losinger's lawyer . . .
But look at how this thing started I just asked a question and you started making fun of me. Is that good manner I don't but id this is how you do around here I have no need for this website
gabby
|
|
|
|
|
euacela wrote: this is how you do around here I have no need for this website
Ok Ok calm Down... I am sorry.. you are right I am not Chris lawyer nor admin here neither I am making fun of you... ..
But remember one thing for this ego you going to pay in future...
"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
|
|
|
|
|
I am new to windows programming, and am using Visual Studio .Net 2003.
I have a standard managed form which contains a number of data entry fields (textboxes, radio buttons etc), and a couple of buttons.
One of the buttons (labelled Save) activates an event handler that calls two functions. The first function will perform some validation on the data entered in the form, and then displays a message on a second smaller form with an OK button. This OK button closes the form. The second function then formats some of the data, and will eventually write it to a file.
How do I stop the second function running until after the OK button on the form displayed by the first function is clicked ? Or, in other words, how do I stop the 2nd function from running until the first is complete.
The program so far is listed below, and the event handler concerned is called collegeForm::buttonSave.
Many thanks
#using <mscorlib.dll>
#using <system.dll>
#using <system.drawing.dll>
#using <system.windows.forms.dll>
using namespace System;
using namespace System::Drawing;
using namespace System::Windows::Forms;
__gc class collegeForm : public Form
{
public :
collegeForm();
private :
Label *labelSurname;
Label *labelForename;
Label *labelGender;
Label *labelDateOfBirth;
Label *labelAccomodation;
Label *labelSupportCode;
Label *labelCourseCode;
TextBox *surname;
TextBox *forename;
TextBox *courseCode;
TextBox *dateOfBirth;
ComboBox *supportCode;
GroupBox *gender;
RadioButton *male;
RadioButton *female;
GroupBox *accomodation;
RadioButton *parentalHome;
RadioButton *lodgings;
RadioButton *hallsOfResidence;
Button *save;
Button *clear;
MainMenu * mainMenu;
void buttonSave(Object *Sender, EventArgs *Args);
void buttonClear(Object *Sender, EventArgs *Args);
Int32 validateForm(void);
void formatNames(void);
};
__gc class errorMessage : public Form
{
public :
errorMessage();
errorMessage(String *);
private :
Label *message;
Button *ok;
void buttonOK(Object *Sender, EventArgs *Args);
};
errorMessage::errorMessage()
{
}
errorMessage::errorMessage(String * errorMessage)
{
this->Text = S"Error Message";
message = new Label;
message->Text = errorMessage;
message->Location = Point(25,100);
this->Controls->Add(message);
ok = new Button;
ok->Location = Point(180,120);
ok->Text = "OK";
ok->Click += new EventHandler(this,buttonOK);
this->Controls->Add(ok);
}
void errorMessage::buttonOK(Object *Sender, EventArgs *Args)
{
Close();
}
collegeForm::collegeForm()
{
this->Text = S"College Enrollment Database";
labelSurname = new Label;
labelSurname->Text = S"Surname";
labelSurname->Location = Point(25,100);
this->Controls->Add(labelSurname);
labelForename = new Label;
labelForename->Text = S"Forename";
labelForename->Location = Point(25,150);
this->Controls->Add(labelForename);
labelGender = new Label;
labelGender->Text = S"Gender";
labelGender->Location = Point(25,200);
this->Controls->Add(labelGender);
labelDateOfBirth = new Label;
labelDateOfBirth->Text = S"Date Of Birth";
labelDateOfBirth->Location = Point(25,250);
this->Controls->Add(labelDateOfBirth);
labelAccomodation = new Label;
labelAccomodation->Text = S"Accomodation";
labelAccomodation->Location = Point(25,300);
this->Controls->Add(labelAccomodation);
labelSupportCode = new Label;
labelSupportCode->Text = S"Support Code";
labelSupportCode->Location = Point(25,350);
this->Controls->Add(labelSupportCode);
labelCourseCode = new Label;
labelCourseCode->Text = S"Course Code";
labelCourseCode->Location = Point(25,400);
this->Controls->Add(labelCourseCode);
surname = new TextBox;
surname->Location = Point(125,100);
surname->Width = 200;
this->Controls->Add(surname);
forename = new TextBox;
forename->Location = Point(125,150);
forename->Width = 200;
this->Controls->Add(forename);
courseCode = new TextBox;
courseCode->Location = Point(125,400);
courseCode->Width = 100;
this->Controls->Add(courseCode);
dateOfBirth = new TextBox;
dateOfBirth->Location = Point(125,250);
dateOfBirth->Width = 200;
this->Controls->Add(dateOfBirth);
supportCode = new ComboBox;
supportCode->Location = Point(125,350);
supportCode->Width = 230;
supportCode->Items->Add(S"No Known Disability");
supportCode->Items->Add(S"Dyslexia");
supportCode->Items->Add(S"Blind or Partially Sighted");
supportCode->Items->Add(S"Deaf or Impaired Hearing");
supportCode->Items->Add(S"Mobility Difficulties or Wheelchair User");
supportCode->Items->Add(S"Personal Care Support Required");
supportCode->Items->Add(S"Mental Health Difficulties");
supportCode->Items->Add(S"Unseen Disability - Diabetes, Asthma");
supportCode->Items->Add(S"Two Or More Of The Above");
supportCode->Items->Add(S"Other Disability Not Listed");
supportCode->Text = S"No Known Disability";
this->Controls->Add(supportCode);
gender = new GroupBox;
gender->Location = Point(125,175);
gender->Size = Drawing::Size(300,55);
Controls->Add(gender);
male = new RadioButton;
male->Location = Point(25,20); // These are coords in group box
male->Text = S"Male";
gender->Controls->Add(male);
female = new RadioButton;
female->Location = Point(150,20);
female->Text = S"Female";
gender->Controls->Add(female);
accomodation = new GroupBox;
accomodation->Location = Point(125,275);
accomodation->Size = Drawing::Size(450,55);
Controls->Add(accomodation);
parentalHome = new RadioButton;
parentalHome->Location = Point(25,20);
parentalHome->Text = S"&Parental Home";
accomodation->Controls->Add(parentalHome);
lodgings = new RadioButton;
lodgings->Location = Point(150,20);
lodgings->Text = S"Lodgings";
accomodation->Controls->Add(lodgings);
hallsOfResidence = new RadioButton;
hallsOfResidence->Location = Point(275,20);
hallsOfResidence->Text = S"&Halls Of Residence";
accomodation->Controls->Add(hallsOfResidence);
save = new Button;
save->Location = Point(175,500);
save->Text = S"&Save";
save->Click += new EventHandler(this,buttonSave);
this->Controls->Add(save);
clear = new Button;
clear->Location = Point(350,500);
clear->Text = S"&Clear";
clear->Click += new EventHandler(this,buttonClear);
this->Controls->Add(clear);
mainMenu = new MainMenu();
MenuItem *menuFile = mainMenu->MenuItems->Add("&File");
menuFile->MenuItems->Add("&Validate");
menuFile->MenuItems->Add("&Save");
menuFile->MenuItems->Add("&Clear");
menuFile->MenuItems->Add("-");
menuFile->MenuItems->Add("&Exit");
MenuItem *menuHelp = mainMenu->MenuItems->Add("&Help");
menuHelp->MenuItems->Add("&About");
Menu = mainMenu;
}
void collegeForm::buttonSave(Object *Sender, EventArgs *Args)
{
validateForm();
formatNames();
}
void collegeForm::buttonClear(Object *Sender, EventArgs *Args)
{
surname->Text = S"";
forename->Text = S"";
courseCode->Text = S"";
dateOfBirth->Text = S"";
supportCode->Text = S"";
male->Checked = false;
female->Checked = false;
parentalHome->Checked = false;
lodgings->Checked = false;
hallsOfResidence->Checked = false;
}
Int32 collegeForm::validateForm(void)
{
errorMessage * em = new errorMessage("This is a test");
em->Size = System::Drawing::Size(400,200);
em->Show();
return(1);
}
void collegeForm::formatNames(void)
{
String * left;
String * right;
String * temp;
if (surname->Text->Length > 1)
{
temp = surname->Text;
left = temp->Substring(0,1);
right = temp->Substring(1,temp->Length-1);
left = left->ToUpper();
right = right->ToLower();
temp = String::Concat(left,right);
surname->Text = temp;
}
if (forename->Text->Length > 1)
{
temp = forename->Text;
left = temp->Substring(0,1);
right = temp->Substring(1,temp->Length-1);
left = left->ToUpper();
right = right->ToLower();
temp = String::Concat(left,right);
forename->Text = temp;
}
}
int __stdcall WinMain()
{
collegeForm *cf = new collegeForm();
cf->Size = System::Drawing::Size(600,600);
Application::Run(cf);
return 0;
}
Simon Cornish
|
|
|
|
|
|
Why should it be on the C++/CLI forum - Its a question about a windows ("Visual") application developed using Visual Studio hence why I posted it on the "Visual C++" forum.
|
|
|
|
|
Visual C++ forum doesn't treat about Managed C++ questions... (whih can be - i agree - made only with Visual Studio IDE)...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
|
|
|
|
|
I have been developing my first ActiveX called MyJoy , which will use the Joystick and mouse as pointers. Snips of code in the MyJoyCtrl file is shown below.
BEGIN_MESSAGE_MAP(CMyJoyCtrl, COleControl)
ON_OLEVERB(AFX_IDS_VERB_PROPERTIES, OnProperties)
ON_MESSAGE(MM_JOY1MOVE, OnJoy1Move)
ON_WM_MOUSEMOVE()
END_MESSAGE_MAP()
Now I get the MM_JOY1MOVE messages but not the ON_WM_MOUSEMOVE, have I ommited something?
I have like for the Joystick included the OnMouseMove handler.
void CMyJoyCtrl::OnMouseMove(UINT nFlags, CPoint point)
{
x_m_pos = point.x;
y_m_pos = point.y;
if(capture == VARIANT_FALSE)
{
x_pos = x_m_pos;
y_pos = y_m_pos;
z_pos = 0;
}
}
Any suggestions please.
|
|
|
|
|
Hi there,
the compiling the following function:
int foo(int a){
int x;
x = 5; // error C2143
int y;
return x;
}
with the following compiler options:
/Od /D "WIN32"
/D "_MBCS" /FD /MTd
/Fp".\Debug/WINZVT.pch"
/Fo".\Debug/"
/Fd".\Debug/"
/FR".\Debug/"
/W0 /nologo /c /ZI /TC
error C2143: Syntaxfehler: Es fehlt ';' vor 'eingeben'
misssing ';'
this code is legal c in my opinion
is anybopy here who can tell me why this fails ?
thanks in advance
ciao Elias
|
|
|
|
|
if you are talking about pure C (not C++), ,this not is not valid. you have to declare all the variables before using them...
here, you declare int y; after x = 5; . switch these two lines.
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
|
|
|
|
|
Hello guys ,
I have started studying STL and
I am experiencing following problem , here is my source code :
template <class T>
void printVector(const std::vector< T > &integers2);
int _tmain(int argc, _TCHAR* argv[])
{
std::vector< int > integers;
integers.push_back(2);
printVector(integers);
return 0;
}
template < class T >
void printVector(const std::vector< T > &integers2)
{
std::vector< T >::const_iterator constIterator;
for(constIterator = integers2.begin();
constIterator != integers2.end;
constIterator++)
cout<<*constIterator<<' ' ;
}
I am getting 3 errors.
Does anybody have Idea what I am doing wrong ?
PS. I am using Visual Studio 2005
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
Giorgi Moniava wrote: constIterator != integers2.end;
replace end with end()
moreover, next time, don't tell how many error you got, this is worthless. give directly the error messages !!! i'm sure here the compiler might tell you with an clear enough message what was wrong...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
-- modified at 10:56 Thursday 8th December, 2005
|
|
|
|
|
|
Giorgi Moniava wrote: thanks tox
you're welcome
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
|
|
|
|
|
Hi,
I am having problems with file locking. It seems some kind of
lock remains on a file even after it has been closed.
I have tried both C-library routines (fopen, fclose ... )
and native windows routines (CreateFile, CloseHandle.. )
but in both cases locking remains, and you can rename the file
only after program has been closed.
Routine where this happens contains some Oracle ProC-code and
seems to start some own threads. Could they be the culprit?
Anybody else have experience with this kind of thing?
|
|
|
|
|
Use the Handle utility from www.sysinternals.com[^] to see what process has the file open.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I want to add the Picturebox into the Form at runtime.
I don't want use Application::Run(Form*), I am creating my own Form.
It is displayed but It doesn't include the Picturebox.
Solution or any Idea.....please send.....
Thank you
|
|
|
|
|
|
Dear friends,
we develop one module. server is broadcasting. client receive this broadcast. Bind() happen properly. socket create properly. It return value properly. At the time of receiving data, client create some problem. problem means entire application hangs. we use while loop. Result shows,
Brodcast done properly. Bind() happen proerly. then what is the reason that entire application hang properly at the time of receiving data.
Result also shows UDP port is proper. TCP/IP port is also proper. UDP port number is 3000. TCP/IP port is 1024.
Everything is properly , then also application hang.
sample code of that function
BOOL CEliteUtilities::ReceiveBroadcastUDP(CString *TargetIP,int *m_port)
{
SOCKADDR_IN addr_Srv, addr_Cli;
char szMessage[256];
int listenport;
int clilen;
int val = 1;
CString csTemp;
AfxSocketInit(NULL);
listenport =3000;
if (listenport < 1)
{
AfxMessageBox("Please enter a valid UDP listen port");
}
//-- Open a UDP socket
if ((sock_Receive = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
{
AfxMessageBox("Unable to create socket");
return FALSE;
}
//-- Fill in structure fields for binding to local host
//memset((char *) &addr_Srv, 0, sizeof(addr_Srv));
addr_Srv.sin_family = AF_INET;
addr_Srv.sin_addr.s_addr = htonl(INADDR_ANY);
addr_Srv.sin_port = htons(listenport);
int retval=bind(sock_Receive,(SOCKADDR* )&addr_Srv, sizeof(addr_Srv));
if(retval==0)
{
AfxMessageBox("Successfully done");
}
else
{
AfxMessageBox("Failed");
}
memset((char *)&addr_Cli, 0, sizeof(addr_Cli));
clilen = sizeof(addr_Cli);
/*while(1)
{
if(recvfrom(sock_Receive,szMessage,256,0,(sockaddr *)&addr_Cli,&clilen)==SOCKET_ERROR)
{
AfxMessageBox("Error in Receive From");
return false;
}
else
{
char test[5];
itoa(*m_port,test,10);
if(strcmp(szMessage,test)==0)
{
//AfxMessageBox("port detected");
break;
}
}
}*/
closesocket(sock_Receive);
return TRUE;
}
our application hang when debugger comes in while loop.
please give reply of my problem.
Regards
kedar
|
|
|
|
|