Sunday, August 2, 2009

USER LOGIN function in VB.NET (Code Syntax?)?

Hi all, I need help here =/





I need to develop a web based application based on:


- Microsoft's ASP.NET 2.0


- SQL Server 2005


- Programming language is VB.Net








Programs I used are:


- Visual Web Developer 2005 Express Edition


- Microsoft SQL Server Management Studio








Currently I need to do the LOGIN FUNCTION for the user but im not sure how to start. I studied C# in school but my internship company (currently) required me to code in VB.Net and for that I find it very confusing.








Description of what I have:


The main page has a UserID and Password.


- 2 textboxes (and 2 Required Field Validator)


- 1 Login button


- 1 label for Login Error (A login message will be shown if user failed to log in)


- Forget Password Link








The database has a table named User:


- Fields are UserID, Password, .............








*Note* User do not have to register. There is no registration form.








I would like to know how the code syntax is like in VB.NET?





Thanks!

USER LOGIN function in VB.NET (Code Syntax?)?
IMHO, your C# background is awesome and you shouldn't use that as an excuse now. You can do it. Take heart that VB.NET and Visual C#.NET are not really worlds apart since they share the same Base Class Library. Believe it or not, it will be easier for you to learn VB.NET with your C# background than it is for most VB6 developers to transition to VB.NET!





Here's an excellent .NET developers' website that may have some clues for you: http://www.codeproject.com/info/search.a...


Having said that, most of those articles deal with complex forms authentication and role-based security, which is probably beyond what you need. You simply need to validate the user credentials against the db and then allow access (redirect, most likely) to other pages or not.





Let me ask you this: Do you have a good idea how you'd accomplish this in C#? If so, you may want to write out and post some C# pseudocode snippets and see if people can help you translate it to VB.NET. If nothing else, it will help you organize your thoughts.


What MSDN library should i install ?

I have recently installed Microsoft Visual Studio and C++ says that it`s help sistem is missing.


It says that i need the MSDN collection .


Now i`m not sure but i think that Visual Studio 2003 is the product that i have,and I want to ask you guys if the MSDN library for VS 2005 is compatible with my version ?


