15,913,941 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by jiazhiqiang (Top 41 by date)
jiazhiqiang
4-May-15 1:26am
View
I have tried while opening a cpp file of mfc project.But while the file type is mxml and prject type is a flex project. It doesn't work!
jiazhiqiang
26-Feb-15 4:48am
View
thanks!so kind of you!
jiazhiqiang
25-Feb-15 20:02pm
View
no where to find it in vs help.
But the reality is the Macros section really contain both %(var) ,$(var).
thanks anyway.
jiazhiqiang
24-Feb-15 9:36am
View
so what's the different between them.(%(var)<->$(var))
jiazhiqiang
6-Jan-15 20:41pm
View
Exactly!But which handler? please.
jiazhiqiang
22-Dec-14 4:58am
View
no.
I used form event handler for pictureBox .e.g pictureBoxViewedImage_MouseUp(),MouseDown() ,MouseMove().finally ,To accomplish the drawing at MouseUp()
by following snippet:
Graphics^ g= pictureBoxViewedImage->CreateGraphics();
Pen^ pen1 = gcnew Pen(Color::Blue, 2);
g->DrawLine(pen1, pt1, pt2);
got ?
jiazhiqiang
22-Dec-14 3:57am
View
I will try,but by now I draw shape by :
Graphics g= pictureBox->CreateGraphics();
g.DrawLine(...)
inside form's member function.
You said "i'm not draw on the PictureBox",what's meaning? what's the different with
Paint of pictureBox?
jiazhiqiang
22-Dec-14 3:38am
View
Deleted
@BillWoodruff
-> 1.'If your goal is to somehow save (serialize) the entire WinForms PictureBox Control, that's not directly
you may misunderstand the "save" I said. may it's my fault.I just want to take a snapshot of the picture-box client showing as a bmp or png.including both the background image and drawing shapes by myself.
->2. Erasing any specific content (raster, pixels) in a Bitmap after whatever object was the source of that content (shape, another bitmap, etc.) is impossible once those bits have been written (the source rasterized).
I absolutely understand what you said.But along you way.I don't think the shapes I drawn and the background the bmp is already merged into one. You can take a look at the first reply from
@d@ish
<pre lang="c#">Bitmap bitmap = new Bitmap(pictureBox1.Width, pictureBox1.Height);
pictureBox1.DrawToBitmap(mybmp, pictureBox1.Bounds);
bitmap.Save("C:\\someImage.bmp");
</pre>
I have tried it but it didn't works completely.It really export the bmp of picture-box but only the background image not include the shapes I draw.
anther instance is
snagit editor
(hope you know that).After you open a image,you can draw any shape above it. you can select and remove the shape independent of the underneath image.That's what I want. I can store any info acquired for that by any Type.
any more hint ?
thanks in advance!
jiazhiqiang
22-Dec-14 3:23am
View
hi d@nish!
I have tried you method.it didn't works completely.It really export the bmp of picture-box but only the background image not include the shapes I draw. any hint?
jiazhiqiang
15-Dec-14 20:33pm
View
thanks every one! BTW,the
recent project and solution
can also be configurable?
jiazhiqiang
10-Dec-14 6:43am
View
thanks very much!this's really helpful!
jiazhiqiang
7-Dec-14 8:52am
View
I have read the content of the link you supplied.thansk but I'm totally newbie for networking. May need a long and long curve to learn and apply it.
jiazhiqiang
5-Dec-14 8:54am
View
I have sent email to QT forum team , hope will get reply soon. I want remove or close this thread but I just can't find the way. sorry for waste all your time.
jiazhiqiang
5-Dec-14 8:33am
View
I have same thought,but just because I can't post my reply So I have no choice but ask for some hint. thanks any way.
jiazhiqiang
22-Oct-14 2:42am
View
hello everyone,so sorry for later reply.
I just reply to @Aescleal.
I think he said "It's not the compiler that's complaining - it's the linker. The OP is comparing the behaviour of a constant with a mutable pointer to a constant." really to the point.
thanks all.
jiazhiqiang
22-Oct-14 2:40am
View
thank you very much.
I think you're right. I just tried to changed "const char * lp = 'abc';" to "char * const lp = 'abc';" and I copy & paste same 2 instances into 2 different cpps.
The MSVC compiler(or link) didn't issue any problem.
I think the constant varible is just treated as the literal as you have said.
jiazhiqiang
17-Oct-14 1:25am
View
@BacchusBeale
1.I have
#pragma once
jiazhiqiang
17-Oct-14 1:22am
View
I totally understand what you are saying.
I really put "const char * lp = 'abc'" in a header and then included by different cpp files,leading same variable is defined in different compiler-unit.
But I just don't understand why "const int n = 1 " is OK ? any hint ?
jiazhiqiang
16-Oct-14 23:14pm
View
thanks very very much.that really solved my problem!
jiazhiqiang
23-Jul-13 0:28am
View
no,I need the 2 IDE both.
the problem is when use Qmake tool to generate the vs project-file by .pro file,I want to generate the vs2008's project-file ,but always output the vs2003 version.
jiazhiqiang
25-Jun-13 0:25am
View
yes! Exactly!
But could you tell me the sample code I write above,It's MUST be error? and why?
If I use same version and same language and same compiler swiths.
In my perspective,the Dll is just affiliated to Exe.
thanks
jiazhiqiang
23-Jun-13 23:02pm
View
Deleted
" Second: Why havent you read the doc about ShellExecuteEX ???
yes!
I have mentioned that->
If my app startup the autocad by ShellExecuteEX then I can get the Hanlde of it.
By this Handle, May I get it's corresponding Com's object?
jiazhiqiang
17-Apr-13 0:21am
View
I'm really not understand what's you mean.
I I just Want to ask "How to pass the outer JString format() "..." argument to inter m_Imp 's format() which also need the "..." argument ?"
thanks!
jiazhiqiang
16-Apr-13 23:49pm
View
m_Imp is the pointer member of JString.it will Alloc on Heap in the constuctor of JString.
Now It just How to pass the outer JString format() "..." to inter m_Imp 's format().
jiazhiqiang
13-Mar-13 2:18am
View
I have read you answer carefully,It's really helpful for me.thanks very much,
Although the Question I issued is not like a regular one.
But I really just can't find out how to find the source of TortoiseSvn,The website sourceforge.net is the only one that I have used to find open-source software and get the source from there.
The Google.code is wonderful and new one for me ,Thanks.
BTW,if you know some more websites , please tell me !
Thanks very much again!
jiazhiqiang
4-Mar-13 23:43pm
View
thanks,I have accomplished with TortorseSVN.
jiazhiqiang
28-Jun-12 0:35am
View
OH!I Got it! Thanks very much!
jiazhiqiang
16-Apr-12 5:26am
View
Is suited for pure C++ program?
jiazhiqiang
16-Apr-12 5:22am
View
Is suited for pure C++ program?
jiazhiqiang
13-Mar-12 20:47pm
View
"But you did not specify type of application, language"
visualize html editor ,light-weight and free, language:English is OK!
jiazhiqiang
10-Mar-12 6:00am
View
The .bmp file is normally supported by RichEdit,but I need about 200+ bmp files.this type of file is 6-8 times bigger than png or gif,I don't need animation feature of gif,I just what static picture.
So I Need to load more smaller type file,eg:png or gif reside in Dll or Disk,I need load them and output in RichEdit2.0.
(Vs2008 MFC VC++)
jiazhiqiang
10-Mar-12 4:19am
View
I need one,Sent me the source files please!
740176597@qq.com
Best wishes!
jiazhiqiang
9-Mar-12 22:46pm
View
I just show them to the user.
Don't want user to select the RTF data.
jiazhiqiang
8-Mar-12 20:47pm
View
A litter confusing,^_^.
you said "If you choose this option, none of the code changes are committed." "this option" represent which?
I mean I want to use the [Apply code change Alt +F10] function,But unfortunately ,it's always disabled even I have checked on "Debuging"->[Enable Edit and Continue] option.
Do you have a good method?
jiazhiqiang
7-Mar-12 2:13am
View
I have decided to use RichEdit2.0,Thanks anyway!
jiazhiqiang
7-Mar-12 1:30am
View
I just want it look like the contents is really in a control of the dlg,It can scroll up and down(read-only),when I press a "Hide" Button on dlg,that can be hiden and restore.
Is this approach you offer can do it? May you give me a sample or link?
Thank you!
jiazhiqiang
6-Mar-12 23:55pm
View
I need one control that can display the Text string or images together(that can be have retreived from the disk)In a format:
"text Line 1"
[image 1]
[image 2]
"text Line 2"
[image 3]
So the comment to display is determined by user select and app's logic.Is not fixed.
One 1 line Text and a corresponding image.
jiazhiqiang
6-Mar-12 22:54pm
View
please look at the previous reply.
I use VS2008,No other library used so-far.I want that's kind of control,there 's Source code is better,if not,Some library is OK!
regards.
jiazhiqiang
6-Mar-12 22:51pm
View
Now I need a kind of control that has source code or from MFC can display the text and image together,like Web-page view,Now I can Get the Text string and the Path of image file,I just want to output them in a that control,as part of dialog.
jiazhiqiang
3-Nov-11 0:53am
View
thank for you reply."You can find exact meaning and purpose of all of the above in any C++ manual"But I have referred serveral manuals but they don't describe the "static" accurate meaning,or the different behaviour the compiler takes relative to no-static obj.Can you offer some? or a link!
And some articles about the compiler working principle.
thank you very much!
jiazhiqiang
31-Oct-11 1:48am
View
I develop software based-AutoCAD,version from CAD2000-CAD2012,need vc6,vc7,vc,8,vc9,but usually I am accustomed to work with VC6, building other platform versions with corresponding vc version.
thank you anyway!
Show More