15,889,335 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 Kishor-KW (Top 200 by date)
Kishor-KW
11-Jan-18 7:34am
View
okay, thank you :)
Kishor-KW
14-Dec-17 1:59am
View
nothing is there in pre and post script
Kishor-KW
22-Mar-17 2:25am
View
is my question still unclear?
Kishor-KW
21-Mar-17 5:15am
View
ok i updated a question. please let me know is it clear ? Thank you for suggestion.
Kishor-KW
18-Jan-17 7:37am
View
I have applied Params.ExStyle := Params.ExStyle or WS_EX_TOPMOST; WS_EX_TOPMOST style to form at the of Form creation. I want to change it,after creation to set it at background. is there any way for this. –
Kishor-KW
16-Jan-17 22:54pm
View
SetWindowPos(EditParent.OpenDlg.Handle,HWND_TOPMOST,0,0,0,0,SWP_NOZORDER); I tried this one but it is not working
Kishor-KW
16-Jan-17 7:49am
View
yes my application window is set to top using following code:
if UpperCase(SmSession.ApplicationName) = 'MYAPP' then
begin
Params.ExStyle := Params.ExStyle or WS_EX_TOPMOST;
exit;
end
Kishor-KW
15-Jan-17 23:05pm
View
Please Answer.. If question is not proper then plz ask.
Kishor-KW
3-Dec-16 5:33am
View
lie-to-children, Thanks :) 5
Kishor-KW
2-Dec-16 7:34am
View
so there is only reference of 8 byte is created for a class. and if any other reference type declared in it then it will be add 8 in it.
class Myclass
{
int a;
float f;
char c;
public void cal() { }
public void cal2() { }
}
if my class will still occupy 8 byte ?
and if memory is not allocated for a function then how they are called ? are there reference is stored on stack ? and just reference address is fetches at the time of run. if reference is stored on stack then there will a some memory is allocated it's an address then is should be 8 byte, right?
and for each instance memory is allocated, if my class size is 8 byte and i create two instance of it then it will take 16 bytes of memory ?
Kishor-KW
2-Dec-16 6:02am
View
"i can do it by creating derivd class instance. and declaring base class method as sealed."
i am saying method to be a sealed not a class.
Derived d = new Derived();
d.SomeMethod();
Base b = new Base();
b.SomeMethod();
"it will call the Derived method, then the Base method, then what is need of virtual keyword here.
"The virtual keyword tells the compiler that a derived class can override the method. If you omit it, you can't use override in the derived class method definition."
what if i did not used any of this? and what are advantages of using it?
Kishor-KW
2-Dec-16 5:00am
View
ok then it's conclusion that. There are jobs in both asp, win app, delphi, but comparatively more in asp.net, less in win app , and rear in delphi. as an employee one should choose where chances and future is more for safe side. thanks :)
Kishor-KW
2-Dec-16 4:45am
View
Kindly i got your point and i appreciate it. but still why most of MNCs hire windows application developer or why they implement windows application. is that because they already implemented it and can't think to make it online.
Kishor-KW
2-Dec-16 4:24am
View
may i ask for reasons , please ?
Kishor-KW
2-Dec-16 3:36am
View
i edited my question. please answer
Kishor-KW
2-Dec-16 2:59am
View
ok
Kishor-KW
2-Dec-16 2:59am
View
and sir, if there will be chance of c#.net windows application then ? please
Kishor-KW
2-Dec-16 2:49am
View
yes. now clear to me. i have an same question for virtual function. what is need of it. rather than runtime binding? should i have to post a new question for this?
Kishor-KW
2-Dec-16 2:49am
View
yes. now clear to me. i have an same question for virtual function. what is need of it. rather than runtime binding? should i have to post a new question for this?
Kishor-KW
2-Dec-16 2:40am
View
ok, thanks :)
Kishor-KW
2-Dec-16 2:23am
View
thaks for reply, and if point is of package which is twice compare to asp.net then?
asp.net = 3.2
delphi = upto 6
Kishor-KW
27-Aug-16 20:32pm
View
please see the code which i posted. I already tried this it's not working
Kishor-KW
16-Jul-16 3:09am
View
Is there any solution for this?
Kishor-KW
15-Jul-16 5:32am
View
ya that is the problem if i put gridview in update panel
Kishor-KW
8-Jul-16 15:26pm
View
thank you it's help. plz add this to solution
Kishor-KW
8-Jul-16 13:53pm
View
ya i did that. but not working same error is occured.
The relative virtual path error is: MasterPage1.Mobile.Master is not allowed here
Kishor-KW
4-Jul-16 8:27am
View
ok for this i have to use friendlyurl dll. but am i did any mistek in my above code?
Kishor-KW
30-Jun-16 14:49pm
View
ok. so now i have to contact with hoster to increase session?
Kishor-KW
30-Jun-16 13:45pm
View
I get know how session is out because of I maintain some session variables for passing variable from one page to other. and when session variable is null then i navigate page to login page. thats how i get know session is out. and yes it is probably happen after 15 min as you said it is time for iis. I thought asp.net default session time is 20 min.
Kishor-KW
30-Jun-16 13:17pm
View
okk.Thank you for sort out my confusion. So I have to contact to my hoster to changes settiong of IIS to increase time of session
Kishor-KW
30-Jun-16 9:24am
View
i mean there is no iis server at hosted server. IIS server is one on which we run our website developed in Visual studio. Is IIS server like wamp server ?
Kishor-KW
30-Jun-16 7:14am
View
but what is role of IIS after hosting web-site on other server. IIS is a Local server am I right?
Kishor-KW
27-Jun-16 9:54am
View
yes i did BTW session is out after 15 mint. instead i gave time of 2 hour
Kishor-KW
7-Jun-16 10:20am
View
no dave..i am talking about technology like bootstrap and tool like Dev Express.
dev express is paid and I am looking for free one
Kishor-KW
7-Jun-16 9:50am
View
improvement with a look and feel of pages
Kishor-KW
3-Jun-16 11:55am
View
Ok sir, but on local host it works fine. also on my system it works. but when i tried to login from my mobile or other system it gives password does not match error.
Kishor-KW
3-Jun-16 11:39am
View
yes sir. apologized for this. I have updated question,please help
Kishor-KW
3-Jun-16 11:37am
View
Sorry for this. I have updated question. please suggest your best. thank you
Kishor-KW
2-Jun-16 19:11pm
View
thank you.
Kishor-KW
2-Jun-16 11:42am
View
ok then my code should be like this:
body += "<br/><br/><a style="background:#000000; color:#fafafa; padding:10px 100px 10px 100px; width:350px; text-decoration:none; font-weight:bold; font-size:20px;" href=""new Uri(Request.Url, ResolveUrl("~/Activation.aspx")).AbsoluteUri >Click here to activate your account.</a>"
Kishor-KW
2-Jun-16 11:19am
View
Request.Url.AbsoluteUri.Replaceundefined("register.aspx", "Activation.aspx?ActivationCode=") + activationCode + "'>Click here to activate your account.";
did you mean this code nevigate me on register page? if yes then what code should be to nevigate on Activation page
Kishor-KW
2-Jun-16 1:29am
View
Deleted
now i am able to send a mail. but the contain of mail is old one.
let say if my mail subject is 1 previously and body is 123 now I change mail subject to 4 and body to 678 but after sending mail in inbox i get previous mail means subject is 1 and body is 123
why this is happening?
Kishor-KW
2-Jun-16 1:22am
View
Deleted
now i am able to send a mail. but the contain of mail is old one.
let say if my mail subject is 1 previously and body is 123 now I change mail subject to 4 and body to 678 but after sending mail in inbox i get previous mail means subject is 1 and body is 123
why this is happening?
Kishor-KW
1-Jun-16 11:09am
View
thanx man...I spend 3 days on it...finally got a solution...thank you very much
@Richard MacCutchan
Kishor-KW
1-Jun-16 11:08am
View
Deleted
thanx man...I spend 3 days on it...finally got a solution
Kishor-KW
1-Jun-16 10:47am
View
I used it. please see a code
Kishor-KW
1-Jun-16 5:53am
View
actually on my visual studio it do not give error, but after hosting it, it give a error. i don't know how to debug it after hosting
Kishor-KW
31-May-16 16:42pm
View
hey...I tried to ,make changes into the code ...now I am getting following error.
Object reference not set to an instance of an object.
now can you help me. I know why this error occured but there is no space for this error. may be issue in code of mail. please help
Kishor-KW
31-May-16 6:22am
View
ok
Kishor-KW
31-May-16 6:15am
View
means,
smtp.Host=smtp.mydomainname.com
right?
Kishor-KW
31-May-16 5:39am
View
then what to use? yahoo?
Kishor-KW
31-May-16 5:39am
View
which one?
Kishor-KW
31-May-16 4:17am
View
it gives a syntax error...like token is invalid ...and error red line below
X509Certificate certificate,X509Chain chain, SslPolicyErrors slPolicyErrors
Kishor-KW
31-May-16 2:53am
View
what it will do?
Kishor-KW
31-May-16 1:46am
View
I am using a method of secret and public key and yesterday it was working fine
Kishor-KW
31-May-16 1:45am
View
so what should i do now?
Kishor-KW
31-May-16 1:42am
View
there is no error.thats why it is tough to understand, just mail is not send.
but same code is work on other page. how it is possible?
Kishor-KW
30-May-16 9:09am
View
same code work on password recovery page. but here it is not working.
Kishor-KW
30-May-16 9:09am
View
same code work on password recovery page. but here it is not working.
Kishor-KW
30-May-16 9:07am
View
same code work on password recovery page. but here it is not working.
Kishor-KW
30-May-16 7:46am
View
what is smtpTos,smtpCCs? as i tried but not work.
Kishor-KW
30-May-16 5:37am
View
i did that changes but still it is not working. username and password are right.
Kishor-KW
26-May-16 2:36am
View
there is no answer to a question or my question is wrong?
Kishor-KW
24-May-16 6:22am
View
yes I know but it is not secure
Kishor-KW
20-May-16 9:35am
View
Actually the error what I got is Access denied for user 'truck'@'localhost' (using password: YES)
Kishor-KW
20-May-16 9:22am
View
but control is with me. then I can also make changes in it right?
Kishor-KW
20-May-16 9:02am
View
1]Object reference not set to an instance of an object.
2]The requested name is valid, but no data of the requested type was found
this type of error I got.
polease provide a example of connection string after hosting, which changes should i do after hosting website
Kishor-KW
20-May-16 8:42am
View
i am using mysql database please will you give me a example that how connection string should be? as i recently read that mysql required database port number
Kishor-KW
20-May-16 8:11am
View
I checked it. it is right
Kishor-KW
18-May-16 13:58pm
View
and code in .cs file. is not visible r8?
Kishor-KW
18-May-16 13:55pm
View
means we can't do anything to avoid this encryption or else? if there is select query then my table name name column are visible to attacker.
Kishor-KW
13-May-16 11:02am
View
thats great thank you. will you please tell how much my searching speed will increament. And what to do if there are two or three columns in where clause?
thank you
Kishor-KW
12-May-16 17:55pm
View
then why we need to enable this setting in google security? and after this we able to send mail through our code.before that we just can't
Kishor-KW
12-May-16 17:33pm
View
Then how can we got a mails from amazon,facebook,even from our code project, is it the case that we have to write other code for it. to make our email id get into the so called safebox to them
Kishor-KW
12-May-16 17:14pm
View
Google Account Security
Under the "Access for less secure apps" section, you can enable access to your account from other devices/applications... like your C# application.
Note, there is no longer an "application specific" section.
once I do this setting in receiver mail account then I able to send mail. but problem is it is by default block/off . and most of user don't make it on.
Kishor-KW
11-May-16 5:22am
View
means we can't fix out the width of label? not even using css or javascript?
Kishor-KW
11-May-16 3:35am
View
if label is last control on my page which indicate footer(lets consider) and there is no more control or text or anything on page. then why browser scroll down more after last label n showing empty part of page(as it is obvious)
Kishor-KW
11-May-16 3:25am
View
I think may be i am not able to convey my question. it is when containt of page is last then there should be no scrolling, like on this page it is stop at this line
CodeProject, 503-250 Ferrand Drive Toronto Ontario
no scrolling or empty space
Kishor-KW
11-May-16 3:20am
View
how to set max width of label and height is autosize as per text but width should be in limit
Kishor-KW
11-May-16 2:57am
View
how to set max width of label and height is autosize as per text but width should be in limit
Kishor-KW
9-May-16 1:08am
View
what I can do to make my website faster and what is role of server in it.
Kishor-KW
6-May-16 0:29am
View
there is no aspx page
Kishor-KW
6-May-16 0:20am
View
No aspx page is there.
ScriptManager.RegisterStartupScript(this.page,page.GetType(),"showalert","alert('Only alert Message');",true);
here we use page but no aspx page is there. and scriptManager is also not there.
Kishor-KW
6-May-16 0:20am
View
Deleted
plz give example
Kishor-KW
4-May-16 18:09pm
View
ok thank you
Kishor-KW
3-May-16 19:41pm
View
Reply Modify the comment. Delete the comment.
thank you for replay...ok take one example. one bug remain into the website. it is hosted and multiple user are
accessing it. if one user action encounter the action which is bug then exception will occurred then in this scenario what will happend that user get affected only all all users who are login there will get affected.
As per your answer i think all user get hamper
Kishor-KW
3-May-16 19:41pm
View
Deleted
thank you for replay...ok take one example. one bug remain into the website. it is hosted and multiple user are
accessing it. if one user action encounter the action which is bug then exception will occurred then in this scenario what will happend that user get affected only all all users who are login there will get affected.
As per your answer i think all user get hamper
Kishor-KW
3-May-16 6:16am
View
where should i put this code on home page or login page
Kishor-KW
29-Apr-16 13:44pm
View
if my query is select * from then there is no need of parameter am i right?
Kishor-KW
29-Apr-16 13:44pm
View
ok thanx
Kishor-KW
29-Apr-16 12:40pm
View
ya i go for it but didn't found any useful link. it wolud be greatful if you mention anylink to refere
Kishor-KW
29-Apr-16 12:08pm
View
what should we can use to avoid this?
Kishor-KW
29-Apr-16 12:04pm
View
thanx for the replay please help me in the query number 4. please give example of it
and also tell is this way is better or store procedure is better?
Kishor-KW
27-Apr-16 15:59pm
View
which are another HTML editor?
Kishor-KW
27-Apr-16 13:41pm
View
Deleted
is my question wrong?
Kishor-KW
23-Apr-16 8:25am
View
:)
Kishor-KW
23-Apr-16 7:30am
View
thanx KARTHIK
Kishor-KW
22-Apr-16 21:11pm
View
Ok I will Try
Kishor-KW
22-Apr-16 20:29pm
View
There are many rows in the gridview. every row contain img control requried source which is from database.
and src get value when it is retrived from the database if it is null then hide the image control. in this scenario where should i have to call the javascript.
I did that on pageload function using scripregistration but not works
Kishor-KW
22-Apr-16 20:24pm
View
Deleted
q
Kishor-KW
21-Apr-16 8:29am
View
its giving a error of syntax did you missed the values key word?
Kishor-KW
21-Apr-16 8:08am
View
yes it is woking but it returns more than one value in my case it returns 5 values it may be vary from 5 to 200 now how to handle this?
Thanx for reply
Kishor-KW
21-Apr-16 7:47am
View
yep,it's working thanx
Kishor-KW
20-Apr-16 11:15am
View
both query working well individually query at start and queries in ( )
Kishor-KW
20-Apr-16 11:07am
View
Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
in mysql wrokbench 5.5
Kishor-KW
18-Apr-16 15:06pm
View
yes sorry for that..will take care next time. thank you
Kishor-KW
18-Apr-16 15:01pm
View
Deleted
Kishor-KW
18-Apr-16 14:57pm
View
Deleted
q
Kishor-KW
18-Apr-16 12:16pm
View
I trying to search the javascript as a option but my control are in DataGridview,
javascript function is:
var x;
function myFunction()
{
// var x = document.getElementById("suggchangeback");
//x.value = x.value.toUpperCase();
x = document.getElementById(document.getElementById(suggchangeback.ClientID)).value;
x.value = x.value.toUpperCase();
document.getElementById(document.getElementById(suggchangeback.ClientID)).value = x.value;
//return x.value;
}
I am using following script and calling it on onblur="myFunction()"
<asp:TextBox ID="suggchangeback" runat="server" TextMode="MultiLine" EnableViewState="false" AutoPostBack="false" OnTextChanged="suggchangeback_Leave" onblur="myFunction()">
but flow control not going there.
and I want to store var x value from javascript function into the variable on .cs file. How to do this? please help.. or should i have to ask new question?
Kishor-KW
18-Apr-16 11:04am
View
but i want to click on any one button from buttons in mutiple rows. and then only to operations with it.
Kishor-KW
18-Apr-16 10:58am
View
i am asking this because if I used protected void ButtonSelect_Command(object sender, CommandEventArgs e) then control is only available over there I cant get access it in other function.
Kishor-KW
18-Apr-16 10:54am
View
is my question worng?
Kishor-KW
18-Apr-16 10:49am
View
where should to add CommandArgument="<%#Container.DataItemIndex >"I mean to which control
Kishor-KW
18-Apr-16 10:46am
View
if i want to get it on page load then how to do this
Kishor-KW
18-Apr-16 6:22am
View
plz some one give a javascript to get textbox value even after postback occured
Kishor-KW
18-Apr-16 1:56am
View
its not executing OnRowCommand event,means after click on button it not goes onOnRowCommand at code behind
Kishor-KW
15-Apr-16 15:58pm
View
i am using c# :)
Kishor-KW
15-Apr-16 15:52pm
View
please give any example or link to refer, is it good to use array?
Kishor-KW
15-Apr-16 15:46pm
View
I am using separate class file for insert update all database related query,where I just pass the query. so that i wouldn't be a need to use Mysqlconnection on ervery page where need.but now as all query having different number of parameters in parameterized query what should I have to do to follow same approach
Kishor-KW
15-Apr-16 9:44am
View
Ok thank you. :)
Kishor-KW
15-Apr-16 9:37am
View
ok I will. but please tell me will it solved the problem of '(apestop)
Kishor-KW
15-Apr-16 9:32am
View
sql injection occured when we mention control directly into the qurey e.g textbox control. but I am taking values into the variable and then mentaion it into the query.
and ' (apestop) is not accepted by mysql. then how can parameterize query solve the problem?
we have to use \ or something like mysql_real_escape_string but i don't know what exactly to use.
Kishor-KW
15-Apr-16 9:25am
View
please give one example for query contain ' (apestop)
Kishor-KW
14-Apr-16 16:09pm
View
Button seepro = (Button)Master.FindControl("seeProfole");
I did thid on the page where i use masterpage. but still i have a question that is that the case materpage control are not access on it's own code behind page ? because same give null result at masterpage.cs file
plz clear this doubt
Kishor-KW
14-Apr-16 16:02pm
View
web application
Kishor-KW
14-Apr-16 15:58pm
View
I am doing this on masterpage.cs file. I do not have masterpage.designer.cs file
is that the issue?
Kishor-KW
14-Apr-16 15:20pm
View
but it is not in contextplaceholder. now i take it outside of it.
Kishor-KW
14-Apr-16 15:17pm
View
i change codefile by codebehind and it is my control name
Kishor-KW
14-Apr-16 15:13pm
View
on following line it give error thar seeProfole does not exist which is my control name
return seeProfole
Kishor-KW
14-Apr-16 5:13am
View
ok thanx
Kishor-KW
14-Apr-16 5:12am
View
Object reference not set to an instance of an object.
this is the error occured
Kishor-KW
14-Apr-16 5:04am
View
but why? I want to make it invisible on one condition. what should i do?
Kishor-KW
13-Apr-16 4:27am
View
simply said i want functionality like Comments we post comments then able to edit original one,like we do here
Kishor-KW
13-Apr-16 4:25am
View
its an webform application
Kishor-KW
13-Apr-16 2:02am
View
yes I did this. it returns a old value which textbox already contain. (it does not return null my textbox was empty sorry for that). but when I change the contain of textbox and click on Done, new value in textbox which is edited should have to come in suggtxt string. but its not. Previous textbox value is remain there.
Kishor-KW
13-Apr-16 1:54am
View
ok, but changes should have to reflect, but its not. new text type into the textbox is not come into the suggtxt string. why?
Kishor-KW
13-Apr-16 1:32am
View
protected void btnDone_Command(object sender, CommandEventArgs e)
{
int index = 0;
string suggtxt = "";
if (int.TryParse(e.CommandArgument.ToString(), out index))
{
TextBox txt = (TextBox)GridViewUserScraps.Rows[index].FindControl("suggText");
suggtxt = txt.Text;
}
}
it is a webform application
Kishor-KW
12-Apr-16 14:11pm
View
yes u r r8. is there any event to do this. Thank you for reply :)
Kishor-KW
12-Apr-16 14:07pm
View
NO,textbox size is not changed or adjust as per contain in it. but using onchange event error is not occurring. still my goal is not hit
Kishor-KW
11-Apr-16 10:35am
View
Thank you.
Kishor-KW
11-Apr-16 9:00am
View
hi...thanx its working. please would you explain it what actually performed by
CommandName="Select" CommandArgument="<%#Container.DataItemIndex %>
and
int.TryParse(e.CommandArgument.ToString(), out index))
Kishor-KW
11-Apr-16 8:05am
View
i am using iteam template. so all the data from the database is bind with gridview.
which contain 1]image in imagecontrol 2]name in label control 3]Id in label control.
so it will access all this value in one row. if values are three then it will show three image control and label controls representing the values at perticular row in gridview.
now let us assume gridview having three rows. Let us called those three rows on output window as layers, so it will show three layers each contain one imagebox control and two label control.
when I use following code
Label txt = (Label)GridViewUser1.Rows[0].FindControl("postLID");
string test = txt.Text;
it will only show Id of label at zero th row i.e. zero th layer.
if i want to get Id of second row which i currently access by using button click event. how to do this?
Kishor-KW
11-Apr-16 6:39am
View
i did this using following code
Label txt = (Label)GridViewUser1.Rows[0].FindControl("postLID");
string test = txt.Text;
but now problem is various data is bound to iteam template. when i used this it will give an last iteam template label value. I want the value from those which is currently access by user
Kishor-KW
10-Apr-16 23:59pm
View
how to do this.please explain
Kishor-KW
3-Apr-16 7:25am
View
Please tell me, is client side user able to see the code of web service or WCF service which I refered in my web application?
Kishor-KW
24-Mar-16 15:30pm
View
Means we can't use this syntax in mysql. as we can in mssql
Kishor-KW
23-Mar-16 16:29pm
View
yes I know about mysql injection but here i did not take care of it. please give me solution on same query
Kishor-KW
1-Feb-16 23:02pm
View
is there no free community edition in vs 2012 ? where I can ask question to Microsoft?
Thanx
Kishor-KW
28-Jan-16 4:16am
View
web service is at the top here, right?
Kishor-KW
28-Jan-16 4:16am
View
Deleted
web service is at the top here, right?
Kishor-KW
19-Jan-16 0:46am
View
ok, you means
D:\set\get\logo.bmp this is my path of logo.
So what should I save into the database
D:\logo.bmp or just logo.bmp ?
Kishor-KW
18-Jan-16 6:10am
View
may you mention what that code is ?
Kishor-KW
17-Jan-16 8:29am
View
what is parent here?
Kishor-KW
17-Jan-16 8:14am
View
if I do not called CMyDialog1.DoModal then those Retry,Abort,Ignore indicates some error are not occured.
Kishor-KW
17-Jan-16 8:12am
View
In CMyDialog1 class I am assigning a value to the variable m_Variable. after closing CMyDialog1 , CMyDialog2 is opened and now here I assigned m_Variable value
to variable of CMyDialog2
Both CMyDialog1 and CMyDialog2 are individual DialogBoxe with there individual class
Kishor-KW
17-Jan-16 7:48am
View
please reply
Kishor-KW
17-Jan-16 7:35am
View
in CMyDialog1 class file:
m_Variable =CompanyName;
and in CMyDialog2 class file:
CString strvalue;
CMyDialog1 dlg;
strvalue= dlg.m_Variable ;
if we do not call DoModal method before assignment then dlg.m_intVariable is empty.
Kishor-KW
17-Jan-16 1:54am
View
I got the solution using following code means I got the text of selected value.
void Cselect_product::OnItemchangedListCategory(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
// TODO: Add your control notification handler code here
CListCtrl* pListCtrl = (CListCtrl *) GetDlgItem(IDC_ListCategory);
POSITION pos = m_klist.GetFirstSelectedItemPosition ();
if (pos == NULL)
TRACE0 ("No items were selected! \n");
else
{
while (pos)
{
int nItem = m_klist.GetNextSelectedItem (pos);
TRACE1 ("Item %d was selected! \n", nItem);
//you could do your own processing on nItem here
strText = m_klist.GetItemText(nItem, 0);
}
}
*pResult = 0;
}
but list control's view property is set to the List at that time I want all this operation when view property of list control is Report.
Kishor-KW
17-Jan-16 0:52am
View
yes I exactly want this. but I want the selected value's Text to store in CString type variable. How to get the text of selected item of the list control
Kishor-KW
15-Jan-16 3:32am
View
but it is about a listbox control I am asking about list control.
Kishor-KW
15-Jan-16 1:26am
View
hi SA,
I already go through that article it is nice but more functionality are there its take time to get understand, I want solution soon. just simple solution. I will go into detail after. Thank you for Solution
Kishor-KW
14-Jan-16 12:36pm
View
The attempt to attach to the database failed with the following information:
A network-related or instance-specific error occured while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces,error:26-Error Locating Server/Instance Specified)
This error is getting. I understand this error but not able to resolve it.
Kishor-KW
13-Jan-16 22:53pm
View
what is mean by lpvObject ?
Kishor-KW
13-Jan-16 9:17am
View
Thank you
Kishor-KW
13-Jan-16 9:17am
View
Ok, Thank you.
Kishor-KW
13-Jan-16 9:11am
View
I am taking about normal web-services that we used in our projects.
Kishor-KW
13-Jan-16 9:06am
View
ok, means to track the user we have to write a code. how to identified that is
web-services contain such code?
Kishor-KW
13-Jan-16 9:02am
View
if (GetObject(hbit, sizeof(BITMAP), (LPVOID)&bm) == 0)
OutputDebugString("GetObject failed\n");
after executing GetObject failed message is shown what should I do? Let me clear that this class file is not associated with any dialogbox hence there is no picture control, is that reason for this message?
Kishor-KW
13-Jan-16 7:04am
View
So this is same condition for all webservices no matter big enterprise or made by college student. They will get know when we call their web-service.
Kishor-KW
13-Jan-16 3:28am
View
using ODBC
Kishor-KW
8-Jan-16 6:22am
View
Thanks for reply but I already go through all links.
Kishor-KW
8-Jan-16 6:20am
View
On selectchange of listbox I take value of selectedtext into s1 variable which is of type CString. I have to retrive all values in the row of s1(which is entry in on column's row)
int row = m_list.GetCurSel();
if (row < 0)
return;
CString s1;
m_list.GetText(row, s1);
Kishor-KW
8-Jan-16 6:12am
View
It is a MFC application
Kishor-KW
8-Jan-16 6:08am
View
it is of CString type variable, Editbox member variable.
Kishor-KW
8-Jan-16 6:04am
View
example means write one query in visual c++ MFC
Kishor-KW
8-Jan-16 4:00am
View
Please specify one example @Richard MacCutchan
Kishor-KW
8-Jan-16 3:51am
View
if I do concatenation then it will directly concatenate s1 with query, not the the value of s1.
Kishor-KW
7-Jan-16 22:53pm
View
Variable are in code only,data from database is get selected/ stored into those variable.
m_txt = "select CompanyName As m_CompanyName, Model As m_Model, OrderNo As m_OrderNo, StreetAddress As m_StreetAddress , Phone As m_Phone, Logo As lg1 from Companies and I also want to get know how to specify where clause here as
m_txt = "select CompanyName As m_CompanyName, Model As m_Model, OrderNo As m_OrderNo, StreetAddress As m_StreetAddress , Phone As m_Phone, Logo As lg1 from Companies where CompanyName="+s1; (thats how we write query in MySql or Sql server, s1 is variable of string type)
but in vc++ at + sign it gives error.
Kishor-KW
6-Jan-16 7:22am
View
I tried this but it gives errors.
Kishor-KW
6-Jan-16 5:31am
View
can it will be possible by creating dll and add it into old one?
Kishor-KW
6-Jan-16 4:24am
View
Ok I already find some solution similar to this. I will also try this one. and let you know. Thanx for reply
Kishor-KW
4-Jan-16 5:12am
View
Ok Thanks
Kishor-KW
4-Jan-16 5:01am
View
plz in vc++ 6.0 will be good
Kishor-KW
4-Jan-16 4:55am
View
For loop of insert/set run successfull then exception occured on line
return (BOOL) ::SendMessage(m_hWnd, LVM_SETITEMTEXT, nItem, (LPARAM)&lvi);
of following function
BOOL CListCtrl::SetItemText(int nItem, int nSubItem, LPCTSTR lpszText)
{
ASSERT(::IsWindow(m_hWnd));
ASSERT((GetStyle() & LVS_OWNERDATA)==0);
LVITEM lvi;
lvi.iSubItem = nSubItem;
lvi.pszText = (LPTSTR) lpszText;
return (BOOL) ::SendMessage(m_hWnd, LVM_SETITEMTEXT, nItem, (LPARAM)&lvi);
}
Kishor-KW
4-Jan-16 4:50am
View
First-chance exception at 0x75877250 (KernelBase.dll) in SampleDBApp.exe: 0xC0000005: Access violation reading location 0xFEEEFEEE.
This exception occured
Kishor-KW
4-Jan-16 4:23am
View
what wrong here:
pRecordSet->MoveFirst();
for (int iRow = 0; !pRecordSet->IsEOF(); iRow++)
{
CDBVariant varField[8];
pRecordSet->GetFieldValue((short)0, varField[0]);
_TCHAR szField0[256] = _T("\0");
wsprintf(szField0, _T("%d"), varField[0].m_iVal);
pListCtrl->InsertItem(LVIF_TEXT | LVIF_STATE, iRow, szField0, 0, 0, 0, 0);
pRecordSet->GetFieldValue((short)1, varField[1]);
pListCtrl->SetItemText(iRow, 1, static_cast<const wchar*="">(*varField[1].m_pstringW));
//pRecordSet->GetFieldValue((short)2, varField[2]);
/*_TCHAR szField2[256] = _T("\0");
wsprintf(szField2, _T("%d"), varField[2].m_iVal);
pListCtrl->SetItemText(iRow, 2, szField2);*/
pRecordSet->GetFieldValue((short)1, varField[2]);
pListCtrl->SetItemText(iRow, 1, static_cast<const wchar*="">(*varField[2].m_pstringW));
pRecordSet->GetFieldValue((short)1, varField[3]);
pListCtrl->SetItemText(iRow, 1, static_cast<const wchar*="">(*varField[3].m_pstringW));
pRecordSet->GetFieldValue((short)1, varField[4]);
pListCtrl->SetItemText(iRow, 1, static_cast<const wchar*="">(*varField[4].m_pstringW));
pRecordSet->GetFieldValue((short)1, varField[5]);
pListCtrl->SetItemText(iRow, 1, static_cast<const wchar*="">(*varField[5].m_pstringW));
pRecordSet->GetFieldValue((short)1, varField[6]);
pListCtrl->SetItemText(iRow, 1, static_cast<const wchar*="">(*varField[6].m_pstringW));
pRecordSet->GetFieldValue((short)1, varField[7]);
pListCtrl->SetItemText(iRow, 1, static_cast<const wchar*="">(*varField[7].m_pstringW));
pRecordSet->MoveNext();
}
pRecordSet->Close();
pdb->Close();
return TRUE; // return TRUE unless you set the focus to a control
}
Kishor-KW
4-Jan-16 3:58am
View
To add more colums I think I have change in following for loop, but what should be change. My fisrt cloumn is integer and other all are Text. plz give one example
for (int iRow = 0; !pRecordSet->IsEOF(); iRow++)
Kishor-KW
4-Jan-16 3:15am
View
yes I got a mail. Thank you very much
Kishor-KW
4-Jan-16 2:14am
View
Ok I will wait
Kishor-KW
4-Jan-16 2:01am
View
means did you send me a mail?
Kishor-KW
4-Jan-16 1:46am
View
Deleted
kindly,Is this Complete?
Kishor-KW
4-Jan-16 0:20am
View
That will be really greatfull
Kishor-KW
4-Jan-16 0:15am
View
Deleted
may you mail me plz, kiwagh105@gmail.com
Kishor-KW
3-Jan-16 23:02pm
View
please just specify steps to add database to newly added dialogbox.
Kishor-KW
3-Jan-16 11:25am
View
I read but I did not found how to add databse to project already created
Kishor-KW
3-Jan-16 8:09am
View
I did't read that uptill but ok I read it first and then any problem occured I will ask you. Thank you
Kishor-KW
3-Jan-16 8:08am
View
but how to add single or multiple document after creating project(at the time of creation project we choose that), then if we want to add/insert new control then Dialog is option. This project is handover to me and I don't know that is Developer select Multiple document at the time of creation or not.
Kishor-KW
3-Jan-16 7:52am
View
I follows the steps as :
1] Create new dialog for which I want to access database for storing and retrieving purpose.
2] Then I create class for this,By default its base class is Dialog, I changed it to RecordView.
3]Then It is ask for class but in drop down there is no class so I create class by click on New tab overthere.
4]But It give message that Class name create .h and .cpp file and contain reclaim of it.
Dos not able to create class.
Am I follows right steps?
Kishor-KW
3-Jan-16 7:45am
View
Ok I will, It will be greatfull if you provide some example or steps to do that...Thanx once again
Kishor-KW
3-Jan-16 7:39am
View
Is this possible project already created in vc++ 6.0 without database and now I want to add database to it. which step should I follow.
Show More