Hey dudes! I am using VS 2005 and doing work in Visual C++ windows Applications. I am facing a prob that i have a class in which my data members are char * but when i get data from text box or edit box it is in the form of String. But i have to convert it into char*. How can i do it?? I got how to convert char * to string by COnvert::ToString(char*). And other one problem is that when i add a class, when i add data member as String or String^ it didn't allow me. To do it which header file Should i include??
Shirani
Posts
-
String to char* -
String to char *arrayYea i know it's the question of C++ but when i use the same application in .NEt. i can include . But it didn't allow me to add in VS 2005 :( so what should i do ?? I tried using namsespce std and using system std. So how can i include the file ???? I did the same work in .Net 2003 envirnment
Regards: Xohaib Shirani
-
String to char *arrayHey dudes! I am using VS 2005 and doing work in Visual C++ windows Applications. I am facing a prob that i have a class in which my data members are char * but when i get data from text box or edit box it is in the form of String. But i have to convert it into char*. How can i do it?? I got how to convert char * to string by COnvert::ToString(char*). And other one problem is that when i add a class, when i add data member as String or String^ it didn't allow me. To do it which header file Should i include??
Regards: Xohaib Shirani
-
How to search and delete a fileerror C2065: 'PathFileExists' : undeclared identifier error C2065: 'PathIsDirectory' : undeclared identifier
Regards: Xohaib Shirani
-
How to search and delete a fileHi guys i am new in MFC i want to know how to search for a specific file and delete it. ?? So please help me. I didn't find any any function for deleting like rename(brfore,after) for renaming a file or folder name.
Regards: Xohaib Shirani
-
How to move cirlce in MFC?i invalidate in OnmouseMove handler not in onPaint function
Regards: Xohaib Shirani
-
How to move cirlce in MFC?yes if i invalidate the painting area it hides the circle after moving it, You can check it by urself.
Regards: Xohaib Shirani
-
How to move cirlce in MFC?Yes dear i add CPaintDC obj(this); but it doesn't work properly. It leave the last effect of circle mean it moves the circle but the some effects of circle remain on the screen.
Regards: Xohaib Shirani
-
How to move cirlce in MFC?CPaintDC obj(this); x=(point.x)-50; y=(point.y)-50; obj.Ellipse(x,y,x+100,y+100); it didn't work.And i also tried this by defining CPaintDC obj in OnPaint fucntion x=(point.x)-50; y=(point.y)-50; CDC *ptr=CDialog::GetDC(); ptr->Ellipse(x,y,x+100,y+100); these both are not working.
Regards: Xohaib Shirani
-
How to move cirlce in MFC?Hey how can i move CClientDC object in client window using mouse ? i did it but it show last cicle on screen. If i do Invalidate to TRUE it moves the circle but did'nt show properly in Dialog box. if((nFlags & MK_LBUTTON)==MK_LBUTTON) { CClientDC obj(this); x=(point.x)-50; y=(point.y)-50; obj.Ellipse(x,y,x+100,y+100); } Invalidate(FALSE); So what should i do ???
Regards: Xohaib Shirani
-
How to add image buttons?Do you have any idea to change the colors of dialoge boxes?? I ask too much question?? Hmmm... Sory bro need to learn... :-D
Regards: Xohaib Shirani
-
deleting folder containting filesTry this in CMD rd /s FOLDER i think it will work
Regards: Xohaib Shirani
-
How to add image buttons?Dear i tell you that i am quite new in MFC so plz guide me where i have to put this code CImage m; m.Load(_T("c:\\1.jpg")); m_Button.SetBitmap(m.detach()); ??
Regards: Xohaib Shirani
-
How to add image buttons?Hi i am quite new in MFC but know C++ programing and done work in VC 6 using win32 console application now switching to MFC. So please tell me how can i add images button? How can i change the colors of dialouge boxes. I shall be very thankfull to you.
Regards: Xohaib Shirani