Click here to Skip to main content
Page 1 of 4
Page Size: 10 · 25 · 50


Author filtered by: Mahdi Nejadsahebi [x]
Re: Remove Edge From An Image by Mahdi Nejadsahebi
Forum Message 14 May 2013  
hi dear Muthahaih it't easy to do every MFC application to run needs some files to open. we have two state. 1_ Static Library : In this mode the necessary files will combined into app(EXE) file.
Use texture Opengl in MFC by Mahdi Nejadsahebi
Answer 13 May 2013   license: CPOL
at first it needs Glaux.lib after that we have to compile it from here: Project menu\properties\configuration properties\Linker\Input\Additional Dependencies then we can use AUX_RGBImageRec in MFC Project and use it.
I can't use Texture in MFC by Mahdi Nejadsahebi
Answer 13 May 2013   license: CPOL
at first it needs Glaux.libafter that we have to compile it from here:Project menu\properties\configuration properties\Linker\Input\Additional Dependenciesthen we can use AUX_RGBImageRec in MFC Project and use it.
Remove Edge From An Image by Mahdi Nejadsahebi
Tip/Trick 10 May 2013   license: CPOL
This tip describes how we can remove close pixels from color around the edges.
UnClose the Dialog by Mahdi Nejadsahebi
Answer 9 May 2013   license: CPOL
Kozlov_Sergey - 5 Apr '11 - 9:09 You can add empty OnClose function, to make you dialon not closable.
C++
Put data in the exe file(compile) by Mahdi Nejadsahebi
Question 9 May 2013   license: CPOL
hi everybodyi want to write a simple compiler.so that i can put an icon file or a little file to my application program and after that when i run my app program, the sightly file(ico,...)will be in my app.i passed compiler lesson in college.i use visual C++.thanks in advance
I can't use Texture in MFC by Mahdi Nejadsahebi
Question 24 Apr 2013   license: CPOL
hihave a good timei want to load a texture in MFC of Visual C++ 2010but when i use the syntax "AUX_RGBImageRec", error happens.but it works in project without MFC.how can i use it in MFC?I realy need it.error is : unreslovedthis is code that i used:AUX_RGBImageRec *LoadBMP(char...
I can't use Texture in MFC by Mahdi Nejadsahebi
Answer 24 Apr 2013   license: CPOL
this is code that i used:AUX_RGBImageRec *LoadBMP(char *Filename) // Loads A Bitmap Image{ FILE *File=NULL; // File Handle if (!Filename) // Make Sure A Filename Was Given { return NULL; // If Not Return NULL } File=fopen(Filename,"r"); //...
extract and set icon of exe file by Mahdi Nejadsahebi
Question 24 Apr 2013   license: CPOL
how can i change the icon of a exe file?
load file with own extension file by Mahdi Nejadsahebi
Question 6 Apr 2013   license: CPOL
have a good timei want to get path and load file that the clicked on explorer.i saw the some project about it, but i don't know what do i write in visual C++ and use which event to get it?thank you
Question 6 Apr 2013   license: CPOL
have a good timei use visual c++ 2012.i want to change the backcolor and textcolor of the button,textbox and ... .i used OnCtlColor but it wans'nt clearly as c# application.that was bad.also i used the articles in codeproject about it,but i couldn't do it.how do i do?thanks...
Answer 11 Mar 2013   license: CPOL
hi dear friendif you want to convert the char* to char use above codechar *a=0,*i=0,b;a=new char[n];i=&a[0];b=*i;...i++;b=i;...a is an dynamic array,i is reference and b is a character.i hope it will be useful
icon changer source code by Mahdi Nejadsahebi
Question 8 Mar 2013   license: CPOL
I need source code of icon changer and icon maker in c or c++,and the way to change source of exe file such a company name.TNXIn fact i want a part of a code file to access and change the icon of EXEs files.can everyone help me or give me a way to do this?thanks in advance
Answer 5 Mar 2013   license: CPOL
hi my dear friendgood ideait's easy to doi know this algorithm with visual c++ (MFC)at first you have to determine when the notepad program is opened.to do this you have to use Timer object or event.add this event into your project, and in the OnInitial() event you have to run...
meaning of :: in c++ by Mahdi Nejadsahebi
Answer 3 Feb 2013   license: CPOL
dear friendit called "scop resolution" for accessing to the sub class or struc or even an object items.
C++
Answer 16 Jan 2013   license: CPOL
hi dear sergeyif you work with visual c++, below code helps you:CImage i;i.Load(_T("a.bmp"));CDC cdc;cdc.Attach(i.GetDC());cdc.TextOut(_T("Hello world"),10,10);cdc.Detach();i.ReleaseDC();
C++
Show list of opened windows in op by Mahdi Nejadsahebi
Answer 23 Dec 2012   license: CPOL
this code works:BOOL EnumWindowsProc(HWND hWnd, long lParam){ char Buff[255], NameOfClass[255]; GetWindowTextA(hWnd, Buff, 254); // titlul ferestrei GetClassNameA(hWnd, NameOfClass, 254); // clasa //adauga in lista: ...
Show list of opened windows in op by Mahdi Nejadsahebi
Question 23 Dec 2012   license: CPOL
hi everybodyhave a good timei use visual c++ and i want to know how can i get a list that includes names of opened windows in Operating system?Care that we don't know count of them.for example:i open the "Calculator", "Computer", "Personalization", ... windows.finally i want to...
how to c++ connect to mdf by Mahdi Nejadsahebi
Answer 22 Dec 2012   license: CPOL
Looking for a very big number by Mahdi Nejadsahebi
Answer 21 Dec 2012   license: CPOL
C++
Connect to SQL Server by Mahdi Nejadsahebi
Answer 21 Dec 2012   license: CPOL
thank you so much dear sajeeshbut i don't know what's problem.my sql server and visual studio are installed correctly.if i connect to master database in visual studio(server solutio tab) it works , but when i use CDatabase and connection string it retruns error that cant attach that.
Connect to SQL Server by Mahdi Nejadsahebi
Question 21 Dec 2012   license: CPOL
hi eveyonehave a good timei want to connect to sql server database, so i use below code and i got result and it works.CDatabase db;if (db.OpenEx(_T("Driver={SQL Server Native Client 11.0};Server=.;Database=m;Trusted_Connection=yes;"),4)){ db.ExecuteSQL(_T("update dbo.items set...
Answer 21 Dec 2012   license: CPOL
All right my friendthis is code that i used:CDatabase database; CString SqlString; CString ssn,firstname; CString sDriver = _T("SQL Server"); CString sDsn, sMc; sMc.Format(_T("."));//MERILDSK33 CString sFile =...
Question 21 Dec 2012   license: CPOL
hi everyonehave a good timei know that how can i connect to a "mdf" file in visual c#, but i can't connect to that with visual c++.can anyone help me?i used "CDatabase" class but didn't get result.thanks a lot
Use of Bitwise shift operators by Mahdi Nejadsahebi
Answer 20 Dec 2012   license: CPOL
take a look at this:this is...
Remove the last digit from float by Mahdi Nejadsahebi
Answer 20 Dec 2012   license: CPOL
hi dear friendi think this code can help you:float f=45.723; //main digitfloat df=0; int i1=0,t=0,t1=0;t=f;df=f-t;t1=df*1000000;while(!t1%10) t1/=10;t1/=10; //remove last digitdf=t1/(float)1000000;f=t+df;//f is your number
connect to mdf sql database by Mahdi Nejadsahebi
Forum Message 20 Dec 2012  
hi dear zhaque thanks for your article can you help me? i want to connect to a "mdf" database,but i don't know what string should i use. what do i do? thanks.
connect to mdf file by Mahdi Nejadsahebi
Forum Message 18 Dec 2012  
hi dear friend thanks for your article i want to conenct to a "mdf" file,how can i do this? what string should i use? thanks again.
connect to mdf file by Mahdi Nejadsahebi
Forum Message 18 Dec 2012  
hi dear friend thanks for your article i want to conenct to a "mdf" file,how can i do this? what string should i use? thanks again.
Article 15 Dec 2012   license: CPOL
How to detect the angle of a line in an image
Open GL Texture in MFC by Mahdi Nejadsahebi
Question 10 Dec 2012   license: CPOL
HiI wanna Load a texture(Image) in my MFC Dialog with OpenGL.i used AUX_Imagerec fuction,but it reruens external unresolved error.How Can I Do it?Thanks
My vote of 4 by Mahdi Nejadsahebi
Forum Message 7 Dec 2012  
greate article you're smart girl.
Answer 6 Dec 2012   license: CPOL
dear friendyou have to write the "getting" features in a timer event.when you're clicking on the dialog,in "OnLCickDown" event you have to enable and call the "OnTimer" event.in OnTimer you have to get Rect of your dialog with GetWindowRect function.after that you can get what you...
Question 6 Dec 2012   license: CPOL
hi every bodyi use visual c++ 2010 and i want to capture the desktop from another system, like coffee net management.how can i get image of screen from an IP address?thanks a lot
Re: Demo and source by Mahdi Nejadsahebi
Forum Message 3 Dec 2012  
good luck :)
Re: My vote of 1 by Mahdi Nejadsahebi
Forum Message 3 Dec 2012  
in fact i write the "demo" project with these ralationshiop and that works correctly, for every value of z. maybe i don't understand your mean,do i? if so, help me my friend.
Re: My vote of 1 by Mahdi Nejadsahebi
Forum Message 3 Dec 2012  
hi dear Yves can you explain for me until i find out my mistake? although this is simple idea about it.
Re: Demo and source by Mahdi Nejadsahebi
Forum Message 3 Dec 2012  
hi dear harry i'm sorry i wrote it with visual studio 2011. to use it you have to copy and write just "codes" in ".cpp" file and then past that in another project in the your viusal studio. good l
Structure_of_3D by Mahdi Nejadsahebi
Article 2 Dec 2012   license: CPL
This article describes that how 3D images convert to 2D images.
Question 25 Nov 2012   license: CPOL
hi everybodyi work with visual studio 2010 and i want to read signal from acr120 card reader nad work with that.how can i do it?i need it.thanks in advance.
Re: My vote of 5 by Mahdi Nejadsahebi
Forum Message 17 Nov 2012  
dear firend thanks for your rate but i'm bussy recently to update my article. ok by the way, it's not to article. you indulgenced. thanks.
Add a Dialog in a Dialog with MFC by Mahdi Nejadsahebi
Answer 17 Nov 2012   license: CPOL
hiCFileDialog f(1);f.DoModal();
Declaration of variables by Mahdi Nejadsahebi
Answer 17 Nov 2012   license: CPOL
have a good time dear firenadat first code, the "test" variable is global for the "while" and after the "while" it will be and can be used and memory will keep it's value.but in the second code, the "test" is local in the "while" and after the "while" it will not be used to code.
Answer 17 Nov 2012   license: CPOL
have a good time dear mr sajjadyou're from iran?me too.look you have to declare a dynamic array like above:int n=0,*a=0;cout>n;a=new int[n];after that you can control the array with an index , like above :int...
C++
Forum Message 14 Nov 2012  
thanks for your good article i want to know how can i get the path of a file selected in windows explorer. i work with visual studio 2010 in fact i want load files in my application when the user c
My vote of 5 by Mahdi Nejadsahebi
Forum Message 14 Nov 2012  
it's great i really need it thanks again
Get path of selected file in IE by Mahdi Nejadsahebi
Question 14 Nov 2012   license: CPOL
hi allhave a good timei want to know how can i get path and name of a file that user is double clicking on that.i mean i want to load a file in myself application with do double click on that with explorer in windows.thanks a lot
My vote of 2 by Mahdi Nejadsahebi
Forum Message 4 Nov 2012  
thanks but you didn't explain your code and algorithm. and also use more images. good luck
dialog arrays in mfc by Mahdi Nejadsahebi
Answer 31 Oct 2012   license: CPOL
hiyou have ten dialogyou used constant index to remove array . i mean five : dlg.remove(5)it's certain my palwhen you perform it for five times, you have five array and once you do it again, you'll have less than five array and you won't have array number 5 to remove that.am i right?
Genereic Interface for get and set by Mahdi Nejadsahebi
Answer 31 Oct 2012   license: CPOL
hi dear friendi think you can determine and compare those types with their size.by sizeof() function.

Page 1 of 4
1 2 3 4


Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid