15,896,201 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 Andrewpeter (Top 185 by date)
Andrewpeter
8-Feb-17 13:27pm
View
I updated my code above. Hope you help me to solve completly this problem! Thanks.
Andrewpeter
8-Feb-17 13:19pm
View
I use LoadBitmapA() to load image from dll, but it's not to work. I update my code above. Hope you help me!
Andrewpeter
21-May-16 21:54pm
View
Yes Sir, I have solved this. Thanks.
Andrewpeter
22-Apr-16 23:25pm
View
Hi Cpallini,
I find my problem on Google, but not see anything relative to it. All problems which I see on Google are for one ODE, not System of ODE. Please help me find it. Thanks.
Andrewpeter
4-Dec-14 9:39am
View
Thanks, I tried that code but it did not work. You can help me more about this? I really need a solution for this problem.
Andrewpeter
18-Aug-14 4:47am
View
Thanks KarstenK, I will try your solution. Vote 5 for you.
Andrewpeter
18-Aug-14 4:46am
View
Thanks Fedrik, it's great. Vote 5.
Andrewpeter
15-Aug-14 8:23am
View
Thanks --SA, it's great ! My solution is yours. Vote 5.
Andrewpeter
25-Jul-14 9:37am
View
Thanks Stefan, it's great. My vote is 5 for you and it is the solution which I like.
Andrewpeter
19-Jul-14 22:23pm
View
Thanks. It's great.
Andrewpeter
19-Jul-14 10:25am
View
Hi SA, can you have an opinion about this problem? Thanks.
Andrewpeter
19-Jul-14 10:24am
View
Thanks. You can find to help me? Thanks.
Andrewpeter
2-May-14 23:00pm
View
Thanks. It's great.
Andrewpeter
7-Apr-14 11:25am
View
Thanks, I saw: Resource Hacker can change every things of the file. So I think C# can write a soft to do that.
Andrewpeter
1-Apr-14 6:58am
View
Sorry, I edit my code above! The condition (p_<20) is an example, in fact, it is an expression of p_. So I have to need to calculate pLength. That mean is: I dont know the size of p pointer in fn() function, when this function is finished we know this size (is pLength). You can help me complete this. Thanks.
Andrewpeter
31-Mar-14 11:06am
View
Thanks you. I want to List to replace for Array and write dll file with C++ then call it from C#.
Andrewpeter
31-Mar-14 11:04am
View
Sorry, using array is not convenient! Because the array to pass for function is declared the unchanged size. I use List to improve that. What your idea about this? Thanks. It's difficult for me.
Andrewpeter
31-Mar-14 10:37am
View
Thanks. My vote is 5.
Andrewpeter
31-Mar-14 10:37am
View
Thanks, my vote is 5 for you.
Andrewpeter
31-Mar-14 7:52am
View
In fact, I will call this function twice to get pLength and re-allocate memory space for p:
double[] p = new double[2]; // Allocate with temporariness
int pLength = 0;
fn(p, ref pLength); // Get pLength correctly
p = new double[pLength]; // Re-allocate p correctly
fn(p, ref pLength); // Recall to get p.
But this work has loss "twice" with fn() function! I want to call once fn() function.
Thanks in advance.
Andrewpeter
31-Mar-14 7:39am
View
Thanks. But how to create space of p array in this dll? Hope you help me.
Andrewpeter
30-Mar-14 23:52pm
View
Deleted
I think:
When you execute the command
ReDim ocra(2).marks(2)
you only declare the size of ocra(2).marks() to be 2. With ocra(0).marks(), you not declare!
You replace
ReDim ocra(2).marks(2)
by
ReDim ocra(0).marks(2)
Have a good luck! (I'm not in VB.NET).
Andrewpeter
25-Mar-14 6:17am
View
So I have to re-link it when remove it to another location. Thanks for your support.
Andrewpeter
25-Mar-14 6:04am
View
Thank you. I'm bad in English so my word becomes difficult to understand. My destination is: I have a def file named "ModPeoject.def" contains exported function symbols, I add it to my project (and it is put in folder project, C:\ModProject). In linker configuration commandline I link to this file by using /DEF:"C:\ModProject\ModProject.def". I compile it successfuly. But when I cut (sorry, cut, not copy) that folder "ModProject" to another location of hard disk (D) and open project, recompile - at this time, I see an error:
Error 1 fatal error LNK1104: cannot open file 'C:\ModProject\ModProject.def'
I have re-link /DEF:"D:\ModProject\ModProject.def" then I compile successfuly.
I dont want to re-link above when I cut that folder to any location in hard disk. How to do this? Thanks.
Andrewpeter
25-Mar-14 5:21am
View
Sorry I dont understand a problem: "Custom properties settings" - where is it? I dont find it in Property page. Hope you help me. Thanks.
Andrewpeter
25-Mar-14 4:17am
View
Thanks you. It's great!
Andrewpeter
27-Feb-14 21:03pm
View
It's great. Thanks. My vote is 5.
Andrewpeter
22-Feb-14 10:53am
View
I created the polygon with n points given (x1, y1),...,(xn, yn). I dont know any algorithm to check if the polygon is intersected or not intersected itself.
Andrewpeter
4-Feb-14 9:52am
View
Thanks. GDI+ with VB6 is a difficult problem. I'll try to do it. My vote is 5 for you.
Andrewpeter
3-Feb-14 9:06am
View
Thanks. My vote is 5 for your answer.
Andrewpeter
22-Jan-14 23:33pm
View
Thanks you! It's great advice, I am trying to do this. My vote is 5.
Andrewpeter
15-Jan-14 9:04am
View
Thanks, my solution is yours.
Andrewpeter
15-Jan-14 9:03am
View
Thanks you!
Andrewpeter
13-Dec-13 11:04am
View
Oh, I'm absent-minded! Thanks. It's done. +5 to you!
Andrewpeter
12-Dec-13 10:04am
View
Hj, thank you very much! It's great!
Andrewpeter
12-Dec-13 9:53am
View
Thanks. It's very good! I'll applicate for my app.
Andrewpeter
12-Dec-13 9:51am
View
OK, it's great! My vote is 5. Thanks.
Andrewpeter
12-Dec-13 9:47am
View
Oh, thanks. When return type of function is user-define type (e.g: A_type,...) how can I solve it? Hope you help me!
Andrewpeter
27-Nov-13 8:42am
View
OK SA.
Andrewpeter
26-Nov-13 10:12am
View
Thanks. My vote is 5. I found out that book, it's really great.
Andrewpeter
26-Nov-13 10:10am
View
Thanks SA, it's great. My vote is 5 for you.
Andrewpeter
25-Nov-13 10:59am
View
Thanks SA, I will think more about this. I know it's very difficult.
Andrewpeter
16-Nov-13 11:21am
View
Yes Bill, I am working with Windows Forms, I tried to do as follows you supported, but It did not work; I had to use '\n' to separate the text of menu item and it worked, but I had to manual with code. I want to separate automatically! Hope you help me to do this. Thanks.
Andrewpeter
24-Jul-13 5:19am
View
Thank a lot for your answer, I've understood it.
Andrewpeter
24-Jul-13 5:16am
View
Oh, "Condition" is logical expression, can you compare an integer with a logical expression?
Andrewpeter
4-Jul-13 5:00am
View
I want to display a message box as I ask above. I think you can help me do that. OK? Thanks.
Andrewpeter
4-Jul-13 4:46am
View
OK, thanks. How to solve this? You can help me?
Andrewpeter
4-Jul-13 4:40am
View
Oh, I tryed doing as follow your support, e.g:
MessageBox(NULL,(LPCWSTR)L"I love Vietnam",(LPCWSTR)L"Report...",MB_OK);
But it doesnt work! What is happened? Thanks.
Andrewpeter
4-Jul-13 4:35am
View
Thank you very much CPallini, how to check return value of that function?
Andrewpeter
4-Jul-13 4:28am
View
Thanks my countryman, I used AfxMessageBox() to instead of MessageBox(), but I can not know how to do that, I think the AfxMessageBox() is only used in MFC, do you agree with me about this? If I am wrong you can help me solve this, thanks.
Andrewpeter
4-Jul-13 4:23am
View
Thanks, I used Depends.exe to check export of that function, it's exported. I have done follow what you supported, but it doesnt work! Hope that I have another solution of you. Thanks.
Andrewpeter
9-Mar-13 21:45pm
View
Thanks you, I dont have any code, so my question is "how to". Can you support to me that? I will code it when I get ideas from you about this. Thanks.
Andrewpeter
9-Mar-13 21:32pm
View
Oh, I only compiled a Win32Dll which contains bitmaps (like Shell32.dll) successfuly (with C++), I want to "get those bitmaps and display them on PictureBoxes in C#". Hope you understand my those ideas. How to get those bitmaps from that dll and display them on PictureBoxes (control) in C#? (My English is very bad, so I cant say more about this, thanks).
Andrewpeter
9-Mar-13 21:21pm
View
I want to put the bitmaps into a Win32Dll (by C++ - I have done it successfuly), after that I want to get them from my dll and display them on my PictureBoxes (in C#). Can you help me to do this? Thanks.
Andrewpeter
12-Feb-13 7:14am
View
I'm sorry, I don't understand about what you say. You can give me an example? Thanks.
Andrewpeter
9-Feb-13 23:08pm
View
I updated my post, hope you help me. I biuld well, but when I analyze with "Run code analysis on "a"" and I get the warnings above.
Andrewpeter
9-Feb-13 7:40am
View
My code was fixed as follows:
- Allocate:
for (int i=0;i<5;i++)
{
f[i]= new int*[6];
for (int j=0;j<6;j++)
f[i][j]= new int[7];
}
- Free:
for (int i=0;i<5;i++)
{
delete[] f[i];
for (int j=0;j<6;j++)
delete[] f[i][j];
}
And I get two warnings (the name of my project is "a"):
Warning 1 warning C6211: Leaking memory 'f[0]' due to an exception. Consider using a local catch block to clean up memory: Lines: 9, 10, 12, 13, 14 c:\users\peter\desktop\a\a\a.cpp 12 a
Warning 2 warning C6211: Leaking memory 'f[0][8]' due to an exception. Consider using a local catch block to clean up memory: Lines: 9, 10, 12, 13, 14, 13, 14, 13, 14, 13, 10, 12 c:\users\peter\desktop\a\a\a.cpp 14 a
I dont understand them. Can you help me check it. Thanks.
Andrewpeter
9-Feb-13 7:33am
View
I have two problems:
- I allocate it truly or wrong?
- I free it wrong, how to do it truly? I want to understand it well. Please explain it clearly. Thanks.
My vote is 5 for your answer, it's great with me.
Andrewpeter
9-Feb-13 7:30am
View
Thanks SA, I improved my question.
Andrewpeter
8-Feb-13 20:14pm
View
Yes Sir, but I get memory leak when I do it:
- Allocate them:
for (int i=0;i<5;i++)
{
*f[i]= new int*[6];
for (int j=0;j<6;j++)
f[i][j]= new int[7];
}
And free them as follows:
for (i=0;i<6;i++)
delete[] *f[i];
Please help me solve this, thanks.
Andrewpeter
16-Jan-13 22:28pm
View
My platform is Windows. Thanks.
Andrewpeter
16-Jan-13 22:27pm
View
Yes sir, it's great. Thank you very much.
Andrewpeter
16-Jan-13 8:45am
View
Thanks, your code is used for MFC?
Andrewpeter
16-Jan-13 8:44am
View
Thanks SA for your question, I code "Console" platform. Hope you help me.
Andrewpeter
2-Jan-13 10:22am
View
Thanks, my vote is 5 for you!
Andrewpeter
2-Jan-13 10:17am
View
Thank you very much, i will see it. My vote is 5. Have a good day!
Andrewpeter
2-Jan-13 10:12am
View
Thanks you, but it is raw topic, it's not topic which i need. Can you find another to help me, thanks.
Andrewpeter
28-Nov-12 2:32am
View
My vote is 5.
Andrewpeter
28-Nov-12 2:32am
View
It's Windows Forms, thanks.
Andrewpeter
28-Nov-12 2:32am
View
Thanks SA, it's great and i've found out my solution.
Andrewpeter
3-Nov-12 6:44am
View
Thanks for you answer, it's great idea to me solve my code. My vote is 5.
Andrewpeter
3-Nov-12 6:43am
View
Thanks, i solved! My vote is 5 for you.
Andrewpeter
3-Nov-12 5:17am
View
Yes!
Andrewpeter
2-Nov-12 9:29am
View
Thanks SA, i will try to do it. My vote is 5.
Andrewpeter
19-Oct-12 10:45am
View
Thanks. I dont understand Collection from your link, i have a declare in VB6 as following:
Private z_Funk As Collection 'hWnd/thunk-address collection
I want to convert Collection type above to C# code, help me convert completely this code. Thank you very much.
Andrewpeter
19-Oct-12 10:15am
View
Thanks you, Kuthuparakkal. What are "Collection, StdPicture and FormWindowStateConstants" in C#? Can you help me about this? My vote is 5.
Andrewpeter
19-Oct-12 4:59am
View
Yes, thanks you. It's great code. My vote is 5 for you. Kuthuparakkal gave me a solution above, although i accept your answer which is a solution which i need. Have fun!
Andrewpeter
19-Oct-12 4:54am
View
Thanks you, it works well. My vote is 5.
Andrewpeter
18-Oct-12 9:35am
View
Yes, i forgot about that, thanks.
Andrewpeter
18-Oct-12 0:38am
View
Thank you very much, it works well. My vote is 5 for you.
Andrewpeter
18-Oct-12 0:27am
View
Thanks you, it works well!
Andrewpeter
18-Oct-12 0:26am
View
Thanks you, it's great idea.
Andrewpeter
13-Oct-12 3:01am
View
Thank you, SA. I read it, but i dont get images from C# dll (class library of C#), my dll is WIN32 dll (e.g: Shell32.dll,....). That topic (in your link) uses C# dll. I can convert all VB6 code above to C# code but the third parameter of OleCreatePictureIndirect() (it is "IPic As IPicture") - my main question is "What type of C# does equivalent with IPicture in VB6?". Thanks. My vote is 5 for your answer, hope you help me more.
Andrewpeter
12-Oct-12 22:38pm
View
What is prototype of yahoo_login() function?
Andrewpeter
12-Oct-12 22:24pm
View
Thanks SA, I want to get images from dll file, this is VB6 article:
http://www.codeproject.com/Articles/6953/Loading-Bitmap-pictures-from-external-DLL-on-VB-6?
In this article I see him use OleCreatePictureIndirect() API, i want to convert that code to C# code; i cant find any information about this API with C#. Could you help me? Thank you very much.
Andrewpeter
9-Oct-12 11:06am
View
Where is the progressbar? If it is in main form (not "another form") - you can use a Timer control to control that progressbar.
Andrewpeter
9-Oct-12 10:53am
View
My vote is 5 for you.
Andrewpeter
27-Sep-12 9:44am
View
Thank you.
Andrewpeter
26-Sep-12 22:51pm
View
I dowloaded and installed it, i loaded dll file and saw all C# code. But I couldnt decompile it to source code, how to do this? Thanks.
Andrewpeter
26-Sep-12 22:36pm
View
I'm done. Thanks.
Andrewpeter
26-Sep-12 22:17pm
View
Thanks Kuthuparakkal, I'll try to use it, my vote is 5 for you. Thanks.
Andrewpeter
25-Sep-12 10:28am
View
Thanks you, it's great, i'll try.
Andrewpeter
25-Sep-12 10:02am
View
Oh, you can show me that? Thanks.
Andrewpeter
25-Sep-12 9:44am
View
Thank you very much, I searched it on this site - but not found what i wanted. VB6 is different C# - i know that, but I want to create jcForm with C#, do you help me? Can you translate VB6 code into C# code? Thanks.
Andrewpeter
24-Sep-12 11:21am
View
Thank you very much, I'm done it. My vote is 5 for you.
Andrewpeter
24-Sep-12 1:04am
View
I think this is ActiveX dll... so not use LoadLibrary() function.
Andrewpeter
23-Sep-12 11:53am
View
You can see my answer below.
Andrewpeter
23-Sep-12 10:57am
View
What do you use WndProcC() function to do?
Andrewpeter
22-Sep-12 4:51am
View
Deleted
Where is DropDown property of ListBox? I dont see it!
Andrewpeter
22-Sep-12 1:57am
View
Only edit hours and seconds? Not edit miliseconds?
Andrewpeter
22-Sep-12 1:50am
View
Thank you very much. I voted 5 for your answer.
Andrewpeter
21-Sep-12 12:25pm
View
You change it in ForeColor property.
Andrewpeter
21-Sep-12 11:54am
View
Very good, vote 5.
Andrewpeter
21-Sep-12 11:52am
View
You should search it, when you understand the usage of it you will solve yourself. Thanks.
Andrewpeter
21-Sep-12 11:48am
View
I vote 5 for you, it's great solution.
Andrewpeter
21-Sep-12 11:45am
View
Thanks you, Marcus.
Andrewpeter
21-Sep-12 11:43am
View
Oh, i dont understand why i can have "Improve solution" with every post?
Andrewpeter
21-Sep-12 5:24am
View
Oh, sorry you, Jochen. I think you are topic author, now i see topic author is Sharath2790. Sorry you. Thanks you for your agreeing with me.
Andrewpeter
21-Sep-12 5:21am
View
You use CreateGraphics() method to create "drawing paper", after that you use DrawLine() of graphics library to draw line on it. Good luck!
Andrewpeter
21-Sep-12 5:13am
View
Thanks you, if so, you accept my answer as your solution (green button) and vote for me, thanks.
Andrewpeter
21-Sep-12 5:05am
View
Oh, it's happen when you run your app in debug mode? When you buit the messages didnt display? They are not errors!
Andrewpeter
21-Sep-12 4:59am
View
You search with words "how to use scanf in C++". Good luck!
Andrewpeter
21-Sep-12 4:57am
View
Where did you see them in your IDE?
Andrewpeter
21-Sep-12 4:54am
View
Did you code that dll yourself? Or someone coded it?
Andrewpeter
21-Sep-12 4:47am
View
Thank you very much, all those errors depend on mscorlib.dll, if i dont use it i cant fix those errors (44 errors). I think my problem is not important, i will do it next time. Thank you very much for your ideas.
Andrewpeter
21-Sep-12 4:39am
View
See my answer below!
Andrewpeter
21-Sep-12 4:22am
View
You try to change cin.ignore() into fflush() or sync()?
Andrewpeter
21-Sep-12 4:08am
View
Thank you. I have found that error. At block:
float[] dashValues = { 5, 2, 5 };
Pen penLuoi = new Pen(Color.Olive, 1);
penLuoi.DashPattern = dashValues;
I removed dashValues and instead it to:
Pen penLuoi = new Pen(Color.Olive, 1.0F);
penLuoi.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot;
It's very good. I solved.
Andrewpeter
21-Sep-12 3:57am
View
Thank you, but if i remove that clause it'll generate other errors, this is not a method to solve my problem, you try!
Andrewpeter
20-Sep-12 23:33pm
View
When I see the end of that message:
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitdebugging="true">
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Where do i have to put
<configuration>
<system.windows.forms jitdebugging="true">
in my code?
Thanks.
Andrewpeter
20-Sep-12 23:28pm
View
Thank you very much, my code is so long, with message above I dont know error location in my code (what code line?...), can you show me the code line number which is error? Thanks.
Andrewpeter
19-Sep-12 21:15pm
View
Very good, vote 5.
Andrewpeter
18-Sep-12 22:02pm
View
It is my need! Thank you very much. Vote 5 for you.
Andrewpeter
18-Sep-12 22:01pm
View
Thanks SA, your idea is useful for me.
Andrewpeter
18-Sep-12 11:14am
View
My vote is 5 for your answer and accept it is a solution!
Andrewpeter
18-Sep-12 11:07am
View
Yes, i think so.
Andrewpeter
18-Sep-12 11:02am
View
Yes, that is all i wanted. Thank you very much.
Andrewpeter
18-Sep-12 11:00am
View
Thanks Wes, i am going to test it.
Andrewpeter
17-Sep-12 22:40pm
View
Thanks you, SA. I'm going to study more about it. Can you comment with my topic: http://www.codeproject.com/Questions/460541/How-to-create-shortcut-using-WIN32API-in-Csharp. Thanks.
Andrewpeter
17-Sep-12 11:41am
View
Thank you, I'll use it, my vote is 5 for your answer, thanks.
Andrewpeter
17-Sep-12 10:45am
View
Oh, I used it, but not work!
My code:
[DllImport("abc.dll")]
private static extern long CreateLink(IntPtr lpszPathObj, string lpszPathLink, IntPtr lpszDesc);
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
String str1 = "C:\\abc.exe";
String str2 = "abccvc";
IntPtr pstr1 = (IntPtr)Marshal.StringToHGlobalAnsi(str1);
IntPtr pstr2 = (IntPtr)Marshal.StringToHGlobalAnsi(str2);
long h = CreateLink(pstr1, Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\abc.lnk", pstr2);
}
Please help me. Thanks.
Andrewpeter
17-Sep-12 10:38am
View
How will i call that function (in button1_Click() above). Thanks.
Andrewpeter
17-Sep-12 9:48am
View
What I do have to do now? Thanks.
Andrewpeter
17-Sep-12 9:46am
View
I have used string, but it didnt display exactly, this is dll code:
HRESULT _stdcall CreateLink(LPCWSTR lpszPathObj, LPCSTR lpszPathLink, LPCWSTR lpszDesc)
{
HRESULT hres;
IShellLink* psl;
// Get a pointer to the IShellLink interface. It is assumed that CoInitialize
// has already been called.
hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (LPVOID*)&psl);
if (SUCCEEDED(hres))
{
IPersistFile* ppf;
// Set the path to the shortcut target and add the description.
psl->SetPath(lpszPathObj);
psl->SetDescription(lpszDesc);
// Query IShellLink for the IPersistFile interface, used for saving the
// shortcut in persistent storage.
hres = psl->QueryInterface(IID_IPersistFile, (LPVOID*)&ppf);
if (SUCCEEDED(hres))
{
WCHAR wsz[MAX_PATH];
// Ensure that the string is Unicode.
MultiByteToWideChar(CP_ACP, 0, lpszPathLink, -1, wsz, MAX_PATH);
// Add code here to check return value from MultiByteWideChar
// for success.
// Save the link by calling IPersistFile::Save.
hres = ppf->Save(wsz, TRUE);
ppf->Release();
}
psl->Release();
}
return hres;
}
This function is used to create a shortcut file, I compiled it to dll successfully, I called it in C# as follows:
[DllImport("abc.dll")]
private static extern long CreateLink(string lpszPathObj, string lpszPathLink, string lpszDesc);
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
long h=CreateLink("C:\\abc.exe",Environment.GetFolderPath(Environment.SpecialFolder.Desktop)+"\\abc.lnk","asdada");
}
When I press button, a shortcut file display on Desktop, but it doent path to abc.exe; when I show the Properties of this shortcut file I receive at Target field: C:\Users\Peter\Desktop\㩃呜䅒啃䑕乁攮數; it contains Chinese string, why? Hope you help me. Thanks.
Andrewpeter
11-Sep-12 23:22pm
View
No, the abc() function is in "xy.dll" which is built by C++ language, I want to call that function from C#.
Andrewpeter
9-Sep-12 21:09pm
View
Thanks you, I have understood my problem when you share your idea, it is very useful for me, your answer is a solution of my problem. Thanks.
Andrewpeter
9-Sep-12 21:06pm
View
Thanks for your idea, it is Windows Form app, I am very very worry about reversing my code. My code is not valuable with everyone, but i want to protect it, i think you should give a method to do this, should not comment on value of my code, it is not important. Thanks.
Andrewpeter
9-Sep-12 12:08pm
View
Use LinkedLabel? When I code LinkClick() event of LinkLabel:
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("mailto:hsacb@yahoo.com");
}
When I run and click to LinkLabel then google mail displays to reqiure log-in google account. You try to know it? Not send email. Another idea? Thanks.
(I want to send email with a subject and a body to me, not log-in any user account).
Andrewpeter
7-Sep-12 1:00am
View
It's very very cool also, i knew that when I used Visual Studio to code. But I want to have an external application which can be done this, and Kuthuparakkal's idea is useful for me. Thank you very much for your idea. Hope you help me in another problems. My vote for your answer is modest - 5. Thank you again. Have fun!
Andrewpeter
7-Sep-12 0:53am
View
Accepted! Thanks you.
Andrewpeter
6-Sep-12 23:03pm
View
Thanks you. I like it. My vote is 5 for your idea.
Andrewpeter
6-Sep-12 23:01pm
View
Thank you very much, that's right. I want to protect my code, perhaps obfuscation is the best method to do this. I'm going to find it.
Andrewpeter
1-Sep-12 11:50am
View
It is great idea which I need, thanks. My vote is 5.
Andrewpeter
1-Sep-12 11:49am
View
Thank you, I want to create a custom Title bar control, your idea is useful for me. My vote is 5 for your answer.
Andrewpeter
30-Aug-12 4:20am
View
My vote is 5. Thanks.
Andrewpeter
30-Aug-12 4:19am
View
Thank you, it is great code. I have found out another solution:
private void DrawFunction(System.Drawing.Printing.PrintPageEventArgs e)
{
// Draw shapes etc...
}
"e" parameter is got from Paint event of the control. Thank you very much.
Andrewpeter
25-Aug-12 13:19pm
View
My vote is 5. Thank you very much.
Andrewpeter
25-Aug-12 13:15pm
View
My vote for your answer is 5.
Andrewpeter
25-Aug-12 13:14pm
View
OK, thank you, it is great idea which I need.
Andrewpeter
25-Aug-12 13:11pm
View
I don't get expected result when I do as your way, I want to use Label to instead TextBox, but Right-Aligned is not to work with Label control, and it works with TextBox control, I need Right align. Another your way to help me do this? Thanks.
Andrewpeter
25-Aug-12 12:30pm
View
Oh, I find error:
public string BsungX
{
get
{
return BsungX; // This error: tmpBsungX, not BsungX
}
set
{
tmpBsungX = value;
txtBsungX.Text = tmpBsungX;
Invalidate();
}
}
Thanks SA.
Andrewpeter
25-Aug-12 5:13am
View
Thank you very much for your advice, i put
if (!DesignMode) {
}
into my usercontrol methods, but VS still crashes. I very very confuse about this. I used to use Visual Basic 6.0 to work my projects, but now I use VS2008 (VC#) to do this, I only begin learning C#, if you can you help me re-write this code. I hope I will be learnt more C# language from you. Thanks.
Andrewpeter
24-Aug-12 2:37am
View
When text width is larger than Label width then superfluous text doesn't display, you can try this! Another solution? Thanks.
Andrewpeter
24-Aug-12 2:13am
View
Thank you very much for your answer, if I change AutoSize property into false then the Label is multi-lines, but i want it is not multi-lines. How to do this? Thanks.
Andrewpeter
24-Aug-12 1:11am
View
Ok, thank you, I accept it, but I forget to press that button,... Done! Thanks.
Andrewpeter
20-Aug-12 9:11am
View
Thank you very much, your advice is very useful for me. I will do this, have fun!
Andrewpeter
20-Aug-12 0:29am
View
Thanks SA, in your opinion what control I should use to draw graphics on? Panel control?
Andrewpeter
19-Aug-12 9:55am
View
Thanks you. It's my need. My vote is 5 for your answer.
Andrewpeter
18-Aug-12 0:40am
View
Thanks SA, I have read it but I have not understood more about "delegate", this is a small example that I practise "delegate", so please help me understand it clearly.
Andrewpeter
29-May-12 10:52am
View
Thanks, but I dont find it.
Andrewpeter
2-Feb-12 3:50am
View
Thanks. It's very good. I resolved. Vote 5.
Andrewpeter
2-Feb-12 3:48am
View
Thanks, Vote 5.
Andrewpeter
9-Jan-12 21:14pm
View
Hi SAKryukov, I use Win7 and VC++6.0 to code. What the way to do this? Thanks.
Andrewpeter
9-Jan-12 21:14pm
View
Deleted
Hi SAKryukov, I use Win7 and VC++6.0 to code. What the way to do this? Thanks.
Andrewpeter
10-Sep-11 6:46am
View
Hi DaveAuld, thank you for your comment. But you dont tell me why I still use VB6, nowadays VB6 is not used much to create app, but with small app then VB6 is useful, Im doing my project with this language, in my opinion, you should help me do this problem above, thank you, hope you help me continue.
Andrewpeter
20-Aug-11 22:04pm
View
Thanks, my 5 for your post.
Andrewpeter
20-Aug-11 22:04pm
View
My 5. Thanks.
Andrewpeter
18-Aug-11 0:31am
View
Thanks, voted.
Andrewpeter
17-Aug-11 21:24pm
View
Thanks. My vote is 5.
Andrewpeter
17-Aug-11 2:31am
View
Thank enhzflep, I was resolved. My 5.
Andrewpeter
28-Jul-11 23:48pm
View
Thank Christian Graus, I know that VB6 is very old in these days, but Im developing my project in VB6 language, thank you for your advice. Ahm, I need a component to do this, if you have source code then it's very good with me. Hope you help me. Thanks.
Andrewpeter
28-Jul-11 23:36pm
View
Deleted
Thank Christian Graus, I know that VB6 is very old in these days, but Im developing my project in VB6 language, thank you for your advise. Ahm, I need a component to do this, if you have source code then it's very good with me. Hope you help me. Thanks.
Andrewpeter
15-Jul-11 12:11pm
View
Yes, thanks.
Andrewpeter
15-Jul-11 5:11am
View
Hi Prerak, thank you for your link, but it's difficult with me to do my problem, can you help me use that class to zoom (in and out) picture?
Andrewpeter
15-Jul-11 4:56am
View
Thank SA, I processed it. My 5.
Andrewpeter
2-May-11 10:22am
View
Thank you for your sharing!
Andrewpeter
2-May-11 10:22am
View
Thank you for your sharing!
Andrewpeter
1-Apr-11 4:04am
View
I've found it, thanks.
Andrewpeter
19-Mar-11 2:15am
View
I want to write a program to plot grapher of functions, but I havent the code demo about this problem, please help me. Thanks.
Andrewpeter
17-Feb-11 5:26am
View
Thanks. Vote 5.
Andrewpeter
17-Feb-11 5:26am
View
VB6 not use that code. However I thank you for your code.
Andrewpeter
16-Feb-11 5:57am
View
Thank you for your reply, I use MSWord 2003 so not have that function, I'll copy it to Excel to do this as your support, my vote to your answer is 5. Hope others help me more!
Andrewpeter
12-Feb-11 2:52am
View
I need app and plugin in VB6, however thank for your sharing, I'll convert it to VB6.
Andrewpeter
12-Feb-11 2:50am
View
Thanks, this is my need, vote 5.
Andrewpeter
7-Feb-11 9:41am
View
I use Resource Hacker and see it's a resource of cmd.exe. Thanks.
Show More