9,868,710 members (29,903 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
153 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 4
Page Size:
10
·
25
·
50
Author filtered by: Mahdi Nejadsahebi
[x]
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.
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
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.
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
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.
Multimedia
»
General Graphics
»
Image Display
C++
Windows
Intermediate
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.
General Programming
»
Uncategorised Quick Answers
»
General
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
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
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...
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
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"); //...
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
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?
General Programming
»
Uncategorised Quick Answers
»
General
MFC/C++
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
General Programming
»
Uncategorised Quick Answers
»
General
C++/CLI
Change the graphical style of objects
by
Mahdi Nejadsahebi
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...
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
convert char* array to character reference in C++
by
Mahdi Nejadsahebi
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
General Programming
»
Uncategorised Quick Answers
»
General
C++
MFC
VC++
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
General Programming
»
Uncategorised Quick Answers
»
General
C++/CLI
A Program can set window title of other programs
by
Mahdi Nejadsahebi
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...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C
Win32
API
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.
General Programming
»
Uncategorised Quick Answers
»
General
C++
How to open a bitmap file and draw a string on it with C++?
by
Mahdi Nejadsahebi
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();
General Programming
»
Uncategorised Quick Answers
»
General
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: ...
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
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...
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
how to c++ connect to mdf
by
Mahdi Nejadsahebi
Answer
22 Dec 2012
license:
CPOL
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
Looking for a very big number
by
Mahdi Nejadsahebi
Answer
21 Dec 2012
license:
CPOL
General Programming
»
Uncategorised Quick Answers
»
General
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.
General Programming
»
Uncategorised Quick Answers
»
General
C++//MFC
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...
General Programming
»
Uncategorised Quick Answers
»
General
C++//MFC
How can i connect to mdf file in MFC C++?
by
Mahdi Nejadsahebi
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 =...
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
How can i connect to mdf file in MFC C++?
by
Mahdi Nejadsahebi
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
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
Use of Bitwise shift operators
by
Mahdi Nejadsahebi
Answer
20 Dec 2012
license:
CPOL
take a look at this:this is...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C
Java
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
General Programming
»
Uncategorised Quick Answers
»
General
C++
Windows
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.
General Discussions
»
Using The Cdatabase Class To Read An Access Databases
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.
General Discussions
»
Accessing Dbase Files
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.
General Discussions
»
Easyodbc
Detect the Angle of a Line in an Image
by
Mahdi Nejadsahebi
Article
15 Dec 2012
license:
CPOL
How to detect the angle of a line in an image
Multimedia
»
General Graphics
»
General
C++
Dev
Intermediate
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
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
My vote of 4
by
Mahdi Nejadsahebi
Forum Message
7 Dec 2012
greate article you're smart girl.
General Discussions
»
Palantir - Remote Desktop Manager
How to get the position ,width and length of the dialog box.
by
Mahdi Nejadsahebi
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...
General Programming
»
Uncategorised Quick Answers
»
General
C++
VC++
Capturing desktop in C++ with ip address
by
Mahdi Nejadsahebi
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
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
Re: Demo and source
by
Mahdi Nejadsahebi
Forum Message
3 Dec 2012
good luck :)
General Discussions
»
Article "Strucure_Of_3D"
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.
General Discussions
»
Article "Strucure_Of_3D"
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.
General Discussions
»
Article "Strucure_Of_3D"
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
General Discussions
»
Article "Strucure_Of_3D"
Structure_of_3D
by
Mahdi Nejadsahebi
Article
2 Dec 2012
license:
CPL
This article describes that how 3D images convert to 2D images.
Multimedia
»
General Graphics
»
General
C++/MFC
read signal from acr120 card reader device
by
Mahdi Nejadsahebi
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.
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
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.
General Discussions
»
Article "Detect The Angle Of A Line In An Image"
Add a Dialog in a Dialog with MFC
by
Mahdi Nejadsahebi
Answer
17 Nov 2012
license:
CPOL
hiCFileDialog f(1);f.DoModal();
General Programming
»
Uncategorised Quick Answers
»
General
C++
MFC
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.
General Programming
»
Uncategorised Quick Answers
»
General
C++
C
How to make a dynamic array? Two parameters
by
Mahdi Nejadsahebi
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...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Get path of a file clicked upon in windows explorer.
by
Mahdi Nejadsahebi
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
General Discussions
»
Associate File Extension With Shell Open Command And Application
My vote of 5
by
Mahdi Nejadsahebi
Forum Message
14 Nov 2012
it's great i really need it thanks again
General Discussions
»
Associate File Extension With Shell Open Command And Application
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
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
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
General Discussions
»
Article "Easy String Compression And Encryption"
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?
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
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.
General Programming
»
Uncategorised Quick Answers
»
General
C++/MFC
How to use MFC in acrobat plugin?
by
Mahdi Nejadsahebi
Answer
31 Oct 2012
license:
CPOL
hi pali think you can get some information from acrobat site. they usualy have a documentation for their components.take a look and good luck
General Programming
»
Uncategorised Quick Answers
»
General
C++
C++/MFC
Page 1 of 4
1
2
3
4
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web02 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid