15,891,943 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 mehdi_k (Top 93 by date)
mehdi_k
7-Mar-15 10:35am
View
So how can I find my fix IP address?(if I have one), because I need it to cennect my devices.
mehdi_k
7-Mar-15 5:56am
View
I can open websites on my phone so it is connected. And as I told in my question, I get my ip from whatismyip.com
mehdi_k
7-Mar-15 3:30am
View
I am sure that my phone is connected to the internet, shouldn't it respond when you ping the IP? is there any chance the IP is wrong or something?
mehdi_k
6-Mar-15 15:47pm
View
thanks for you suggestion, one other thing is that I though pinging the device IP in cmd gives me respond, but when I ping the IP it's just timeout!!
Edit: I don't thing there is any firewall on my phone.
mehdi_k
8-Jun-14 3:31am
View
I think the link is dead.
yes I have tried to use MEMORY_BASIC_INFORMATION64, but the VirtualQueryEx only accepts MEMORY_BASIC_INFORMATION !
update
Your link is ok
mehdi_k
8-Jun-14 3:27am
View
I haven't tested it myself, but on the web, it seems to work.
mehdi_k
31-May-13 16:57pm
View
Thanks for your help, but when an app runs it allocates a memory space to itself, let say from address 0x0000100 to 0x0001000 (if I'm true), so if I could get the starting and ending address of an app I may find the value I want, and then change it.
is there a way to do this and I'm I thinking right?
mehdi_k
15-Apr-13 2:54am
View
EPOS2 should return 2 bytes witch are 97 or 'O', that it returns it, but after that it should return another bytes sp->ReadByte()<<"third\n"; that it doesn't and stucks. the command I found in an example.
mehdi_k
14-Nov-12 16:22pm
View
Yes I know that, and I have tried.
Did you see :
http://www.codeproject.com/Questions/458442/taking-screenshots-from-game-environment-using-Dir
didn't work!!!
mehdi_k
13-Nov-12 8:08am
View
if you want to know the goal:
a few ago I tried to get the image of a game, but I couldn't do that with print screen, so I tried to use directx in a c# app, but I needed to get image of back buffer in order to get the image of the game that was playing because the front buffer has the desktop image. in nobody knows reason :
http://www.codeproject.com/Questions/458442/taking-screenshots-from-game-environment-using-Dir
I couldn't do that too.
so I thought maybe in this way I'd be able to do that witch so far...
mehdi_k
12-Nov-12 5:26am
View
Yeah I thought so, but the data that comes through the port is already processed by Graphic card and it's driver so no need to write a driver(witch is VERY FAR over my head!). so the thing is how to communicate to port and get the data(that has been already processed), and the next thing is to translate the data to what you want(for example an image).
Anyway, Thanks for your time.
mehdi_k
11-Nov-12 15:27pm
View
Thnaks.
mehdi_k
11-Nov-12 15:24pm
View
That is exactly what I'm trying to do, I want to get data from the port that I plug my monitor into, see if my monitor gets it and shows me as images I want to get them directly from the port in my for example c# app.
Please help.
mehdi_k
11-Nov-12 9:32am
View
a normal graphic port uses a serial port, so is it the same way we use for other serial ports? would you explain more and give a code sample. Thanks.
mehdi_k
2-Nov-12 12:33pm
View
Yes, Now that's something..
Thank you for your time. (and I know how to accept the answer :) )
mehdi_k
1-Nov-12 13:47pm
View
Well sorry to say this, but I don't understand it at all!!
mehdi_k
1-Nov-12 4:25am
View
Maybe I misunderstood you or maybe you did,
I've searched before to find an array that has no bound in c++ (Like int[,] t in c#) and I came up with dynamic arrays as above.
I have updated my question.
mehdi_k
1-Nov-12 4:01am
View
look, the code above is not the real code I'm developing, it's just a sample.
the problem is I don't know the length of the 2D array.
mehdi_k
29-Oct-12 4:13am
View
thank you mbue, I come up with same thing.
mehdi_k
28-Oct-12 8:43am
View
Thanks for the try.
mehdi_k
27-Oct-12 16:49pm
View
I've updated my question.
mehdi_k
27-Oct-12 16:49pm
View
I've updated my question.
mehdi_k
27-Oct-12 6:06am
View
when I step into, it goes to disassembly file!
I don't understand it.
mehdi_k
27-Oct-12 4:58am
View
makeResult() just creates a universal 2D pointer array named Result.
mehdi_k
27-Oct-12 4:56am
View
THAT is the problem, I can not debug it because when I use put breakpoint in anywhere in my code it just skips and ends the program!!!!
mehdi_k
20-Sep-12 8:20am
View
thanks, but no change.
mehdi_k
20-Sep-12 5:37am
View
osolan bayad ba in code beshe!
nemifahmam cheshe.
mehdi_k
14-Sep-12 3:48am
View
thanks, but that article is about front buffer that is not my problem, the front buffer take screenshots like print screen, but I want to take screenshots from games.
mehdi_k
13-Sep-12 5:57am
View
thank you for this good answer.
mehdi_k
12-Sep-12 16:20pm
View
Thank you two for the response.
mehdi_k
12-Sep-12 6:24am
View
thank you for the answer, I'll try to read more about multithreading and locks, the reason I didn't use any lock was that I thought pthread_join forces a thread to finish up completely then the other one starts. do you think that this problem happens because I'm using 2 core CPU? because in this case both threads start processing at the same time.
mehdi_k
7-Jun-12 6:33am
View
Yes, I'll post the codes by a few hours.
mehdi_k
7-Jun-12 4:43am
View
Alan, sorry if my info is not enough, but that is the problem I have here, the only thing I know is that it has the error saying it can not execute and find function.
mehdi_k
13-Mar-12 12:09pm
View
nice website, Thanks.
mehdi_k
11-Feb-12 8:57am
View
yes, that would be a slow motion thing :)
mehdi_k
9-Feb-12 6:01am
View
that is exactly my problem. when I try to save them directly to hard disk cpu goes over 90% and when I try to save them in a array , memory usage goes extremely high. it's like I'm moving around a circle. :(
mehdi_k
7-Feb-12 12:43pm
View
Thanks. may you say which object and how to dispose it? my 3rd code has problem with memory, can you make an example with it?
mehdi_k
6-Feb-12 4:20am
View
I've updated the question , please check it out. that's new problem with new code.
mehdi_k
6-Feb-12 2:14am
View
for a video I need lower than 50 frames each second or it becomes slow motion. am I right?
mehdi_k
5-Feb-12 15:46pm
View
I have updated the question with a new code that does not use clipboard, but the same.
mehdi_k
5-Feb-12 15:42pm
View
Deleted
yes I did. but just the images size differs not the cpu usage :(
mehdi_k
5-Feb-12 15:41pm
View
yes, bmp gpeg and ...
I want to lower the cpu usage but when I change the format no change in cpu happens. just file size changes. :(
mehdi_k
5-Feb-12 15:36pm
View
Thank you for answer but no change with changing the formats.
mehdi_k
5-Feb-12 15:12pm
View
Thanks
question updated
mehdi_k
4-Feb-12 15:33pm
View
it's good but nothing about CPU usage. maybe I need to make a post to find out how to optimize the code.
Thanks
mehdi_k
4-Feb-12 15:30pm
View
Thanks for trying
mehdi_k
4-Feb-12 5:55am
View
intel dual core 2200
mehdi_k
4-Feb-12 5:21am
View
I even set timer interval to 100, still over 80-90% cpu usage with this code :
private int num;
private void timer1_Tick(object sender, EventArgs e)
{
SendKeys.Send("{PRTSC}");
Image i = Clipboard.GetImage();
i.Save("pics\\" + num, System.Drawing.Imaging.ImageFormat.Png);
num++;
}
mehdi_k
3-Feb-12 16:52pm
View
with this, my grade goes below 0 :)
mehdi_k
3-Feb-12 16:52pm
View
I've tried to save them directly to the hard. memory is ok but cpu goes over 70-80%.
mehdi_k
3-Feb-12 16:32pm
View
I'm just trying to gather these images to make an .avi like an app that records a video from desktop. It's a school training, but important to me to make it work perfectly.
mehdi_k
3-Feb-12 16:07pm
View
I used image as I am trying to copy images from clipboard. like this : private List<Image> i = new List<Image>();
mehdi_k
3-Feb-12 15:40pm
View
Thanks , it work great.
but when I run it, it uses lots of cpu(about 50%), and my RAM(memory) gets full after 1 or 2 min. is there a way to fix this? I mean this app gets useless with this situation.
mehdi_k
30-Nov-11 11:04am
View
Yes I am, your results are no match with mine!! in any case compressed file has the same size!, I'm just stuck. :(
mehdi_k
30-Nov-11 7:19am
View
I used 1024 and and even more but again it makes the file larger. I try to save the compressed file as the same extension with the source file (eg : Flv to flv or txt to txt), does the compressed file have to save with especial extension?
I dont know waht's the problem.
mehdi_k
29-Nov-11 13:23pm
View
I'v used a 128 byte array , but it makes it larger like past!!
Please help me about it.
mehdi_k
6-Nov-11 5:11am
View
The index goes out of range. but I will try more to make it right
Thanks for your help.
mehdi_k
5-Nov-11 14:38pm
View
it worked, thanks
but after I find my item in the list can I select it with key up or down? Is it possible without mouse?
mehdi_k
4-Nov-11 4:32am
View
It wont work again, I think it's a 16 bit program, and it will not work even on 32 bit, what should I do, Skipping assembly and work with c# maybe :D
mehdi_k
3-Nov-11 13:13pm
View
It work in emulator but I want it to run after I compile it to exe, how can I do that?
mehdi_k
24-Oct-11 16:51pm
View
yes, I tried google and I found some names (Like : Acme or Bad Brains) at wikipedia but they don't seem to be true names, Not fake but I think viruses has different name from the name when they are running and working as a process.
mehdi_k
24-Oct-11 16:15pm
View
May you suggest some database or site of list of virus names?
mehdi_k
24-Oct-11 8:48am
View
It makes sense. Thank you both
mehdi_k
23-Oct-11 14:00pm
View
For example I've (just) heard that processes that are called unknown have name but no factory name. I just want to know if such thinks are true? can we detect them in such way?
mehdi_k
23-Oct-11 13:44pm
View
Thanks for answer. But I don't want to create a complete antivirus but a little software that organize the process on a machine. I thought there might be some feature that a unknown process has, that can help me to detect (some of) them.
mehdi_k
25-Aug-11 9:11am
View
I have set KeyPriview = true as you said. but still doesn't work.
mehdi_k
25-Aug-11 6:10am
View
Doesn't even raise the event again.
mehdi_k
26-Jul-11 9:22am
View
thanks for your answer.
this code works fine : this.Invoke((MethodInvoker)delegate { list.Items.Add(f); });
but is there any basic tutorial for "invoke"?
mehdi_k
13-Jul-11 5:37am
View
a way to verify a special part in a video, for example : verifying red cars in video clip.
thanks.
mehdi_k
12-Jul-11 3:00am
View
I need it's event , should I use the video player event, if I should, How?
mehdi_k
11-Jun-11 5:03am
View
thanks , but it is not my point, I'v Improved my question.
mehdi_k
8-Jun-11 11:38am
View
thanks , but it is not my point, I'v Improved my question.
mehdi_k
13-May-11 4:15am
View
Yes I'v Win7 on my PC and I want to start for one user, but my app has problem even in win xp!! and I still don't know what to do!
Please help me about this.
mehdi_k
11-May-11 7:26am
View
Thanks,
I think this is because of permission but how can I get the permission?
mehdi_k
4-May-11 14:02pm
View
May you give a code for what you said? thanks
mehdi_k
6-Apr-11 7:02am
View
It works , thanks
do you know how can I execute more than 1 command in CMD?
for example :
first it change it's direction with "cd d:\"
and then some another commands.
mehdi_k
5-Apr-11 16:11pm
View
thank's but my exact problem is how to execute a command in cmd by using c#, system info was an example.
mehdi_k
31-Mar-11 15:39pm
View
thanks brother.
mehdi_k
28-Feb-11 1:33am
View
my problem is how it should change!
when my app is exe i can't change it's code!!
mehdi_k
27-Feb-11 9:32am
View
can you give a sample code?
mehdi_k
26-Feb-11 6:36am
View
Thank you for your time.
it's working now, i've changed it to varchar(MAX).
mehdi_k
26-Feb-11 6:27am
View
I'm sorry to say but new problem : "The data types text and varchar are incompatible in the equal to operator."
mehdi_k
26-Feb-11 6:14am
View
Even with this code the problem message is "Invalid column name".
please help!
mehdi_k
22-Feb-11 4:34am
View
thank's , but do you have any book name as suggestion for microprocessor programming?
mehdi_k
16-Feb-11 4:22am
View
Thank you.
But may you explain how can I install .net framework with my application installation please?
My exact concern is that when a user have installed the application , without any extra installation it work perfectly.
mehdi_k
15-Feb-11 6:24am
View
Is the packing the assemblies that the project wants and put it in it's files possible?
mehdi_k
25-Jan-11 11:24am
View
I meant the free compilers of assembly witch can perfectly work on windows 7.
mehdi_k
25-Jan-11 11:22am
View
if you can't understand my question, there is no force on you to answer.
mehdi_k
17-Dec-10 13:22pm
View
thank u, it was good, i have solved it by choosing release for configuration.
thank u again!
mehdi_k
17-Dec-10 2:45am
View
thanks, it was helpful, the "BadImageFormatException was unhandled" was solved, but new problem name :"LoaderLock was detected"!!
i don't know what's wrong!
mehdi_k
16-Dec-10 14:50pm
View
It doesn't work again!
the problem is "BadImageFormatException was unhandled".
i think it has problem with directX skd. i have installed it in default path.
what should i do?
mehdi_k
15-Dec-10 4:10am
View
Is there any sample or tutorial for Windows API Code Pack?
mehdi_k
8-Dec-10 7:57am
View
Thanks,but it's for .wav files , i want to play any sound file.
can u guide me?
Show More