I`ve made some researches on the MSDN home page but i dont know what to download !


Thanks :)

What MSDN library should i install ?
You should have received CDs with the MSDN files. Check if you have the CDs, and install whatever's on the CD.
Reply:MSDN is the reference you'd use while programming.. installing it is absolutely optional.. You can save the space and just use the web when you want to use the reference if you can rely on your internet connection..


Windows Form Application help please!?

I have created a windows form application project in visual studio 2005 that consists of many forms.In one of the forms I need to have access to what has been written in a previous form by the user.how can I do so?(using c++)


Thanks a lot

Windows Form Application help please!?
Use a global variable. Google that term.


Is it possible to use two cpp files at a time?

I am a c++ beginner ... I would like to know if there is a way to make a program like this: At the beginning, there is a condition which if true , a cpp file is opened.... if not another cpp file is opened (having a totally different main and different function....... note: i use visual studio 2005!!

Is it possible to use two cpp files at a time?
When you create an exe file, the C++ files are compiled and then linked together to the exe file. When you start the exe file, you can't access the c++ files anymore - they are totally irrelevant anyway, because all the compiled code is in the exe file.





however, you can create several c++ files and add them to your project. this is even recommended - it's better for your organization of the source code.





now each c++ file has different functions and you can call all those functions from your main function (or from any other function), if you have a header file with the function declarations.

bloom

How to access IIS's aspnet_regiis utility?

I just installed IIS 5.0 and want to use the aspnet_regiis.exe command utility to register ASP.Net file mappings with IIS.





According to the asp.net book I have, the directory of the utility is:


C:\Program Files\Microsoft.NET\Framework\[Version]\... -i





However, when I checked the directory, there is no Framework folder inside the Microsoft.NET folder.





I have installed MS Visual Studio 2005 before installing IIS. Is there a way to access the utility?

How to access IIS's aspnet_regiis utility?
This is a command prompt utility. To run it go to:


Programs %26gt; Visual Studio 2005 %26gt; Visual Studio tools %26gt; Visual Studio 2005 command prompt





type: aspnet_regiis





if you need to supply special arguments to it, check online help.





Hope this helps.
Reply:The above answer is right on, but your book is incorrect on the location of aspnet_regiis.exe. It can be found here:





C:\WINDOWS\Microsoft.NET\Framework\%26lt;fr... version here%26gt;\aspnet_regiis.exe


Please help w/ making a program, it just doesn't make any sence?

ok in school we're using Visual Basic 2005 to make an application program. We're basically finding how far away from the horizon this person is standing. The user has to be able to type in the number of feet high they are (standing on a platform). we're assuming that the earth is exactly round and the radius is 4000 miles. So it's a pathogorean theorem thing (a^2 + b^2 = c^2) where c=4000 miles + (whatever the user types in) * 5280, because it has to be converted to miles. b=4000, that's the constant. and we're trying to find a. This is what i've come up w/, but it didn't work:





Const sngB As Single = 4000


Dim sngC1 As Single


sngC1 = Val(txtprompt.Text)


Dim sngC As Single


sngC = sngC1 + 4000


Dim sngA As Single


sngA = (sngC^2) - (sngB^2)


Dim sngResult As Single


sngResult = Math.sqrt(sngA)


lblResult.Text = sngResult





if that doesn't make sence but you know how to do this, please email me, i really need help with this

Please help w/ making a program, it just doesn't make any sence?
Your equation is right.





A = sqrt( (c^2) - (b^2) )





Plugging in easy numbers (for instance, 1 mile above the ground), you get:





A = sqrt( (4001^2) - (4000^2) )





Which comes out to 89.448.





If when you run the program you get something close to that, good. Everything is fine.





If you're not, perhaps you're entering the height of the platform in feet, but forgetting to change it to miles before it gets added to C. In that case, you'd want to do something like:





sngC1 = Val(txtprompt.Text)


sngC1 = sngC1 / 5280


sngC = sngC1 + 4000





As for the other answers, Jamall has no idea what he's talking about. Ignore him.


Mom23 forgot the radius of the earth in his or her answer. What he or she should have written is


c = sqrt(4000^2 + ((a / 5280)+4000)^2)





If you continue to have issues, feel free to e-mail me. I'll try to help as much as I can.
Reply:c is the hypotenuse so the diagonal value is c which what you should be looking for


b is either the opposite side or the adjacent side but since you defined it as the earths radius it is the adjacent side or the height of the earth's radius


%26lt; he is here


\


| \


a \ c = is the distance between you and him


|__\ %26lt; you are here


b = distance between you and earth center


a = distance between him and earth he is standing on a


flatform so = earth's radius + vertical distance





so you really should compute for c





c^2 = a^2 + b^2


sqrt(c) = sqrt(a^2 + b^2)





so your code should be


a= b + (val(txtprompt.text) / 5280) ' converting it feet to miles


c = sqrt( (a * a) + (b *b))





i'm not really sure but it think this is the answer :)





sorry I can't get the diagram right.
Reply:I think your math is wrong.





C does not = 4000 + a*5280





c = sqrt(4000^2 + (a*5280)^2)





try that





**************





update: thanks to the guy below - sorry for trying to solve to quickly at night after wrangling 3 kids! (Ya lose it if ya don't use it!) LOL!
Reply:Well it most DEFINATELY doesn't make sense because B=C is logically impossible. If c=4,000 Miles, then why would you multiply that again, because C is your answer. If you're going to do anything with C, it's divide. I don't know the answer, but that's some math help that's probably REALLY good to know...


Need help really?

i now doing a project then use vb to view data from c drive and my hard disk...


I really need help on how to do it, i using microsoft visual studio 2005... can u tell me the steps or e tool to use or if need code can let me know e code also.. thx alot... really need help..

Need help really?
I have no idea.


How can i become a better programmer?

I know this is a stupid question.I too know that practice makes a man good programer.But when i practice i feel boredom,though i am prety good when it comes to other things that involve logic .I am quite much interested in logic and have a good interest in things that involve logic and thinking but when it comes to programming THUMBS DOWN.


I have a good knowledge of JAVA,C,C++ and am a novice at visual basic .NET 2005.


I try to program java using notepad but now i am thinking to move to netbeans or eclipse.Plz tell me how can i be a better programmer besides doing a lot of practice.

How can i become a better programmer?
The answer is practice, unfortunately. However, if you are suffering from motivation problems then why not try to make some interesting projects so that you have a vested interest in getting them working, rather than just grinding away at code. E.g. make a program to catalogue your CDs or films. Think about something that you can start off small, and then add more sections in to it. In the example I listed, you could create a basic catalogue system, then add in different search functions, and reports, then add in the facility to load box images, etc, etc, etc.
Reply:Notepad is a wonderful tool. But if you can spend about 50$ I would recommend "Ultra Edit" you can try it free for 30 days.





There are tons of concept books out there to teach you class and functional programing. But here are some tips from someone who has written millions of lines of code.





1 Never write the same line of code twice if you can help it.


2 Program your programming interface to make things faster


3 Write notes - comments make everything easier.
Reply:Definitely get eclipse or netbeans, coding in note pad is far to tedious. This will help with the boredom. Then think of a product or utility you would like to have and try to create it. You need to code something that interest you, it will make practice seem less like practice.
Reply:Well, the main thing that'll make you a good programmer, is, (so sad for you), to overcome the sense of boredom you have with practice. Practice is what it's all about, because programming involves a LIFETIME of learning. It never ends.





The perfect programmer (or technician, or artist, or skillsperson of ANY sort) is the one who is humble enough to be glad to learn new tricks from others (it happens all the time) and to PRACTICE them! (The particular language doesn't much matter.)
Reply:Try learning more about computer science as a whole. While practicing programming is a given, to be really great you must have a firm foundation in the basic theory of computer science, and software engineering. Learn some models of computation, like finite automa and turning machines. Learn about Algorithmic Paradigms like Greedy, Dynamic Programming and Divide and Conquer. In terms of software engineering learn about design patterns, and OO analyst and design, life cycles, and software development processes like RAD, waterfall and UP. These are all things you can read about online or in books and all of it will make you a better and more well rounded programmer.

dogwood

Is it possible to learn programming ?

i want to learn programming specially visual basic 2005. but let me tell you first thing is i dont know anything about programming. almost new for programming world, is it possible to learn programming for a person who dont have a single knowledge of any kind of programming. and my aim is to learn vb 2005, few people told me that u must have good command over VB 6 or c or c++ to learn programming under .net environment.


can someone suggest me what to do weather to start learn programming or to leave idea behind.


second

Is it possible to learn programming ?
Of course it is possible. Nobody was born knowing how to program, which means everyone who does it had to start from zero.





Visual basic Express 2005 is a fairly good place to start, although I would definitely buy a good "teach yourself" book to go with it. Prepare for it to take a while. I was programming at work for two or three years before I actually felt I was any good at it.





If it really gets tough for you, you might consider taking a course. That can help as well.





As to Java being better for you on the job, I can't really agree with that. Most programming work is corporate and IT programming work, and although the statistics Sun will bandy about on that suggests Java is in the lead, everyone in the industry knows that VB is still the king where internal corporate programming is concerned, and C# probably isn't a long way from overtaking Java either....
Reply:Why do you want to learn programming ? For fun, or to get a job.





Just go to your local big book shop computer section and have a mooch about to find out if the subject suits you.





Visual Basic 2005 is easy to learn. There is a book called 'Build a Program Now' by Patrice Pelland, published by Microsoft for $16.99, which includes a CD containing VB 2005 Express Edition, SQL Server 2005 Express Edition, and lots of projects to get you going.





If you want to learn programming to get a job, I would advise Java as a better language to learn. There are lots of books on this subject, and the O'Reilly series are good and cheap.





You learn by reading and doing.
Reply:I'd say go for it and if it doesn't work out you can change. You will never know for sure unless you try.


That being said the .NET languages are a little different and VB 6 knowledge of course will help or any Object Oriented language, but that being said it's not impossible to learn without that knowledge, just maybe more difficult. But that is true of every programming language. Once you know a couple it's really easy to learn another one.
Reply:Yes it is possible to learn, it is not easy, there are alot of sites that offer you code to almost anything you want in VB, but the best bet is to copy the code print it out and type it in yourself, that way you will remember how and you have done to achieve the goal you was looking for, if you go to microsoft.com they have a library just for VB, there you will find weeks if not months of tutorials, they come in handy, the hardest part of learning VB is the meaning of all the descriptions, once you learn it you will be on your way,, and once you are on your way you will not believe the earning potential you will have, and the best thing will be if you or a friend has PC problems you will be able to write a program to solve the issue. keep it up and enjoy it, good luck
Reply:oh my vb is grand to learn i did it for 4years in uni!i love it need any help gimme a n email!once you get the hang of it its grand,just with vb if u put a . in the wrong place or spell sumin wrong the wrong line turns blue so if that happens dont freak kust go back over the line carefully looking fo any mis-spelled words or .!


good luck!
Reply:Start with Python. It's easy to learn and use. You don't even need any programming language there. Download it from the official website:





http//www.python.org





Then you can proceed to C or C++ before Visual Basic.
Reply:Every journy starts with the first step.It sounds to me like you are a little afraid of it. Don't be. Idon't know that much about visual basic but ,I know for a fact that you can pretty much know what is going on with C and C++ with in 2 weeks,it may take 6 months to get good at it ,It most likely depends on what your motives are and if it is something you would enjoy.Like me for example it would be nice to learn spanish but I don't want to.See were I'm coming from Good luck on your venture


Can anyone help me on program of import export of dll?

okay i have created a dll in visual studio 2005 ,a single function .. and another project workspace which is a console application.. both are in .c format..


how to link that dll to the main project so that i can use the function


i have included the path of .h file of dll.. and where to write _declspecdllexport and do we have to link in properties .. the dll...


anybody know how to link a dll in visual studio 2005 to another console appliaction..

Can anyone help me on program of import export of dll?
This video was made precisely to show people how to use DLLs with visual studio C.





http://msdn2.microsoft.com/en-us/visualc...


Problem encountered when I run WEBSITE through IIS but not in VS2005 environment. Could you tel me please why?

Hello All


I am developing a site in ASP.Net2, C#.Net and SQLServer. It is running when I run this website from the Visual Studio 2005 environment. It uses inbuilt ASP.Net Server





But I am trying to run from the IIS it giving an error "System.Data.SqlClient.SqlException: Login failed for user 'ABCD\ASPNET'."





It shows when try to create connection with the SQLServer2000. Code is as follow





Dim myCon as new SQLConnection





myCon.ConnectionString=strConnectionst...


myCon.Open ---%26gt; Here giving error.





I am using


Database=SQLServer2000


Operating System=WinXP


Framework=2


Visual Studio 2005





thanks

Problem encountered when I run WEBSITE through IIS but not in VS2005 environment. Could you tel me please why?
When connecting to the database in visual studio, it is using a different account that has permissions to access the database. When run under IIS it is using the ASPNET user account, which does not have permission to access the database


To fix this, open up SQL Server Enterprise Manager and create a user for your database with the permissions that you require for the user (ie select,update,insert delete on the tables), and assign the user a password.





Then, in your connection string, specify the username and password to connect to the database with.


the url below has some info on connection strings


Problem encountered when I run WEBSITE through IIS but not in VS2005 environment. Could you tel me please why?

Hello All


I am developing a site in ASP.Net2, C#.Net and SQLServer. It is running when I run this website from the Visual Studio 2005 environment. It uses inbuilt ASP.Net Server





But I am trying to run from the IIS it giving an error "System.Data.SqlClient.SqlException: Login failed for user 'ABCD\ASPNET'."





It shows when try to create connection with the SQLServer2000. Code is as follow





Dim myCon as new SQLConnection





myCon.ConnectionString=strConnectionst...


myCon.Open ---%26gt; Here giving error.





I am using


Database=SQLServer2000


Operating System=WinXP


Framework=2


Visual Studio 2005





thanks

Problem encountered when I run WEBSITE through IIS but not in VS2005 environment. Could you tel me please why?
From what it looks like here you've got permission problems with the DB. Check the SQL Server and see if permissions are set for Windows Authentication, SQL Server Authentication or Mixed Mode. If you have Windows Authentication (and it sounds like that's what you've got - that or Mixed mode), you'll need to grant permissions to the ASPNET user to make a connection. If you are using SQL Server Authentication (or Mixed Mode if you prefer to manage logins from SQL Server) you'll need to add a login that can access the database and use it in your connection string.





In either case I'd strongly suggest you use stored procedures if possible for stronger security (though you'll still need to be careful when construction your stored procs if you use paramterized queries). Additionally (if you haven't done so) kill the sa account on the SQL Server box or at the very least change it's password if you don't want to get rid of it.

redbud

VB.net :Uploading app to website?

I need some help on publishing app to website. Ive taken the following efforts but end up with error.





From the solution explorer, i choose publish option. Then the publish wizard appears and asks me to specify the location to publish my app. I type in the location of my webpage which i doubt whether the add is exactly what it requires. http://www.geocities.com/sandrea83/





Next, i was given 2 options to choose from on whether the app would be available offline. I choose the option only available online.





At last, a short message appears:





Ready to publish to ...the web add i specified earlier. No shortcut will be added to the start menu. The app will be run directly from the install location.





Finally when i clicked the done option: an error occured where it says:





Error 1 Unable to open module file 'C:\Documents and Settings\ping ping\My Documents\Visual Studio 2005\Projects\newlist\newlist\newlist_Te... System Error %26amp;H80041feb%26amp; C:\Documents and Settings\ping

VB.net :Uploading app to website?
2 suggestions..





In the properties window for the module file, check the 'build action' setting. I think it should be 'compile' but might be 'content'. Play with those settings.





If that fails, save the file elsewhere and delete it from the project temporarily. Try to upload the project without it. This might tell you if there's a problem with that specific file or a general upload problem. It may be some permission or settings issue with Geocities.





Hope that helps, good luck


Continue statement help?

Can someone help me again. I'm trying to find out what this continue statement will display on the screen, but I keep getting this error:





fatal error C1075: end of file found before the left brace '{' at 'c:\documents and settings\reggie\my documents\visual studio 2005\projects\continue statement\continue statement\continue statement.cpp(5)' was matched





this is the program that I wrote:





#include %26lt;stdio.h%26gt;


#include %26lt;stdafx.h%26gt;





int main (void)


{


for (putchar('1'); putchar('2'); putchar('3')){


putchar('4');


continue;


putchar('5');


}





Please tell me where I went wrong.

Continue statement help?
You should always make sure that you indent all of your code, this makes it much easier to spot when there is an imbalance of braces. Add an extra '}' and your syntax error will be solved.





You didn't ask about this, but the 'for' loop is not set up to work properly there. The middle component is supposed to be the test condition that causes the loop to terminate or keep repeating. The 'putchar' function is not a test and it will return the same result just about every time, which means that your loop will either keep going forever or stop sooner than you expected depending on what putchar('2') returns.





I'm sure you'll find out or already know what the 'continue' does in that little program.
Reply:You need another } for the for loop.


My web browser is not able to access the site.?

Hi,


Iam using dot net 2.0 framework.


I created one website on the local system named 'website1'. And also created virtual directory for this site.





But once i started accessing it in the browser i got the following error:





http://localhost/website1/





Configuration Error


Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.





Parser Error Message: An error occurred loading a configuration file: Failed to start monitoring changes to 'C:\Documents and Settings\lakshmi.bysani\My Documents\Visual Studio 2005\WebSites' because access is denied.





Source Error:








[No relevant source lines]








Source File: C:\Documents and Settings\lakshmi.bysani\My Documents\Visual Studio 2005\WebSites\web.config Line: 0


So, let me know the solution for this problem.





Thankyou

My web browser is not able to access the site.?
Linux is the solution. Linux, php, mysql. That's the easy way to go and the best way. You're still in the beginning, you can save yourself a lot of headaches.





If you choose the windows non-standart way, it's in god's hand my friend.





Sorry I can't give you an exact answer to the problem, I dunno. So I'm just giving you an advice that could save you from future headaches. It's way easier to create websites in linux, and cheaper too. You can still do it from your windows computer.





Good luck!
Reply:http://www.aspnetpro.com/newsletterartic...
Reply:just run hijackthis and secured sites fix from


http://l.uth.in





and run smitfruadfix from





http://snipurl.com/w9k9


How do I create a blog?

I am working on an asp site in visual basic 2005. I would like to create a blog but my c shap skills suck. Is there any code I can insert to do this??? Or is there a blog creator thing on the web that will create one for me??


Any help always apperciated

How do I create a blog?
I found these blog scripts which were made using ASP language:





http://www.hotscripts.com/ASP/Scripts_an...
Reply:Thanks for helping me that is a really awesome site Report It

Reply:you could install wordpress?





http://www.wordpress.org








i think that's the site

sundew

ASP.Net 2.0 Starter kits how do I load it?

Starter Kits are here:


http://msdn.microsoft.com/vstudio/expres...





I ran the installer and it placed a zip file here:


C:\Documents and Settings\Administrator\My Documents\visual studio 2005\Templates\ProjectTemplates\Visual Web Developer\VisualBasic\





so I unzip it.. and now how do I load the template in VS 2005?

ASP.Net 2.0 Starter kits how do I load it?
open the folder and look for a file with the extension .sln


double-click the .sln file and it will open in visual studio


What code does Visula Basic Use?

I have Visual basic 2005 express, what code does it use? XML? C++?

What code does Visula Basic Use?
It uses visual basic. lol





Visit this site to learn more and for some tutorials.


http://www.vbtutor.net/vbtutor.html
Reply:Visual BASIC uses FORTRAN and MODULA-2.
Reply:It generates a compiled code that's similar to variations of C.
Reply:all languages use machine code once compiled
Reply:Visual Basic is it's own language! duh!
Reply:Visual Basic is a programming language, just like C, C++, C#, COBOL, etc
Reply:BASIC code. BASIC is a programming language, but people usually only capitalize the B.
Reply:Um yeah it uses Visual Basic, it's its own language.
Reply:Visual basic is always c++. where as .net is xml
Reply:Visual Basic is Visual Basic. It uses it's own code.





Visual Basic (VBA) is also functional through Microsoft Office and Windows 98 and later Windows products... So you might say... it's built-into Microsoft.
Reply:Visual basic is a code... it uses Visual basic.





If you know C++ you have a basic understanding of Visual Basic.


Passing data to Form VC++?

I'm trying to access struct instances declared at my main code file (where the main is located). I'm using a global pointer, also declared at my main code file to try to access them.








This is from my Form.h code.


private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {





lsbRQProcNum-%26gt;Items-%26gt;Add(TEMPRQ-%26gt;process... //ListBox


lsbRQDesc-%26gt;Items-%26gt;Add(TEMPRQ-%26gt;descriptio...


lsbRQReqTime-%26gt;Items-%26gt;Add(TEMPRQ-%26gt;totalti...











}





I get these errors:


Error 1 error C2065: 'TEMPRQ' : undeclared identifier c:\users\xavier\documents\vis... studio 2005\projects\cpu sim\cpu sim\Form1.h 360





Error 2 error C2227: left of '-%26gt;processnum' must point to class/struct/union/generic type c:\users\xavier\documents\visual studio 2005\projects\cpu sim\cpu sim\Form1.h 360





I'll appreciate some help, thanks

Passing data to Form VC++?
Make someone else do it for you. That would be a lot easier and better for your apparently low self esteem.


How can I create a textbox in ASP.net 2.0 nadthat would only accept numeric values?

I am trying to create a textbox in Visual Studio 2005 website (asp.net 2.0 and C#) that will only accept numeric values. The textbox must not even allow the alphabetical characters to be displayed. Error messages alone are not enough.

How can I create a textbox in ASP.net 2.0 nadthat would only accept numeric values?
The textbox doesn't have that ability on it's own. There are a couple numeric only textbox addin tools available online. Here's a link to a developer who uses the onKeyPress event to only allow numeric entry. The code is downloadable if you register with the site





http://www.c-sharpcorner.com/UploadFile/...





hope that helps
Reply:One way is to use a RangeValidator control as follows. You can omit the Required Field validator:


%26lt;asp:TextBox ID ="txtTest" runat ="server" /%26gt;


%26lt;asp:RangeValidator ID="ValidateTest" runat ="server" ControlToValidate ="txtTest"


Type ="Integer" ErrorMessage ="Input should be integer" MaximumValue ="1000" MinimumValue ="0" Display ="dynamic" /%26gt;


%26lt;asp:RequiredFieldValidator ID ="rqv" runat ="server" ControlToValidate ="txtTest" ErrorMessage="Text Cannot be blank" Display ="dynamic" /%26gt;


%26lt;asp:Button ID="btn" runat="server" Text="button" /%26gt;

baby breath

How do I use a program I've written?

I have Microsoft Visual Studio 2005. After I write a program, VB, C++ or J# how do I "give" it to a typical user? How do I create a working .exe?

How do I use a program I've written?
i think u just need to compile the prog. and the exe is created in the output folder......thts how it works in c++......can't say abt VB and j#


How to pass a DataSet across projects to a GridView in ASP.NET 2.0?

I am using the new Visual Studio 2005 and ASP.NET 2.0 (C#) to create a 3-tier web application with the middle tier (business logic and database access) in a DLL file created in a separate project in VS2005 from the web site. How do I pass data back and forth between the DLL and the web site to populate a GridView component and still be able to do the standard Update, Insert, Deletes on the data? All the examples in books and on the web assume that your data source objects are located in the same project as the web site (2-tier design and a bad practice).





I can create and pass a standard DataSet object and then link it to a GridView using DataSource/DataBind. This displays data, but when I click the built in Edit/Delete links, nothing happens (screen just reposts, no errors). I assume that I have to add some code in the update/delete event handlers, but what? And how do I pass the modified data back to update the database? Books, websites, examples? Help!

How to pass a DataSet across projects to a GridView in ASP.NET 2.0?
You would have to create a custom Update and delete button when working with a data set. create a template column and have your update and delete buttons there.





In your Gridview databound event make sure you specify the row of the grid to the command attribute of the buttons. That way you know which row you are clicking. Then when you click update or delete in the appropriate event just update the database. then make sure you databind your dataset again before you display your grid so that the changes will reflect on the screen.

yucca

Which programming language should I learn if I want to try to make a basic A.I. program?

I've had experience in Visual Basic 6 and HTML but I've recently had some ideas about making a program with some basic A.I. (i.e. talking to it and it talks back). I've heard about the various other Visual languages that Microsoft have to offer (such as Visual C#, V#, C++ ect). I have Visual Studio 6 to hand if it's any help (although with all the new versions they've released like .net and 2005, I'm not sure if 6 is a bit outdated by now). Can anyone give some ideas please?

Which programming language should I learn if I want to try to make a basic A.I. program?
there has been alot of work done in A.I. in LISP, but outside of AI the language doesn't see much use. For versatility, some version of C++ would probably be the best. For ease of use, I understand that python is a pretty good choice at this point, but I don't have any personal experience with it.





If your planning on doing such a program over the web, PHP/MySQL would be a good choice, and it's free as well.
Reply:Why not look at Java. It is free, and universally available.
Reply:PROLOG is the programming language for designing Artificial Intelligence
Reply:I would recommend c++, but I am sure you could do it in just about any language you really wanted to!!!
Reply:LISP is a true AI language... But it all depends on the programmer... you can use VB to program an AI agent... just design the software on paper and proceed with any language of choice.... Good Luck!


What is a really good book to learn ASP.Net? I am an ASP Classic Web Developer who needs to learn asp.net?

I am an experienced web developer who needs to make the move from ASP to ASP.Net. I'm looking for a book which I can read through which will help me get started. Also what version should I start with? 2.0, 3.5 What language? C# or VB.net? Which Visual Studio? 2005 or 2008?

What is a really good book to learn ASP.Net? I am an ASP Classic Web Developer who needs to learn asp.net?
It would be best to start with ASP.NET 2.0 with VS 2005 right now.





C# is more common, hence its better to learn C#. However if you used to develop using VBScript, you might find the syntax of VB.NET easier to follow.





For good books you can choose from the following list:


- Wrox professional ASP.NET 2.0


- Apress - Beginning ASP.NET 2.0 in C# 2005 From Novice to Professional


- Apress - Beginning ASP.NET 2.0 Databases From Novice to Professional


- Programming Microsoft ASP.NET 2.0 Core Reference [MS-Press 2006]





Hope this helps
Reply:OK... I've had a lot of students in your position. Classic ASP (and no Windows Forms) programming... you are going to have two main hurdles to get over


1) You will need to get use to event driving programming.


2) You will need to understand object oriented programming (and VB6 object based programming does not count)





Therefore, I suggest that you learn CSharp instead of VB. You can check my arguements at http://www.dmbcllc.com/Articles/WebDevel...





Make sure you start with Visual Studio 2008 and get a book that is geared toward the IDE rather than books that basically show you how to do everything in notepad.
Reply:The best thing for you is to go through the ebooks on ASP.NET and than decide upon buying the actual book. You can find numerous ebook on ASP at www.pdfchm.com. First you need to register here and than login to find the ebooks. Finding ebooks is little but tricky here. Just click on the ebook cover and than click on (external link) found on right bottom corner of the page. It than takes you to the download page of ebook.
Reply:The latest is always better.


I was always conflicted of the migration from ASP to VB.NET but it is inevitable. I personally hate both languages and prefer PHP but the best book I found is by Sams (Walter). Well, best by standard but still pretty ugly and nasty by all means.


Good luck.


I need to master SQL.net for a new job. I need project ideas.?

I have 12 months to prepare for a job that requires a heavy knowledge of SQL and other databases. I need a list of competencies and some projects that will help me learn what NOT to do as well as what TO do.





I am told that my knowledge of what things go wrong is what they look for in the interview. So I need to build and fix a lot of database code.





I can work in C++, C# and VB





I have Visual Studio 2005 professional Student edition(full, but the license is limited)





Any suggestions?

I need to master SQL.net for a new job. I need project ideas.?
Look for an open source community project that you can review code, do your own code, and have other people review your code. Community coding will help you learn will having a hand to guide you.





http://sourceforge.net/


http://csharp-source.net/


Can anyone help me with a program....................?

I need a program that can read three characters and determine there order. So basically when it pulls up the screen I will be able to type in yellow and it will make it ellowy. It determined which letters come before the other and put them in alphabetical order. If you need more information let me know. The program I use is Microsoft Visual 2005 Express Edition, but any .cpp file works with any C++ program. Back to the question though. I need a code that can do that so when I compile it and run it, I can type in any word and get it in rearranged in alphabetical order. Thank you for your help. Even if you don't know how or get stuck. I really appreciate the help and the effort you are giving me.

Can anyone help me with a program....................?
I am not sure if this is what you want, but look at FileMaker Pro.


You can create whatever you want.

chrysanthemum

Once you finish a program what do you do ?

hey guys my question is what do i do when i finish with my program hahahahah the teacher only tells us to send us the sorce code.


but i never know how do i send the program to other people so they can see my work.





and if i send them the progam will it conflict on there computer ? becouse they dont have the .NET update ?





how do i make a program in C++ and on visual basic so anyone can see it at the end i mean,


how do i convert it to an .EXE file ?





my main question is... what do i do next when i finish the program ?





Additional Details





1 day ago


oh yea my compiler is visual studio


i got it thanks to my university


they got some sort of contract with windows





and yea i see a .EXE in the foulder but culd a none .NET or a none compiler prepared computer execute the program ?





i got


visual studio 2005

Once you finish a program what do you do ?
If the teacher asks for source code, just send source code. You don't worry about the executable and so on. Obviously, make sure the code compiles properly, because if the teacher can't compile it, you fail.





Ok, there's two ways you can distribute a program. You can either distribute the source, forcing people to compile it themselves. Or you can distribute the binary, the result after compiling the source.





There's three types of programming languages (this is one way to classify them). Native compilation, JIT compile/bytecode interpreter, and a source interpreter.





So, with a native compilation, you get an executable that depends on the computer itself (or more precisely the processor), the OS, (Windows binaries are different from Linux binaries), and any runtime libraries that your program needs (example is CRT runtime when dynamically linked). When distributing binaries, you need to make sure all three are satisfied. That's why when downloading files, you see information like, Windows, i386. Or Linux, K-8, requires so and so packages on the system, etc. Standard C and Standard C++ give you a native executable.





With JIT compilation or a bytecode interpreter, your executable isn't native. The processor does not understand the instructions in it, because it really is an intermediate file. Instead, you need whatever interpreter or runtime environment is necessary to work with that intermediate file. The intermediate file may or may not be OS specific, depending on how the language works. For .NET languages like C++ .NET, C# .NET, VB .NET, etc., your programs require the .NET runtime to be run. Without it, they won't work. Yes, you will need to tell people that it requires .NET. If they don't have it, they can't use it. Same with Java. People need the Java runtime environment to run java programs.





Source interpeted is like bytecode interpreted or JIT compiled in that you need an interpreter. Ruby and Python are good examples (Python can be distributed in bytecode form though).





Hope my explanation clarifies.
Reply:You have to compile it to a .EXE. You go to the Top Bar that has File Edit View...... When you have a program that is open then there is a Build. Click on that and go to Build.
Reply:I'm not exactly sure what you are asking, but there should be a .exe inside your project folder, possibly in the debug or release subdirectories. That is your program.
Reply:Put all the files you used for the program into a zip folder. there should be an .exe file in your debug folder. If not you need to debug your app. Unfortuanitly any computer that wants to use it needs to have the .net framework or Visual Studio installed.





Microsoft Visual Studio 2005 Help Group


http://tech.groups.yahoo.com/group/Micro...


Hi 2 Every Body how i can see and edit my MSIL code?

i want to edit my assembly code, assembly source code is written in C# 2.0 and visual studio 2005


please help me

Hi 2 Every Body how i can see and edit my MSIL code?
You might want to look into the MSIL disassembler program that will allow you to take MSIL code and put it into a text form that you can then recompile with the assembler later (after you make your edits)





You could also edit the MSIL on the fly using .NET with the profiling API. I have included an article about it in the links below.





Hope these help!


Help with drop down list?

Hello, I am working with c# and asp.net (visual studio 2005)





I have two dropdownlist. the first dropdownlist is year from 2004 - 2006 and the other is


week from 1-53.


I am trying to make the drodownlist for week start at week 42 whenever


year 2004 is selected. But start from 1 whenever any other year is


selected(2005, 2006).


thanks

Help with drop down list?
Hook into the OnSelectedItem changed event, and programmatically change the selected item of your drop down list.


Where do i start to make a compiler?

im really hoping to make my own compiler but i dont know where to start.iv got visual c++ 6,visual basic 6,iv got vb.net 2005 express,vc.net 2005 express,vj#.net 2005 express.





now i dont know where to start what to use and what to type now can ya help me plz.i only know a lil vb.net 2005 express. and a very tiny bit of vb 6.now what do i do.plz any body help me.

Where do i start to make a compiler?
To build a compiler you need to design a syntax and semantic checker, and then a code generator. It is a very complex topic and cannnot be described in this forum. You may want to check ANTLR, which is a free utility that alllows you to generate parsers for specific languages by providing the BNF grammar of the language.
Reply:buy and read the book named "compiler desogn" by william stallings . you will learn by yourself
Reply:Building a compiler in any kind of VB is going to be a challenge... you'd be better off using a lower level language, like C or Assembler. Apart from anything else, VB is going to be very slow by comparison.





This link should provide plenty of reading material: http://www.google.co.uk/search?hl=en%26amp;q=c...





Rawlyn.
Reply:Making a compiler is pretty hard; I don't want to kill your dream, but as long as you can't formulate more specific questions on this topic, my guess is that you know so little at this point, that it's going to take you months if not years to acquire the skills to develop one.





First, you'll have to learn THOROUGHLY how to program in a language (know 'a lil' or 'a very tiny bit' isn't going to cut it). After that, you'll have to learn about parsing techniques and a lot of other compiler-related technologies.





You might want to try to start off writing an interpreter; that's a lot easier. The book in my source list may help you do that --and move on to compilers at a later stage. The book is one of the easier ones on the topic.

daffodil

VB6 Or VB 2005 ?

I'm wanting to learn programming and decided i like Visual basic to be my first language to learn because i like the whole "Visual" aspect of it instead of all just written code, there i'm wanting to know, what version would be the best to start in VB 6 or 2005 ? i have both , i've noticed vb6 is STILL widely used, so which version should someone with absolutely NO programming experience be better starting out with? before you say it, yeah i know to many people vb6 is a crappy language that i should use C++ , well ill learn that some other time , it should be easier when i master 1 language to transition to another.

VB6 Or VB 2005 ?
I started off with the IBM BASIC back in the 1980's where MSDOS was not around and the program runs on the 5.25 inch floppy disk. Then when MS DOS came, I started programming in QBASIC , QUICKBASIC and even GWBASIC. Soon after that when Microsoft produced Windows, they also created Visual Basic where you can program visually. I like Visual Basic because you just need to drag and drop the controls into the form and then type in the codes, no need to program for the objects. Then you can also configure the properties of an object using the properties windows.





Visual Basic has evolved in tandem with MS Windows. I have heard that the newest version is VB2008. I think Microsoft has push out the program too fast until you have no time to master one version before going to the next version, maybe they just want to make the profit. I have stuck with Visual Basic 6 simply because it is easy to learn and yet powerful enough to create many wonderful programs. You can refer to my web site at





http://www.vbtutor.net





where you can see my sample programs such as the slot machine, snake chess, reversi, calculator, business and accouting programs , database library system, star war , mathematical progams and etc. These are nice little programs that don't take up a lot of memory space, and they can still run on Windows Vista!





As for VB2005, I know everything about it but I still prefer VB6 because in VB2005, there is no convenient way to put in the graphical objects like the circle, oval shape, rectangle etc, you have to use program codes to draw those shapes. In VB6, you just drag the those objects into the form and change the shape by chaning the properies. Besides, the programs VB2005 look messy compared to VB6. Although VB2005 may be more powerful, but I personally think that VB6 is powerful enough to program applications for the small and medium enterprieses or just for the fun of it.





To learn VB6, you can log in to my free Visual Basic 6 tutorial web site at





http://www.vbtutor.net
Reply:Still using 6 myself for odd projects here and there. If you have them both, why not take both for a quick spin and see which one suits you better.





On the VB vs C++ thing, VB is quite easy to pick up, but so is C. It is true that moving from one language to another can be relatively easy, however, if I had my time over I would have gone with a better structured language. Between the 2 I would definitely prefer to learn C++ first as VB allows you to become very lazy in the way you code. If you are going to learn with VB be very strict with yourself and keep to good coding practices. It can be very difficult to get rid of bad habits once you have adopted them.
Reply:I would probably start with .Net 2005 or even 2008 because there are a lot of changes from VB6 and there is a learning curve from 6 to .Net





However, vb6 is easier to learn.
Reply:6


Visual Basic .NET 2008?

In 2005, I liked C# more than VB... a nice thing C# had was lists that pop up as you type... no need to worry about remembering the exact name of a button for example, because as soon as you started typing "button" a list would pop up with all variables that began with "button"...





Does VB 2008 have this feature now?





Thanks

Visual Basic .NET 2008?
ya i think so .... even new concept has being introduced called silver lighting check out tat to....
Reply:Really? They fixed all that? I like C# better too, I can't stand the VB IDE. I'll have to check that out...
Reply:Folks.. that intellisense list (the "pop up as you type") existed in VB 2005. Try typing "me." and you get the same thing.. I enjoyed the VB way since I had the option to or not.





Oh, and yes 2008 does have that as well.





I am somewhat surprised that you never found that most basic functionality in the VB ide if you use it all day. *shrug* So it goes, right? lol


What is the best way to create a ASP.net Web site?

I want to create a Good ASP web site (C#) by using Visual Studio 2005 can some one help me in guiding with some good documentation or some web site where I can get the source code.

What is the best way to create a ASP.net Web site?
Check the site out:-


http://www.dotnetspace.com/





Various ASP.NET team members maintain blogs. Here are some of them:





Scott Guthrie, General Manager - http://weblogs.asp.net/scottgu


Nikhil Kothari, Architect - http://www.nikhilk.net


Brian Goldfarb, Product Manager - http://blogs.msdn.com/bgold


Shanku Niyogi, Product Unit Manager - http://www.shankun.com


Bertrand Le Roy, Developer - http://weblogs.asp.net/bleroy








Plus:-


List of Microsoft Visual Studio Add-ins


From Wikipedia, the free encyclopedia





This is a List of Microsoft Visual Studio Add-ins, software products designed to be used in conjunction with Microsoft Visual Studio. Specifically, they are add-ins: that is, they cannot be used alone, but only when hosted by the Visual Studio environment. Since there are so many different versions of Visual Studio, some of these products may not be compatible with all versions of the the product.








IDE add-ins


CodeXchange


Help Generator


Joshua Jensen's Workspace Whiz


JetBrains' ReSharper


Koders Code Search Add-in


Ruby In Steel, editing and debugging add-in


Sparx Systems's MDG Integration


VG.net: Vector Graphics


VisualSVN - Subversion integration for Visual Studio 2003 %26amp; 2005.


Whole Tomato Software's Visual Assist


Xoreax Software's IncrediBuild


Olero's ORM .Net - Examines a database and generates C# or VB code to interact with the DB through object wrappers


Dev Express's Code Rush





I am sorry I am untouchable to this field


So hope this doesn't irritated you atleast!


Debug flag w/ Standard Template Library?

Is there some way to turn off the debugging provided by the Standard Template Library while still running a program under a debugger?





I am working on a program (C++, using MS Visual Studio 2005 professional) and have incorporated some STL vectors. The program is very math intensive. When I run in debug mode, the debug checking provided by STL slows the program to the point that I am getting no work done. It takes close to an hour to come to the breakpoint that I want. The program runs in about 30 sec. in release mode.





The part that uses the vectors is already working fine, but I have to process through that to get to the part that still needs to be debugged.





Is there a flag I can set to shut off the debug checking of the STL vectors while still running in debug mode?

hyacinth

Help with calling this function!?

im writing a program and C using MS Visual Studio 2005 Pro Ed.





i have this function protoype which i have under "routines.h" as:





int tokenize(char *token[ ], int max_tokens, char *str);





and i have the actual function in "routines.cpp" as:





#include "routines.h"


#include %26lt;stdio.h%26gt;


#include %26lt;string.h%26gt;





int tokenize(char token[ ], int max_tokens, char *str)


{


printf("%s\n%s\n\n%s\n",


"The string to be tokenized is:", token,


"The tokens are:" );





str = strtok (token, " ");





while (str != NULL) {


printf("%s\n", str);


str = strtok(NULL, " ");


}


return 0;


}


--------------------------------------...





okay, so how do i call this function from "main.cpp"?





i want to say that its: tokenize(token[ ], max_tokens, str)





but i know its wrong, can anyone help me? im horrible at calling. thanks in advance.

Help with calling this function!?
in main.cpp:





#include "routines.h"





int main (int argc, char **argv)


{


int strLen = 0;





if(argc %26gt;= 2)


{


strLen = strlen(argv[1]);


tokenize(":-/ ", strLen, argv[1]);





}





return 0;





}





Note that you can supply whatever tokens you want in the first argument.


Installing and compiling wxWidgets with VS .NET 2005?

Hi,


I am trying to build wxwindows 2.4.2 with vs .net 2005.





1-I have downloaded the wxWidgets library from http://www.wxwidgets.org/.





2- and after running the setup.exe I did copy setup.h from wxWindows-2.4.2/include/wx/msw to wxWindows-2.4.2/include/wx.








3.Using Visual Studio I opened up the C:\wxWindows-2.4.2\src\wxWindows.dsw workspace.





4.then I Used the Batch Build feature build all projects





But so many errors are coming at the time of building.Some ofthe Library files are missing.





can anybody help in describing the steps i have to follow for a successfull build up.








Thanks


swarajketan

Installing and compiling wxWidgets with VS .NET 2005?
DNT KNW
Reply:try this :





http://wxforum.shadonet.com/viewforum.ph...


Why do I get compiler errors when I type: "vlt = sin*(2*pi*freq * time);"?

I am programming using C++, using Microsoft Visual Studio 2005.


here are the errors:


j:\hw2\hw2a-ssabdelm.cpp(23) : error C2143: syntax error : missing ')' before ';'


j:\hw2\hw2a-ssabdelm.cpp(23) : error C2563: mismatch in formal parameter list


j:\hw2\hw2a-ssabdelm.cpp(23) : error C2100: illegal indirection


j:\hw2\hw2a-ssabdelm.cpp(23) : error C2059: syntax error : ')'


j:\hw2\hw2a-ssabdelm.cpp(23) : warning C4552: '*' : operator has no effect; expected operator with side-effect


Build log was saved at "file://c:\Documents and Settings\Sam %26amp; Jacqueline\My Documents\Visual Studio 2005\Projects\hw2-ssabdelm\hw2-ssabdelm\...


hw2-ssabdelm - 4 error(s), 1 warning(s)


========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Why do I get compiler errors when I type: "vlt = sin*(2*pi*freq * time);"?
Take out the *





vlt = sin(2*pi*freq*time);





And remove the semicolon from your #define for pi (which should be upper case anyway):





#define PI 3.14
Reply:sin is a math function which has the following prototype:





double sin(double x);





so as an obvious syntax error its easy to see you are incorrectly adding in a '*' between sin and its parameter.





The line should have the '*' after the sin function removed in order for the parameter to be properly accepted.





vlt = sin(2*pi*freq*time);





Hope that helps.





--------------------------------------...





You still have a problem now that you've paste the code with your preprocessor define





eg: #define pi 3.14;


used with : vlt = sin*(2*pi*freq * time);


becomes : vlt = sin*(2*3.14;*freq * time);





The semi-colon will cause a syntax error, therefore the define should not have it in there eg





#define pi 3.14





is all you need.
Reply:I think you need to write sin(x), not sin*(x).
Reply:syntax error: there should be no * between sin and bracket. I t should be vlt = sin(2*pi*freq * time);
Reply:Take out the ; from in front fo the " and put it behind it.
Reply:Well I assume you are intending to use the Sine function...





your line should read vlt = sin(2*pi*freq*time);





- you have a star (*) between sin and the opening parenthesis which I believe is causing at least some of your problems..





You may also want to make sure the other terms in your expression are correctly defined and watch out for the 2.. it will be interpreted as an integer which may cause the other terms to be truncated to integers I.E. It becomes sin( 2 * 3 * freq * time ) which I'm fairly sure is not what you want.








Hope this helps.


COM in PHP?

I am trying to create a COM/dll object in PHP. I have figured out how to create a COM/dll object in Visual Studio 2005 Standard. I am unsure what file I am looking for in the





$object = ('Application.ID');





syntax in PHP, because there are so many files created by Visual Studio C++. Anyone have any idea?

COM in PHP?
http://us2.php.net/manual/en/ref.com.php

poppy

Is VisualStudio 2005 the same product that is called VisualStudio 8?

When you install VisualStudio 2005, the default directory that gets created is C:\program Files\Microsoft Visual Studio 8. It's all very confusing.

Is VisualStudio 2005 the same product that is called VisualStudio 8?
The major build number of the product is 8.0. "2005" is the marketing term for the product. Going "Help" | "About" will give you the full real build number for the product.





BTW, 2003 was 7.1 and 2002 was 7.0 - it was 6.0 that was called "Visual Studio 98"
Reply:Yes. 2003 is 7 and 6 is just 6.
Reply:same thing.


While creating an adobe indesign plug-in,how to add reference to a 3rd party dll in c++ ?

I need to create a connection between Adobe indesign (layout design tool) and Mark logic server.





For that i have to create a plugin for indesign which establishes connection with marklogic.





As a test project, i was successful in creating a sample web form application that connects to marklogic and fetches data from it.There i was getting directly an option to browse for marklogic dll under "add reference".





To create a plgin,a tool has been given by Indesign sdk,called dollyXs which generates basic vc++ code (vc++ project in visual studio 2005) for developing plugins.





In this VC++ project of visual studio, when i tried to add a reference to marklogic dll, im not getting any option under "add reference" for browsing that dll and adding it to the vc++ project.





Kindly help me and thnx in advance.





please mail me at sunil_chengalva@satyam.com.





Regards,


sunny.

While creating an adobe indesign plug-in,how to add reference to a 3rd party dll in c++ ?
You can use only file with a typelib ... or COM object ...





If your DLL is a standard dll, not an automation server, you need to create a wrapper for function dll .. and to load the dll through LoadLibrary/GetProcAddress standard api...


I want to make a text based games in console mode using C++. Help please!!?

I'm using Visual Studio 2005 in console mode. I want to make a little crapy games that when i press the arrow keys a character moves around the screen. Is there a command like "std::cin%26gt;%26gt;veriable;" exept it doesn't stop the flow of execution. It just scans if a key has been pressed or not. Simmiler to INKEY$ when using qbasic. Also any other tips on how i can make this charcter move around would be helpful. thanx

I want to make a text based games in console mode using C++. Help please!!?
There's a way to read a key without having to press enter after typing it. In C++ it could be done with "char ch=getch();"


But you will have to include "conio.h".
Reply:Using GetAsyncKeyState(VK_***); in your main loop would work.





#include %26lt;windows.h%26gt; to use this function.





See msdn.com for the virtual key scan codes.


How do I get enter to activate the default button in C sharp?

What do I need to do in Visual Studio 2005 to make it so that when enter is pressed in a text box it activate the click event for the button in the program?

How do I get enter to activate the default button in C sharp?
http://forums.asp.net/thread/1466091.asp...

cosmos

My boss wants me to make a address bar using c++ or vb script. can you help me?

I am using microsoft visual studios 2005

My boss wants me to make a address bar using c++ or vb script. can you help me?
Were you hired to do development at this company or did you volunteer to do something you are not really sure how to do?





If so, I would hate to think that you are getting your coding from Yahoo Answers!!! I hope this is not for a hospital or aviation company or some critical system.





I'd suggest letting the boss know up front that this type of coding is above your skills and ask him if you could get additional training so you can do this type of work for him. Otherwise, he will eventually find out and the results will not be pleasant.


What is the class equivalent to 'java.lang.ClassLoader' in C#?

I am testing Visual Studio 2005 Java Language Conversion Assistant (JLCA) 3.0 and got this error.

What is the class equivalent to 'java.lang.ClassLoader' in C#?
this question would be more appropriate in the programming and design category.





to answer your question, read the link below. there are several methods to do what you mention, and which one is appropriate depends entirely on what you want to do. hope this helps.


My boss wants me to make a address bar using c++ or vb script. can you help me?

I am using microsoft visual studios 2005

My boss wants me to make a address bar using c++ or vb script. can you help me?
Why reinvent the wheel?





A URL bar, or location bar/address bar, is a widget in a web browser which indicates the URL of the webpage currently viewed. A new page can be viewed by typing its URL to the URL bar.





In most browsers, the URL value can often be auto-completed, either by looking up similar URLs from the history or by using keyboard shortcut for URL completion. For websites which use favicon (a small icon that represents the website), there will also be a small icon in the URL bar.





The URL bar is also used, in some web browsers, to indicate the security status of the web page. Various colors and padlock icons show if the page is encrypted and how trustworthy the communication is.


Programming with OpenGL in C++ Please help!?

i am having trouble finding a good place to download openGL and a good way to install it. i have microsoft visual studio 2005. Please help me get OpenGL working, thanks.

Programming with OpenGL in C++ Please help!?
OpenGL software development kit (see source).





If you poke around on the openGL website you should be able to find plenty more resources to help you get started.

online florists

Seeking for an ASP.net C# Flash+AdRotator?

Anyone knows how I can use the built in control named "AdRotator" in visual studio 2005 to play flash (.swf) files ?


Thnx !

Seeking for an ASP.net C# Flash+AdRotator?
Check out http://www.codeproject.com/aspnet/AdRota...
Reply:The built in AdRotator doen't support rotating flash objects.


Friday, July 31, 2009

Need Help With C++!!!?

Ok so this is basically what i need.





i need a list control.


there should be 3 columns, in 1 column comboboxes, and in the others there should be just static text.





so it basically should be like the image shown here: http://www.codejock.com/public/assets/im...


except there should be comboboxes instead of checkboxes





heres some details of my project:





* Using Visual Studio 2005


* This is a MFC application





Can anyone help me please? This should be a really simple task but i cant seem to do it. ive seen like 100s of apps having the same thing i need.





plz, anyone help!!

Need Help With C++!!!?
Does not look easy. May be you can contact a C++ expert at websites like http://askexpert.info/ to help you code it.


Need help fixing my C++ program.?

I need help getting my program to compile.





...


void rotate(Point%26amp; p, double angle)


{


double new_x = (((p.get_x()*cos(angle))


+(p.get_y()*sin(angle))));


double new_y = (((-(p.get_x())*sin(angle))


+(p.get_y()*cos(angle))));


double dx = new_x- p.get_x();


double dy = new_y- p.get_y();


p.move(dx,dy);


}


...


int main()


{





cout%26lt;%26lt; "The original point p (5,5) rotated 5 times by 10 degrees then scaled 5 times by .95 is:""\n";


Point p(5,5);


double angle = 10;


double scale = .95;


int rotation_count = 0;


int scale_count = 0;








while (rotation_count%26lt;5)


{


rotate(p, angle);





cout%26lt;%26lt; "The point is now " %26lt;%26lt; p.get_x %26lt;%26lt; "," %26lt;%26lt; p.get_x %26lt;%26lt; "\n";


rotation_count++;


}


...


This is the error I recieve


Error 1 error C3867: 'Point::get_x': function call missing argument list; use '%26amp;Point::get_x' to create a pointer to member d:\my documents\visual studio 2005\projects\a3q2\a3q2\assgn3q2.cpp 52





line 52 : cout%26lt;%26lt; "The point is now " %26lt;%26lt; p.get_x %26lt;%26lt; "," %26lt;%26lt; p.get_x %26lt;%26lt; "\n"

Need help fixing my C++ program.?
you forgot the parenthesis on the method calls:





line 52 : cout%26lt;%26lt; "The point is now " %26lt;%26lt; p.get_x %26lt;%26lt; "," %26lt;%26lt; p.get_x %26lt;%26lt; "\n"





should be:





line 52 : cout%26lt;%26lt; "The point is now " %26lt;%26lt; p.get_x() %26lt;%26lt; "," %26lt;%26lt; p.get_x() %26lt;%26lt; "\n"





-devon


C++: What's the easiest way to put the filenames of a directory in an array?

I'm using a Microsoft Visual Studio 2005 MFC application.





I would like go through a directory, reading file names. If the file name (not including extension, of course) is three letters long, I would like to put that filename into an array, and then move on to the next file to test whether it belongs in the array, until I've reached the end of the directory. What is the easiest way to do this? Should I use a CFileFind, or is there a more efficient method?





Specific examples would be appreciated. Also, please keep in mind that this is an MFC application: NOT a console application.





Thanks!

C++: What's the easiest way to put the filenames of a directory in an array?
Doesn't matter if console or not, you still can use console techniques, just need to modify to fit your instance.


for the cout, replace that with your array, I would recommend a dynamic array or better yet use a vector class so you don't have to worry about allocation





CFileFind finder;


BOOL bWorking = finder.FindFile("*.*");


while (bWorking)


{


bWorking = finder.FindNextFile();


cout %26lt;%26lt; (LPCTSTR) finder.GetFileName() %26lt;%26lt; endl;


}
Reply:Ugh...Truthfully, I'd recommend that you program Windows with the Windows API instead of using the stupid Microsoft MFC or Borland VCL frameworks because they both produce incredibly bloated, slow code. They also don't teach you how to really program the operating system since they are bloated, slow wrappers which EVENTUALLY calls the Windows API functions. Anyways...





The 1st thing that comes to mind is the size of your array. Normally, you would have to write code so that the allocated memory block or array for the file names is large enough for a good number of file names (this can waste memory), or you have to write code that will dynamically allocate another block of memory when your 1st buffer gets full. Something to keep in mind...





As far as getting the file names, do something like this:


1) Call CFileFind::FindNextFile(). Set a flag if it returns 0 (last file in directory).


http://msdn2.microsoft.com/en-us/library...





2) Call CFileFind::GetFileName().


http://msdn2.microsoft.com/en-us/library...





3) In a loop, read the file name and copy it to array/memory block if necessary.





4) If the flag wasn't set, go back to step 1.

flowers uk

How to make C++ with a for loop and a 2d array?

Does anyone have the source code behind doing something like that i am wondering how to do it and if i can see a code to help myself learn it that would help alot thx. im using microsoft visual studios 2005

How to make C++ with a for loop and a 2d array?
Use nested loops.





for(int i = 0; i %26lt; numRows; i++){


for(int j = 0; j %26lt; numColumns; j++){


do something to array[i][j];


}


}





This will access every element in the array going from top to bottom and then left to right.


A question about C#?

In Visual Studio 2005, the main() method (the program entry point) always resides in a file called "Program.cs." I want to change my program entry point to another file, how do I do this in VS 2005?

A question about C#?
Right-click on the Project and go to Properties.





On the Application tab, you'll see a drop-down list labeled "Startup Object". You can select any class in your project that has a static Main() method from that drop-down.


C++ help! when i build the solution and try to test it,....?

the output disappear without letting me check if it's right or not. how can i make it to stay? i am usin microsoft visual studio 2005.





this is my code:





#include %26lt;iostream%26gt;


#include %26lt;iomanip%26gt;





using std::cout;


using std::cin;


using std::endl;


using std::fixed;


using std::setprecision;





int main()


{


//declare variables


int registrants = 0;


int fee = 0;





//enter input


cout %26lt;%26lt; "Enter number of registrants: ";


cin %26gt;%26gt; registrants;





//calculate and display order price





cout %26lt;%26lt; fixed %26lt;%26lt; setprecision(2);





if (registrants %26gt; 0)


{


if (registrants %26gt; 1 %26amp;%26amp; registrants %26lt;= 4)


cout %26lt;%26lt; "Seminar Fee: $" %26lt;%26lt; registrants * 100 %26lt;%26lt; endl;


else if (registrants %26gt;= 5 %26amp;%26amp; registrants %26lt;= 10)


cout %26lt;%26lt; "Seminar Fee: $" %26lt;%26lt; registrants * 80 %26lt;%26lt; endl;


else if (registrants %26gt; 11)


cout %26lt;%26lt; "Seminar Fee: $" %26lt;%26lt; registrants * 60 %26lt;%26lt; endl;


//endifs


}


else


cout %26lt;%26lt; "Invalid Data" %26lt;%26lt;endl;


return 0;


} //end of main function

C++ help! when i build the solution and try to test it,....?
The common solutions seem to be using getch() or system("pause") in the correct place to hold the terminal window open while you examine the output.





If you are not just a Windows drone, a more portable solution is to include and call a function something like the below at the proper point(s) in your program.





// A simple debugging routine to use with DOS console apps to hold the DOS box open


void HoldConsole(void)


{


char hold[3];





cout %26lt;%26lt; "\nHit %26lt;Enter%26gt; ";


cin.getline(hold, sizeof(hold), '\n');


cout %26lt;%26lt; endl;


}
Reply:Put in some wait-for-keyboard-input code to pause the execution.





Hope that helps.
Reply:insert the statement





getch();





one line before return 0; ... and don't forget to include the library conio.h


Exception when I run a program developed with C# .net 2.0?

I used visual studio 2005 to developed an application. it was working well. recenty i used "Computerinfo" class of "Microsoft.VisualBasic.Devices" namespace. for which I had to add a visual basic dll as reference. But my problem is when I run the program from Visual Studio 2005 IDE It works fine. but after publishing It throws an exception with 'detail', 'quit' and 'continue' button.





************** Exception Text **************


System.Management.ManagementException: Provider load failure


at System.Management.ManagementException.Th... errorCode)


at System.Management.ManagementObjectCollec...


at System.Management.ManagementObjectCollec...


at Microsoft.VisualBasic.Devices.ComputerIn...


at Microsoft.VisualBasic.Devices.ComputerIn...


at MountUp.MainUI.MainUI_Load(Object sender, EventArgs e)


at System.Windows.Forms.Form.OnLoad(.....

Exception when I run a program developed with C# .net 2.0?
I recall reading somewhere that not all of the "My" objects available to VB function properly in C#. Since most of the objects provided through the "My" keyword are available to C# through other means, it's probably better in the long run to spend a little more time to write the code for that directly. You didn't say exactly what property you were trying to access when the exception occurred, but from what I can see that's available through the ComputerInfo class you'll probably have to resort to pinvoke to get most of that info.

hamper

Error : Not all paths return a value?

Hello,





when I write web method using C# in Visual basic 2005,


I can't return the string value to the client request.


I got such kind of error Not all code paths return a value.


Don't know how to cope that problem.





My code is as follow.





Thanks in advance

















=================Code==============


using System;


using System.Web;


using System.Web.Services;


using System.Web.Services.Protocols;





[WebService(Namespace = "http://www.tp.edu.sg/")]


[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]


public class CountryLanguage : System.Web.Services.WebService


{


public CountryLanguage()


{





//Uncomment the following line if using designed components


//InitializeComponent();


}





[WebMethod(Description = "Return official language of particular country.")]


public string OfficialLanguage(string country)


{


string l = "Singapore"; string r = "English";


//if(l.CompareTo(country)==0)


int res = String.Compare(country,l);


if (res == 0)


{


return r;


}


}

Error : Not all paths return a value?
If (res == 0) test fails, you don't specify a return value. Need to do something like:





if (res == 0)


return r;


else


return .... some value ...
Reply:The simplest thing you can do is insert this line before the closing mark "}" of your method:





return String.Empty;





or





return null;





Good luck!
Reply:hey You have to return some value when res!=0 also





if(res==0)


{


return r;


}


else


{


return somethingelse;


}
Reply:the function OfficialLaunguage is supposed to return a string.


It only returns a string if res == 0.


Rescue Pets Online HELP!!!?

when ever i try to register it gives me this ....








Server Error in '/' Application.


--------------------------------------...





Index was outside the bounds of the array.


Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.





Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.





Source Error:





An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.





Stack Trace:








[IndexOutOfRangeException: Index was outside the bounds of the array.]


System.Data.RecordManager.NewRecordBase(... +1694516


System.Data.DataTable.NewRecord(Int32 sourceRecord) +21


System.Data.DataRow.BeginEditInternal() +82


System.Data.DataRow.set_Item(DataColumn column, Object value) +138


RegistrationAndLogin.DataSets.CountriesR... value) in C:\Visual Studio 2005\epets\RegistrationAndLogin\DataSets...


ChildRegistration.OnLoad(EventArgs e) +1879


System.Web.UI.Control.LoadRecursive() +47


System.Web.UI.Page.ProcessRequestMain(Bo... includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061














--------------------------------------...


Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

Rescue Pets Online HELP!!!?
to be frankly honest, im not fluent in computer language, but sometimes websites run into stupid problems, so your best bet is to try agian later. If theres any more problems, call a service provider, or the company.


Be-bratz.com help!?

I was trying to get on to be-bratz.com to register. i bought the doll and plugged the usb key in. System.Data.RecordManager.NewRecordBase(... +1694516


System.Data.DataTable.NewRecord(Int32 sourceRecord) +21


System.Data.DataRow.BeginEditInternal() +82


System.Data.DataRow.set_Item(DataColumn column, Object value) +138


RegistrationAndLogin.DataSets.CountriesR... value) in C:\Visual Studio 2005\be-bratz\RegistrationAndLogin\DataS...


ChildRegistration.OnLoad(EventArgs e) +2489


System.Web.UI.Control.LoadRecursive() +47


System.Web.UI.Page.ProcessRequestMain(Bo... includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


that popped up and i cant get on. PLZ HELP!!

Be-bratz.com help!?
hey,i have issues too.well i called technical support.they said that there is very high traffic on their website right now.they are working on the problem.they told me to try early morning or late at night.they also said to try maybe after january the 3rd since kids will be back in school.also if you have windows vista like i do,it wont work on it at all.i have to go to someone else's house to try to get mine to work,bummer.but i would suggest trying to wait.they told me also that once you are able to register,you wont have any problems after that.it is just everyone trying to register at one time.hope i helped!
Reply:I just got off the phone with Tech support, they are having issues with their server and hope to have it fixed in a few hours, it ruined my daughters Christmas :(
Reply:my was doing that a lot but just now it started to work so if your on do it right now. I thought it was wierd cuz i had anthor thing hooked up to the other usb port and when i put that in it worked.





theres a solution.
Reply:its happening to my daughter doll too, im piss. I don't even think they have a tech number
Reply:i have the same exact problem " it was a x-mas gift"
Reply:I have the same problem. I e-mailed the co. My daughter is very upset. She got it for Christmas. I will let you know if they help me.
Reply:I have windows xp and I bought this for my daughter for christmas as one of her main gifts. She is a bratz fanatic and she was looking forward to getting online with her doll. She already gets on the regular bratz site and they have all this amazing stuff that you can do if you get the be-bratz, needless to say we haven't been able to do any of it, and at this point I am very frustrated and tired of making excuses to my daughter for something that my hard earned bucks paid for. My thing is how do you sell millions of these things and don't prepare your systems for the major ovehaul. I think that the bratz have earned enough money to have the best darn website ever. I said that I was going to call MGA, the makers of bratz to see what the deal is. If anyone else have another number can you please give it out because I am all out of places to go.
Reply:idk y but that happend to my sister i tried mine and it worked fine so im not sure wat to do