15,898,134 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 saad_lah (Top 109 by date)
saad_lah
4-Nov-15 13:15pm
View
yeah, but its pretty old question...so, i really dont know what i did
saad_lah
30-Oct-15 2:42am
View
you can use EmguCV, Aforge.FFMPEG, VLC bindings to read frames as bitmap and show or process them, this will help http://www.emgu.com/wiki/index.php/Video_Files
saad_lah
30-Oct-15 2:37am
View
please provide some code
saad_lah
19-Oct-15 1:20am
View
that was pretty old and silly question.
well, yes. using float we can shift it left or right. similarly you can use left margin with percent.
saad_lah
16-Oct-15 6:29am
View
^means ? question ?
saad_lah
24-Feb-15 19:08pm
View
Its encoding problem...You have to detect the encoding of the language and then use that encoding parameter in StreamReader to get correct result.
saad_lah
24-Feb-15 17:33pm
View
Could you please provide some details? a patch of code?
saad_lah
25-Dec-13 6:09am
View
yea...but how can I check which button is clicked in javascript? and is that a download link or not and how to stop browser download.
saad_lah
13-Nov-13 2:54am
View
nah! just a co-incidence while checking questions :P
saad_lah
13-Nov-13 2:53am
View
change the checkbox with your program checkbox :P
saad_lah
13-Nov-13 2:12am
View
you are the same who posted over stackoverflow :D
saad_lah
30-Sep-13 15:40pm
View
http://jsfiddle.net/jwvha/1/
here is another solution!
saad_lah
30-Sep-13 15:40pm
View
thanx! :)
saad_lah
23-Sep-13 10:41am
View
done :)
saad_lah
23-Sep-13 10:18am
View
yea....but some time, absolute position is necessary, that is why I was asking, but I have solved the problem
saad_lah
23-Sep-13 10:12am
View
thanks for the reply, but I have found another way(I just wanted the starter idea) :)
saad_lah
21-Sep-13 14:03pm
View
ok thanx :)
got some idea
saad_lah
21-Sep-13 13:47pm
View
http://www.webresourcesdepot.com/category/goodies/wysiwyg-html-edit/
I have found this, but I have to buy them to check the code....isn't there any starter advice you can give me...any idea or concept how can I start?
saad_lah
21-Sep-13 13:26pm
View
how? Any help?
saad_lah
21-Sep-13 13:25pm
View
hehehe....
tell me should I update the question with "how can I do this" or you are telling me?
saad_lah
16-Sep-13 12:28pm
View
yes, of course!
saad_lah
16-Sep-13 10:52am
View
thanx for the response, but networking is enabled and I can access the database through visual studio (localhost) from my ASP.NET Web application...
but I am a noob with node.js :(
saad_lah
10-Sep-13 12:36pm
View
I will try and reply asap :)
saad_lah
10-Sep-13 12:06pm
View
you haven't explained the question well!
saad_lah
7-Sep-13 8:52am
View
yup, every person will be assigned a unique User_ID like in college or uni. RollNo is the identifier or unique id you can use seed or increment, takey automatically user_id increase hoti jaye....suppose 2000, next insertion mein 2001,2002 and so on,
saad_lah
7-Sep-13 2:30am
View
Make another table like test_creators
create table test
(
--user_id i.e teacher user_id
--course name
--test date
--add more thing if you want
)
ab jo bhi teacher koi new test bnaye ga...just add the teacher user_id and test date, test subject name in it....is se kitney tests create huwey hein aur kis teacher ne kiye hein
saad_lah
7-Sep-13 0:26am
View
plz clarify your question
saad_lah
23-Aug-13 10:44am
View
But it is working.
saad_lah
23-Aug-13 1:35am
View
if you are using database,
then you can make a datalist, through which you can send or recieve data
saad_lah
22-Aug-13 4:51am
View
:)
saad_lah
20-Aug-13 11:27am
View
Well, thanks for your reply, I will try after successful login :)
BTW, could you please tell me the best software for ruby or node.js if you want to
http://www.codeproject.com/Questions/640208/best-application-for-making-web-application-with-R
saad_lah
20-Aug-13 11:25am
View
Any Windows working best software for ruby or node.js or either one of them?
saad_lah
20-Aug-13 10:50am
View
I tried both useradd and adduser with usermod and set the home dir,groups,audio,video setup, but nothing happened, it only creates the user with no home dir. I am leaving the topic here and giving you 5 votes because you helped me :)
P.S: I am just trying to learning about backtrack, there is no cruel intentions behind it. :)
saad_lah
20-Aug-13 10:31am
View
I created a new account and set its group, but there is no home directory i.e where the stuff like bash, shells, backtrack files etc, are present, and it shows me the screen I mentioned in the above link,
Any idea, how can I move root contents with an error "access denied" to new created account Uni ?
P.S: I dont think there is any problem with sudo bash
saad_lah
19-Aug-13 3:07am
View
Thanx for replying,
but as i mentioned above I entered root/toor as username and password, but it doesn't work after update :(
saad_lah
10-Aug-13 2:19am
View
Thanks...I will implement it and then reply :)
saad_lah
4-Aug-13 4:37am
View
not working :(
saad_lah
26-Jul-13 11:14am
View
where is CommandName supposed to be??
Like the DetailsView object(People) then DetailsView.Commandname??
saad_lah
26-Jul-13 9:37am
View
Thank you! :)
saad_lah
26-Jul-13 9:29am
View
Hurrah! You are great :)
Add this to solution!
saad_lah
26-Jul-13 9:21am
View
<asp:SqlDataSource ID="User_Work_Edu" runat="server" ConnectionString="Data Source=FASTIAN-PC;Initial Catalog=Loginfm_data;Integrated Security=True" ProviderName="System.Data.SqlClient" SelectCommand="SELECT DISTINCT Employee, School, Start_Year_School, End_Year_School, College, Start_Year_College, End_Year_College, University, Start_Year_University, End_Year_University FROM User_Work_Edu WHERE (IDNo = @IDNo)" UpdateCommand="UPDATE User_Work_Edu SET Employee = @Employee, School = @School, Start_Year_School = @Start_Year_School, End_Year_School = @End_Year_School, College = @College, Start_Year_College = @Start_Year_College, End_Year_College = @End_Year_College, University = @University, Start_Year_University = @Start_Year_University, End_Year_University = @End_Year_University WHERE (IDNo = @IDNo)">
<updateparameters>
<asp:Parameter Name="Employee" />
<asp:Parameter Name="School" />
<asp:Parameter Name="Start_Year_School" />
<asp:Parameter Name="End_Year_School" />
<asp:Parameter Name="College" />
<asp:Parameter Name="Start_Year_College" />
<asp:Parameter Name="End_Year_College" />
<asp:Parameter Name="University" />
<asp:Parameter Name="Start_Year_University" />
<asp:Parameter Name="End_Year_University" />
<asp:Parameter Name="IDNo" />
<SelectParameters>
<asp:QueryStringParameter Name="IDNo" QueryStringField="IDNo" Type="Int32" />
</SelectParameters>
like this?? not working :(
saad_lah
26-Jul-13 9:12am
View
I have updated my answer!
saad_lah
26-Jul-13 9:11am
View
I have updated my answer!
saad_lah
23-Jul-13 14:09pm
View
I am making my semester project of database....i am not very much familiar of web programming( jquerry, javascript) as I haven't studied the course yet....So please tell me how can i use AJAX control toolkit with VS2012, I want to add autocomplete_extender function etc
Any help?
saad_lah
23-Jul-13 13:39pm
View
I have followed the procedure, but nothing happened :(
https://www.dropbox.com/s/yc18b0fqpdsmfvy/pic2.jpg?m
saad_lah
23-Jul-13 13:20pm
View
Thank you! :)
saad_lah
21-Jul-13 12:42pm
View
yes....it works for windows forms application...but how can I convert the memory stream containing image(after reading image from SQL) into image(system.web.ui.image)?
saad_lah
21-Jul-13 10:17am
View
SD.Bitmap bmp = SQL_STUFF.GetImageFromDB(IDNo); //The above function is returning bmp
//Now i want to convert the returned bmp into Image type in to show image in my //website(asp.net)
this.picture = bmp; //some conversion
saad_lah
21-Jul-13 10:10am
View
It is the part of the function, I have used exception handling! and the function is returning bitmap dataType
saad_lah
21-Jul-13 9:56am
View
I know that they are total different classes, but I want to know how can I convert it?
is there any different way? because I am retrieving the image from database(sql) then covert the memory stream into bitmap
if (reader.Read())
{
byte[] picData = reader["Image"] as byte[] ?? null;
if (picData != null)
{
using (MemoryStream ms = new MemoryStream(picData))
{
bmp = new System.Drawing.Bitmap(ms);
return bmp;
}
}
}
here is the part of function...
saad_lah
19-Jul-13 23:20pm
View
asp.net and database?
saad_lah
19-Jul-13 14:01pm
View
Thank You very much! I will try tommorow after DB-Lab! :)
saad_lah
19-Jul-13 13:21pm
View
Yes, I want to populate data and use function through C#(because I know C# alot, but a complete noob with jquerry and javascript), So, How can I call the autocomplete function from C# code?
P.S: I have recently started web Programming in my Database course!
saad_lah
19-Jul-13 12:31pm
View
Can I use this .autocomplete function from C#?
saad_lah
19-Jul-13 12:15pm
View
Thank You very much! :)
saad_lah
12-Jul-13 9:09am
View
Microsoft Directx SDK(June 2010) ? but it is for C++ and Microsoft SDK doesnot contain any sample or C# namespace or dll
saad_lah
10-Jul-13 12:37pm
View
Have you used SQL ?
saad_lah
10-Jul-13 10:59am
View
I had problem with LAN also, but I managed to solve it by adding port 80 in firewall setting. Now i want to setup my apache server over WAN! :(
saad_lah
9-Jul-13 10:11am
View
No, I am trying to access webpage from public IP or WAN ip. Its perfectly running fine with Local ip :(
saad_lah
3-Jul-13 12:57pm
View
got it ! thanx :)
You guys are awesome!
saad_lah
3-Jul-13 12:57pm
View
got it ! thanx :)
You guys are awesome!
saad_lah
3-Jul-13 12:52pm
View
code snippet?
saad_lah
3-Jul-13 12:46pm
View
That is what i want, but with fullpath name like c:\program\test.txt
how can i get the full path with file name which i copied to clipboard?
saad_lah
3-Jul-13 12:46pm
View
That is what i want, but with fullpath name like c:\program\test.txt
how can i get the full path with file name which i copied to clipboard?
saad_lah
3-Jul-13 12:46pm
View
That is what i want, but with fullpath name like c:\program\test.txt
how can i get the full path with file name which i copied to clipboard?
saad_lah
17-Jun-13 14:24pm
View
I tried alot by changing the position but nothing happens, i delete that page and added a new one which solved the problem.
saad_lah
4-Apr-13 15:35pm
View
Yeah, i have got an idea, I will post the code as soon as I write it. :)
saad_lah
4-Apr-13 15:34pm
View
Got an idea, i am trying to make it by myself. :)
saad_lah
4-Apr-13 14:31pm
View
Thanx for sharing your information about quine, but i am still unable to understand how can i write a code which prints itself when i run its .exe without any file handling?
saad_lah
4-Apr-13 14:30pm
View
Yes, a program which doesnot uses a file opening to print itself, but print itself with an .exe only
saad_lah
4-Mar-13 0:05am
View
yea,... and I have done the step here...in a for loop
D3DCOLOR Sprite_Car[ Car_Width * Car_Height ];
Car[u].surface = Sprite_Car ;
saad_lah
2-Feb-13 15:13pm
View
So, my question is, it is a CLR project or Win32 :P
saad_lah
2-Feb-13 15:13pm
View
Look at the step I did,
1-> Made a CLR Win32 Project in Visual Studio 2012
2->Move the file to project directory and include the files "SendMail.h" and "SendMail.cpp"
3-> _gc class SendMail // _gc is giving syntax error
{
......
}
And stdafx is now working fine as it includes just standard libraries.
saad_lah
2-Feb-13 14:46pm
View
:( I tried a lot but it is not not including "stdAfx.h" lib in visual studio
saad_lah
2-Feb-13 14:03pm
View
thnx .... done
saad_lah
2-Feb-13 14:02pm
View
Thnx :)
saad_lah
25-Jan-13 2:30am
View
@merano:: No, the struct BitmapInfoHeader and BitmapFileHeader is working fine..the porblem is with surface[...] which doesnot stores large number of pixels in it :(
saad_lah
24-Jan-13 14:55pm
View
Load or you can to initialize data(pixels) in surface[car_width*car_height].
but the limit exceeds as the size(car_width*car_height) or resolution of image increase and I am unable to store pixel data in surface, So I tried to store image in patches of N_TIMES(6) in array of Sprite Car. Everything works fine when i try to display image individually, but when i try to make it general just like above, it keeps on print or displaying same patch of image again and again :(
saad_lah
18-Jan-13 15:00pm
View
:/ okay
saad_lah
18-Jan-13 14:20pm
View
I google and find that it _getch() or kbhit() doesnot work in directx c++,
saad_lah
5-Jan-13 9:44am
View
Well thanks for the link, I am now beginning to work on win32.
saad_lah
5-Jan-13 9:42am
View
Umm....I am a beginner C++ student of 2nd Semester. I am trying to make chess game and have no experience about win32 programming.
saad_lah
5-Jan-13 9:24am
View
Sorry for the late reply, there is some mess going on with my internet connection.
No, there is no documentation given, but i managed to use PD_Curses. But the problem is with Pthread.
Actually,I am trying to multitask in console. How can I do this?
For example
I want to run a timer on the top-right of the screen and at the same time to take input and some other animations or things on console.
I have seen the program(Link given below), to do this I need third party lib pthread.h
How can I use that library with VS2012 or could you please suggest me some other library or useful link? to multitask(for beginners)
http://www.tutorialspoint.com/cplusplus/cpp_multithreading.htm
saad_lah
5-Jan-13 8:36am
View
yes i am talking about 3rd party library PD_Curses or pThread. I want to know how can i makefile or somewhat like that from cmd?
saad_lah
13-Dec-12 14:00pm
View
Problem solved by making a new project and compiling code, it was some debbugger bug. Well thanks for helping :)
saad_lah
13-Dec-12 13:03pm
View
@Pascal :: yup i changed the temp size from 70 to 100 considering my needs in the program
saad_lah
13-Dec-12 12:59pm
View
Sorry for the late reply,
Line_Address("student.txt",0,0) the func. fails, in order to make the func. efficient i used a check of Line and Delimer to be '1' otherwise func. gives error. and in student.txt first line is '\n' and the student data starts from 2nd line with '$' as first character....actual student.txt is given below
/////////////student.txt////////////
$l114443$Talha Jamil$samsung$12$17$2004$UnderGraduate$!
$l114445$Kamran Javed$jannat123$12$12$2009$UnderGraduate$!
$l114093$Imran Khan$pluto123$11$4$2009$UnderGraduate$!
$l114444$Jamil Ahmed$origin123$11$12$2009$UnderGraduate$!
$l114606$Zain Malik$samsung$9$16$2009$Graduate$!
$l114441$Saad Kamran$samsung$11$4$2004$Graduate$!
saad_lah
13-Dec-12 12:22pm
View
@Jochen Arndt:: I never said that your notes was wrong, that was my fault or of debugger which i managed to solve. In fact i would like to thank you for your help :)
saad_lah
13-Dec-12 10:16am
View
temp working fine
saad_lah
13-Dec-12 10:16am
View
I am using visual studio 2010, though the problem was with debugger, now i managed to solve it
saad_lah
13-Dec-12 10:15am
View
No, problem was with visual studio even after cleaning or rebuilding project nothing happened, but after making a new project and compiling the code in it, the program runs fine ... well thnx for the reply
saad_lah
13-Dec-12 9:19am
View
could you plz show it in code
saad_lah
13-Dec-12 8:50am
View
I have tried alot to solve it by various methods like removing temp , changing the name of variables and some others also. but the program again and again gives garbage value which keeps on changing...i dont know what is the thing which is messing with code :(
saad_lah
12-Dec-12 11:49am
View
While Debugging the problem is in
temp=new char[50];
temp[49]='\0';
after these lines parameter "line" acquire some garbage value, something like dynamic memory is erasing parameter "line" value
saad_lah
7-Dec-12 11:02am
View
well thanks, i learned some new functions with strings just like sline.empty() or sline.compare( 0, sSize, stemp ) by your answer :)
saad_lah
7-Dec-12 10:59am
View
No, it doesnot enters in 'if' condition and gives error "Not found"
although i have corrected it by my way
while(!myfile.eof())
{
counter=1;
getline(myfile,sline);
iStudent_num++;
size=sline.length();
if(size>0)
{
while(stemp[counter]==sline[counter])
{
counter++;
if(counter==7)
{
isFound=true;
break;
}
}
}
if(isFound==true)
{
student=fetch_data(sline);
break;
}
}
just by adding line if(size>0)
saad_lah
7-Dec-12 10:52am
View
No, counter starts from 1 to 7, i am neglecting first character 'l' (common in all)
so sline[7] is correct, in case of sline[6] it will stop at l114443 and will not check the others because l11444 == l11444 satisfies
saad_lah
7-Dec-12 10:42am
View
got it..
in student.txt first line is '\n' so, sline gets "" which exceeds from the actual string length
Well, thanks for the help
saad_lah
7-Dec-12 10:33am
View
srry for that, but actual code is too much inter-related with other classes and func. and it is not possible for me to post the complete project...this is another code with same error
saad_lah
5-Dec-12 4:46am
View
I know this is not a programming question, but it is about windows...sorry, if it is not allowed to ask
saad_lah
4-Dec-12 13:58pm
View
Thank you...problem solved by appending file
saad_lah
26-Nov-12 17:04pm
View
This will definitely run,
What i want was something different than this. I am editing data in file "student.txt" which so that i have to copy all data in a char* pointer and then edit the data in pointer and then by ofstream myfile(*****) again puts edited data in file again, the problem i was facing was , how can i find the size of dynamic char* array so that i can put it in char* file_storage; file_storage=new char[count+1];
by (!myfile.eof()) its was not working correctly, but by myfile.good() its accurately giving the length of all characters in file.
saad_lah
26-Nov-12 16:42pm
View
char keystroke;
saad_lah
26-Nov-12 16:31pm
View
Thnx so much, i tested your given code and problem solved
saad_lah
26-Nov-12 16:15pm
View
i want to count all characters like (alphabets, numbers and '$', '!')
saad_lah
19-Nov-12 10:12am
View
@Jochen Arndt :: I got the link and I am now trying to link it with visual studio
saad_lah
19-Nov-12 10:06am
View
Umm... Truly said, these are higher level features. I am beginner and studying C++ in University, but i will use ACE and ATL features in future :)
Thnx for ur help sir
saad_lah
19-Nov-12 9:46am
View
Thnx sir, this has solved the timer problem.
Could u plz tell me how can i add pthread.h lib to visual studio, because i want to do more than one animation in my game. I googled but i failed to find the correct solution.
saad_lah
19-Nov-12 9:08am
View
Very thnx for ur reply sir,
I have read the article, but i need some thing which is easy for me(i am beginner with threading).
I will be very grateful to u if u could send me a code of multithreading.
Show More