Sunday, August 2, 2009

How can I communicate to the USB port?

Hi,


Can anybody tell me that how i can communicate with the USB port ?i want to make a simple program (at that time) in the visual studio c# ,such program has ability to on/off the LED connected to the USB port. Please guide me..........

How can I communicate to the USB port?
try looking at http://www.codeproject.com
Reply:Check yr manuals dude.

our song

Need an idea?

i need an idea on how 2create my own file %26amp; directory structure etc for the problem below ,i'm working in Visual studio C#





Implement a Portable File System (PFS). Allocate a file. Move files from the Windows file system into your file. You should have your own directory structure, allocation table, etc. inside your file. Move files back out of your file to the Windows file system.





When your program is running it should somehow accept the following commands:





open PFSfile Allocate a new 10 KByte "PFS" file if it does not


already exist. If it does exist, begin using it for further


commands.


put myfile Copy the Windows file "myfile" into your PFS file.


get myfile Extract file "myfile" from your PFS file and copy it to


the current Windows directory.


rm myfile Delete "myfile" from your PFS file.


dir List the files in your PFS file.


putr myfile "Remarks" Append remarks to the directory entry for myfile in


your PFS file.


kill PFSfile Delete the PFSfile from the Windows file system.


quit Exit PFS.





You can provide those commands either through menus or through buttons on a


form (or both). If the user clicks a button in your application window, it might open up a dialog box to get a filename. Alternatively, you can just open up a text box and let the user key in the name of a file (or whatever other variable information you need.)





Limits:





Filenames are a max. of 20 bytes. The directory need handle only Name, Size, Time and Date. If the original PFS file fills up then you should create a new PFS "volume" with the same name but a different suffix - e.g., pfs.1, pfs.2, etc., each the same size as the first "volume". Your file system should use an allocation scheme where "disk blocks" are 256 bytes each. You should handle unusual conditions such as trying to put a file into the PFS when a file with that name is already there, file too large to fit into one "volume", etc.

Need an idea?
This is similar to a database structure


How to use a web service in ASP.NET C# to check user details?

I've create a website in visual studio's 2005 in ASP.NET C#, one part of my website requires to check the user details for example personal details and bank details.


The web service must contain the following





-If the details entered by the user don’t match the original


Entered previously by the user and is stored with their profile. Then a message appears asking the user to adjust their details.





-If the details are correct then I want a message stating that the transaction was successful





- Check the type of card that they are using





- if there’s not enough funds in the correct return a message stating that there’s not enough funds in the account.





It’s basically the same process as when you’re using Amazon to purchase goods. For example checks the details that you already have stored in your profile (personal details %26amp; bank) if they match it checks that the funds are available in your account. Can someone write the code in C# ASP.NET using Visual Studios to using the web service to accomplish this(has to be in the web service)





Thanks

How to use a web service in ASP.NET C# to check user details?
You can use the security features in ASP.NET to create user accounts:





http://quickstarts.asp.net/QuickStartv20...





From that, you can associate user accounts you store in a SQL database with the user, and give the logged-in user a way to update those details.





You'll need a payment gateway of some sort to check account balances. In other words, you need a merchant account to check credit balances.





It actually sounds like you should start with the storefront starter kit that ASP.NET provides, and customize that to fit your needs:





http://www.asp.net/downloads/starterkits...


Integrating c# with microsoft word?

can any one help me to open microsoft word documents from c# and modify word docs from c#...





i am using visual studio 8......





i searched google but the information i got not helping me....





any one sujject code for ..................me plz............

Integrating c# with microsoft word?
Why would you want to do this?


Are you trying to edit the Word Document?





Does the Word Document have code in it?





Just copy and paste it into a C# files? Then you have it in C#???


Higher Education Decision: Computer Science or IT or other(must be related to comuter Technology)?

So, now that I've completed my Higher Education I'll be opting for a University but I just cant decide which field to choose, BCS or BIT. Whats confusing my decision is the fact that I want to be a game developer/ Robotics Engineer. Its like this, I am very much interested in MS Visual Studio C# language, C++ through which there is a broad development spectrum of game development/ hardware development etc but i'm mostly facinated on things like game %26amp; Robotics development via softwares. My confusion further increases when I c theoretical courses in as i'm not good at theories but practical, which involves a person's creativity directly, since I got 100% marks in Physics Practical, 70% marks in Chemistry Practical(not interested in chem though), 80% marks in Maths(get bored with deep maths, but overall good @ maths); though i'm not good @ boring old theories of Science but extremely good @ practical aspects. P.S Robotics Engineering is not available in my country %26amp; cant go to Japan

Higher Education Decision: Computer Science or IT or other(must be related to comuter Technology)?
If theoretical isn't your strength (but practical is), then computer science may not be a good choice. It's all about theory.





IT might be all right, as it's more practical than CS. However, is computer engineering available in your country? That might be a good compromise between the theoretical and the practical. Engineering in general tends to focus on the practical, so it might be a good fit for you.





And if you want to be a game designer, and computer science isn't the right fit, then you actually need to major in software engineering quite specifically. Is this available to you?

flower pots

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


How do I make an independent program using Visual 2005?

I am using Windows Visual Studios 2005, programming in C#. I am trying to make a program, that when finished, will not be dependent on Studios to run. I've a;ready added the installer, but it shows a Studios dependancy.

How do I make an independent program using Visual 2005?
Are you trying to run a C# program without dotnet dependency? I'm sorry to say this, but you can't do that.





Visual Studios 2005 runs on Dot Net 2.0. C# is one of Microsoft's prized languages, you will probably have little luck trying to execute C# without dot net dependency. Everything compiled in C# under VS2005 will require dotnet dependency. Perhaps there's a compiler out there that uses C# as a language, and compiles without dotnet dependency, but VS2005 going to work.





sorry bro., try c++ with codewarrior compiler.


good luck.
Reply:First off, make sure you're building in "Release" and not "Debug" mode (look at the properties of your project). Debug may depend on Visual Studio; release will not.





Second, you may be confusing Visual Studio .NET with the .NET platform. Visual Studio should never be a requirement; .NET will always be, because of how C# is compiled. There is, however, an alternative, non-Microsoft version of .NET called Mono. You can google to find that.


What is MS Dream Spark?

There are alot of things as a student I can download for free like MS Visual Studio, MS Expression Studio, Visual C's and XNA Game Studio 2.0.





Does anyone know what this stuff is?

What is MS Dream Spark?
They are mainly development software. Visual Studio develops applications for the computer, and also many other devices in many different languages, such as c#, java, c++.. etc. MS Expression studio is for graphics, photo editing, drawing.. etc. Visual C's are the express and free version to everone of visual studio. And XNA Game Studio is for game developing in XNA. It also includes source code for a game, to start making your own games.


In stores to buy this software is hundreds of dollars, dream spark is awesome. Free software is always the best!


Does Anyone Know Anything About Microsoft C++ Programing 2005?

I just downloaded Visual Studio 2005 for my C++ class and I need to change my debugging location. When I did it the first time I told it to open it in Internet Explorer, but now I need to chance it because I cant view my work.





Can someone please direct me on how to change this?





And what should I select so that I can view it?





And please dont make any smart remarks. If you cant help me then just do not answer.





THANK YOU TO WHO EVER CAN HELP

Does Anyone Know Anything About Microsoft C++ Programing 2005?
Debugger Project Settings: http://msdn2.microsoft.com/en-US/library...





Explains how to specify debugger settings, how to set debug and release configurations, and how to manage symbols and source code. Also describes appropriate project settings for C++, C#, J#, and Visual Basic debug configurations, as well as web projects


__________________________


__________________________





Creating Debugger Visualizers with Visual Studio 2005





With debugger visualizers, you can define the information you would like to see about a specific .NET or custom class during debug mode. And as the name suggests, you can also choose how you would like to visualize these details.





http://www.devx.com/codemag/Article/2782...





Visual Studio 2005 has some pre-existing visualizers that you will discover during debug mode. You can access the visualizers by using a dropdown list on the left side of the new DataTips between the selection and its value. For example, if you point to a string object in Debug mode, or even an actual string, you will have access to three debugger visualizers: Text, XML, or HTML.





You can also access visualizers through the Watch windows. The DataTip's Watch window is where you can see the _stringvalue property of a StringBuilder object. When you select the XML visualizer, you will get a better view of the XML-formatted string





____________

flower beds

Does Anyone Know Anything About Microsoft C++ Programing 2005?

I just downloaded Visual Studio 2005 for my C++ class and I need to change my debugging location. When I did it the first time I told it to open it in Internet Explorer, but now I need to chance it because I cant view my work.





Can someone please direct me on how to change this?





And what should I select so that I can view it?





And please dont make any smart remarks. If you cant help me then just do not answer.





THANK YOU TO WHO EVER CAN HELP

Does Anyone Know Anything About Microsoft C++ Programing 2005?
Your explanation is a little unclear, but I'll try to guess what you want.





Are you trying to design web pages, and you no longer want to debug them in Internet Explorer? OK, this is easy to fix:





With your project open, right click on any .aspx file in the solution explorer, and click 'Browse With...'. All installed web browsers should appear in a list. Click the one you want to use and click the buttom 'Set as Default'. You can now preview the page, or cancel and your settings remain when you save the project.





Note that debugging in IE with Visual Studio is easier, Visual Studio integrates better with IE.
Reply:Right click you project in "Solution Window" -%26gt; "Project Properties"





from the left tree view select "Build" and you will find a drop down menu to choose from.


What is the best Approach to understand a 'C' project?. Is there a Free IDE ?

I need to understand this project, How it works. I am with Java backround. I have Visual Studio, but it creates C++ project and I can't add C sources.





Your help is greatly appreciated.





Yogi

What is the best Approach to understand a 'C' project?. Is there a Free IDE ?
If the C project was programmed unorganized, unfortunately you're in a pretty big boat. C isn't wrapped up in nice little "packages" like Java. The best you could do is download C-Free and set up a project there with the files you have.





Good luck


What is an easy 3 step C++ program to write?

For a computer science class I have to use visual studio to write a C++ program. It needs to have 2 to 3 steps. My friend did finding out a golfers handicap, so sports examples are good. please help me with some input.

What is an easy 3 step C++ program to write?
Write a program that calculates a pitchers ERA. Google the formula, that should be pretty cool and easy.


C++ Code to Implement an Abstract Interface ?

In Visual Studio 2005 and using C++, how can I implement the


properties and methods of an abstract interface that I have imported from a type library (.tlb file)? (What functions do I need to call, what pointers do I need to create, etc.) Also, what type of Visual Studio project do I need to create in order to accomplish this?

C++ Code to Implement an Abstract Interface ?
There is no such thing as an Abstract Interface.





Interfaces are not supported with (ISO) C++. You should use an abstract class with only virtual methods.





A .tlb file is (I'm guessing) a Type Library. These are used with COM/ActiveX controls.





Type of Visual Studio project: .... a C++ project I guess





If you are using managed C++, you can just add a reference to the COM object, which should add a RCW you can use (a wrapper around the object referenced). This will do most housekeeping for COM/ActiveX objects for you.
Reply:Here is a resource to do that.

wedding flowers

How can I use external DLL's BMP and other resources in my C++ source code?

Usage of BMP resources (that are stored in a common dll file) in a C++ sourcecode (under Visual Studio 8). I think something like this: "shell32.dll,-21813"

How can I use external DLL's BMP and other resources in my C++ source code?
1) Use LoadLibraryEx using the LOAD_LIBRARY_AS_DATAFILE flag.


2) Then you can call FindResource or FindResourceEx to locate the BMP you want.


3) Then call LoadResource to load it into memory.





Hope this helps.


How can you write your initials in C#?

I need to be able to write my initials in C# using Microsoft Visual Studio.

How can you write your initials in C#?
ok so input your name. there is a function i am not sure what it is called but you can do a search for it..it will store the first letter of a string into a variable. so you could input your first name, middle, and last name into three different variables. then find the first letter of each and put them into three different variables. then you can concatenate them together and output them.
Reply:std::cout %26lt;%26lt; "insert INITIALS here" %26lt;%26lt; std::endl;

paid survey

I have problems with dynamic mem. al. in C++. It's a row for you,but the end of a three-day affliction for me.

I do this in a part of my C++ program: int* pTemp=new int


[size()];


(size() is an unsigned int value, it shows the size of an array)





But when I run it, I get this message:





"heap corruption detected: after normal block (#115) at 0x003A5490. crt detected that the application wrote to memory after end of heap buffer."





and when I'm debugging it:





"there is no source code available for the current location."





What can I do?





Domonkos





(It's C++ in Microsoft Visual Studio 2005)

I have problems with dynamic mem. al. in C++. It's a row for you,but the end of a three-day affliction for me.
1) Could it be you're asking for too big of a size? Use smaller values until the problem stops, if it does.


2) Is the value negative?


3) If this problem doesn't go away, check to see if there is by some chance some file that has overridden the new operator. This is a very odd situation, but has been known to happen.





just a couple of suggestions.


Visual Basic Questions?

Could you please help me with the practice questions before the final exam. Thanks.


1. When defining a variable, the keyword ____ appears at the beginning of the statement.


a. Assign c. Define


b. Declare d. Dim











2. When defining a variable to be used to hold textual information containing multiple characters, the declaration statement should have ____ at the end of the statement.


a. As Char c. As String


b. As Char Type d. As String Type











3. A variable that will be used to hold only True or False values should be declared as a(n) ____ data type.


a. Boolean c. Integer


b. Decimal d. Single








4. A program whose interface will be a window on the screen of a computer running the Windows operating system, and which will allow the user to interact with the program by using this window, is created by selecting a ____ project in Visual Studio.


a. Web application c. Windows application


b. Console application d. Custom control














5. Properties can be displayed in the Properties window ____.


a. grouped by category or by the order they appear on the screen


b. grouped by category or sorted numerically


c. sorted alphabetically by name or grouped by size


d. sorted alphabetically by name or grouped by category














6. The ____ sign is used in an assignment statement.


a. plus (+) c. ampersand (%26amp;)


b. equal (=) d. percent (%)











7. Which of the following is the correct general format for assigning a value to a property?


a. propertyvalue = propertyname.objectname


b. propertyvalue = objectname.property


c. propertyname.objectname = propertyvalue


d. objectname.property = propertyvalue











8. The ____ feature displays all allowable entries you can make in a Visual Basic statement each time a dot, equal sign, or other special character required for the statement is typed.


a. AutoComplete c. IntelliComplete


b. AutoSense d. IntelliSense











9. When you type the word ____ followed by a period in the code editor, IntelliSense displays a list of all the entries, including all the objects that can be specified in the statement.


a. Me c. MyForm


b. My d. VB











10. A(n) ____ is used for denoting a comment statement.


a. semi-colon (;) c. apostrophe (‘)


b. period (.) d. comma (,)











11. Comments are displayed (by default) with ____.


a. a green squiggly line c. blue text


b. green text d. a blue squiggly line








12. The ____ prefix is used for a Menu object.


a. menu c. mst


b. mns d. mnu











13. The ____ character is used to indicate that a letter is a hot key on a menu item.


a. ampersand (%26amp;) c. back slash (\)


b. forward slash (/) d. underscore (_)











14. The hot key for a menu item can be activated with the keyboard by pressing the ____ key and the hot key at the same time.


a. ALT c. CTRL


b. SHIFT d. TAB











15. The ____ object provides a text box that asks the user for input and provides an input area.


a. label c. textbox


b. menu d. Radio button











16. Which line of code will add the value “East” to a ListBox object named lstDirections?


a. lstDirections.Add(“East”) c. lstDir...


b. lstDirections.Items.Add(“East”) d. ...











17. To remove all objects from a ListBox object, the ____ method is used.


a. Clear c. Empty


b. Items.Clear d. Items.Empty











18. The ____ property of a ListBox object identifies which item in the ListBox was selected.


a. Item c. Selected


b. ItemSelected d. SelectedItem











19. The compound operator ____ adds the value of the right operand to the value of the left operand and stores the result in the left operand’s variable.


a. ++ c. =+


b. += d. ==











20. The compound operator ____ is used to add a string to an existing string.


a. %26amp;= c. %26amp;%26amp;


b. =%26amp; d. ==








21. The ____ follows the keyword For in a For...Next loop.


a. keyword Next c. keyword To


b. keyword Step d. a control variable name











22. A For...Next loop with a beginning value of 1, an ending value of 25, and a step value of 3 will execute ____ times.


a. 3 c. 9


b. 8 d. 25











23. How many times will the following loop execute?


For intCount = 10 To 16 Step 2


‘Body of Loop


Next


a. 3 c. 6


b. 4 d. 7











24. How many times will the following loop execute?


For intCount = 10 To 1 Step -2


‘Body of loop


Next


a. 4 c. 9


b. 5 d. 10




















25. What will be the value of the variable intTotalCount when the following code is executed?


For intOuterCount = 1 to 5


For intInnerCount = 1 to 4


intTotalCount +=1


Next


Next


a. 4 c. 9


b. 5 d. 20

Visual Basic Questions?
1. dim


2. as string


3.boolean


4. Windows application


5.sorted alphabetically by name or grouped by category


6.equal (=)


7.objectname.property = propertyvalue


8.AutoSensed.IntelliSense


9.Mec.MyForm


10.apostrophe (‘)


11.green text


12.mnu


13.underscore (_)


14.ALT


15.textbox


16.lstDirections.Add(“East”)c.l...


17.Clear


18.SelectedItem


19.+=


20.%26amp;=


21.keyword To


22.9


23.4


24.5


25.5





Hope this helps!!!
Reply:Sorry dude, try reading the book these are simple questions you should be able to answer easily.





Next time you try to cheat loser, don't ******* report me for telling you to read the damn book. If your that stupid, don't get into programming. Report It

Reply:While I certainly could answer all of these questions, your best bet would be to work it out for yourself and then to simply try each of them out in VB itself. You'll have better retention for the exam, if you've worked through each guess you got wrong.





It would not take very long to do that either, .5 - 1 hours total for the 25 questions.


Visual Basic Questions?

I am practicing some multiple choice questions before my final exam, could you please help me out. Thanks.


When defining a variable, the keyword ____ appears at the beginning of the statement.


a. Assign c. Define


b. Declare d. Dim











2. When defining a variable to be used to hold textual information containing multiple characters, the declaration statement should have ____ at the end of the statement.


a. As Char c. As String


b. As Char Type d. As String Type











3. A variable that will be used to hold only True or False values should be declared as a(n) ____ data type.


a. Boolean c. Integer


b. Decimal d. Single








4. A program whose interface will be a window on the screen of a computer running the Windows operating system, and which will allow the user to interact with the program by using this window, is created by selecting a ____ project in Visual Studio.


a. Web application c. Windows application


b. Console application d. Custom control














5. Properties can be displayed in the Properties window ____.


a. grouped by category or by the order they appear on the screen


b. grouped by category or sorted numerically


c. sorted alphabetically by name or grouped by size


d. sorted alphabetically by name or grouped by category














6. The ____ sign is used in an assignment statement.


a. plus (+) c. ampersand (%26amp;)


b. equal (=) d. percent (%)











7. Which of the following is the correct general format for assigning a value to a property?


a. propertyvalue = propertyname.objectname


b. propertyvalue = objectname.property


c. propertyname.objectname = propertyvalue


d. objectname.property = propertyvalue











8. The ____ feature displays all allowable entries you can make in a Visual Basic statement each time a dot, equal sign, or other special character required for the statement is typed.


a. AutoComplete c. IntelliComplete


b. AutoSense d. IntelliSense











9. When you type the word ____ followed by a period in the code editor, IntelliSense displays a list of all the entries, including all the objects that can be specified in the statement.


a. Me c. MyForm


b. My d. VB











10. A(n) ____ is used for denoting a comment statement.


a. semi-colon (;) c. apostrophe (‘)


b. period (.) d. comma (,)











11. Comments are displayed (by default) with ____.


a. a green squiggly line c. blue text


b. green text d. a blue squiggly line








12. The ____ prefix is used for a Menu object.


a. menu c. mst


b. mns d. mnu











13. The ____ character is used to indicate that a letter is a hot key on a menu item.


a. ampersand (%26amp;) c. back slash (\)


b. forward slash (/) d. underscore (_)











14. The hot key for a menu item can be activated with the keyboard by pressing the ____ key and the hot key at the same time.


a. ALT c. CTRL


b. SHIFT d. TAB











15. The ____ object provides a text box that asks the user for input and provides an input area.


a. label c. textbox


b. menu d. Radio button











16. Which line of code will add the value “East” to a ListBox object named lstDirections?


a. lstDirections.Add(“East”) c. lstDir...


b. lstDirections.Items.Add(“East”) d. ...











17. To remove all objects from a ListBox object, the ____ method is used.


a. Clear c. Empty


b. Items.Clear d. Items.Empty











18. The ____ property of a ListBox object identifies which item in the ListBox was selected.


a. Item c. Selected


b. ItemSelected d. SelectedItem











19. The compound operator ____ adds the value of the right operand to the value of the left operand and stores the result in the left operand’s variable.


a. ++ c. =+


b. += d. ==











20. The compound operator ____ is used to add a string to an existing string.


a. %26amp;= c. %26amp;%26amp;


b. =%26amp; d. ==








21. The ____ follows the keyword For in a For...Next loop.


a. keyword Next c. keyword To


b. keyword Step d. a control variable name











22. A For...Next loop with a beginning value of 1, an ending value of 25, and a step value of 3 will execute ____ times.


a. 3 c. 9


b. 8 d. 25











23. How many times will the following loop execute?


For intCount = 10 To 16 Step 2


‘Body of Loop


Next


a. 3 c. 6


b. 4 d. 7











24. How many times will the following loop execute?


For intCount = 10 To 1 Step -2


‘Body of loop


Next


a. 4 c. 9


b. 5 d. 10




















25. What will be the value of the variable intTotalCount when the following code is executed?


For intOuterCount = 1 to 5


For intInnerCount = 1 to 4


intTotalCount +=1


Next


Next


a. 4 c. 9


b. 5 d. 20

Visual Basic Questions?
1. dim


2. as string


3.boolean


4. Windows application


5.sorted alphabetically by name or grouped by category


6.equal (=)


7.objectname.property = propertyvalue


8.AutoSensed.IntelliSense


9.Mec.MyForm


10.apostrophe (‘)


11.green text


12.mnu


13.underscore (_)


14.ALT


15.textbox


16.lstDirections.Add(“East”)c....


17.Clear


18.SelectedItem


19.+=


20.%26amp;=


21.keyword To


22.9


23.4


24.5


25.5
Reply:Here are a few of them





1. d.


2. c.


3. a.


4. b.


5. d.


6. b.


7. d.


8. d.


9. b.


10. c.


11. b.


12. d.


13. a.


14. a.


15. c.


16.b.


17.b.


18.d.


19.b.


20.a


21.d.


22.c.


23.b.


24.b.


25.d


My bewilderment about C++ Builder's VCL?

I have learned C and C++ myself ,but not use them adeptly.Now I begin to learn C++ Builder,I was deeply attracted by the VCL's progamming style,it's wonderful!


I am puzzled by some...,so does VCL have some differences with VB?I means the programing work method,is VCL's componet the same as VB's component?


Or VCL is another packing way the same as MFC?


but I can't even see a single word like "virtual"


And I want to know do people in software company like use C++ Builder or Visual Studio,I mean which is more popular?


Thank you!

My bewilderment about C++ Builder's VCL?
I am a Builder fan.





You will generally find that Visual Studio is much more popular than Builder. That said, I have given a quick tutorial on builder to a number of Studio users and have had 100% of them fall in love with Builder within a couple of minutes. Borland just cannot compete with Microsoft's marketing or name despite the fact that their compilers have been significantly better for most of the last 25 years.





Builder is much closer to VB than Visual Studio is. Builder's components are very similar to VB's, but Borland did not go out of their way to copy VB's set.





If you want to get a good start, I highly recommend the Sam's "Teach Yourself Borland Builder" books. You get lots of examples, and even if you do not read the whole book, you will find that it makes a very good reference.

customer survey

Hey, I am making a website using Master Page with visual studio, I created a perfect Master....?

with 4 contentPlaceHolders {Header, Footer, Categories %26amp; main}


now i want my website to work according to:


i want the header, footer %26amp; categories to never change when the client surfs my web


i want the contentPlaceHolder of the main only to change..how can i do that??


what steps do i make???


do i need c sharp coding or so???

Hey, I am making a website using Master Page with visual studio, I created a perfect Master....?
You need C# or Visual Basic for the behind code (ie the server side coding). If the code is not necessary to be done on the server side I suggest you don't as it slows down loading time.





So you have the master page - everything that you want to remain the same must be specified in the master page. Now you have to add a content page (there should be something like add -%26gt; content page).





This will automatically be created with the appropiate content place holders. You will only need to edit the page title (on the line of code) and the actual code inside the content place holder.
Reply:You do not actually need four contentPlaceHolders.





A placeHolder is an area to be filled by a content page.





In your case, you need a Master page with only ONE contentPlaceHolder.





Your master page will look something like this:





%26lt;html xmlns="http://www.w3.org/1999/xhtml"%26gt;


%26lt;head runat="server"%26gt;


%26lt;title%26gt;%26lt;/title%26gt;


media="screen" /%26gt;


%26lt;/head%26gt;


%26lt;body%26gt;


%26lt;form id="form1" runat="server"%26gt;


%26lt;table border="0" cellspacing="0" cellpadding="0"%26gt;


%26lt;tr%26gt;


%26lt;td colspan="2"%26gt;%26lt;!-- header here --%26gt;%26lt;/td%26gt;


%26lt;/tr%26gt;


%26lt;tr%26gt;


%26lt;td%26gt;


%26lt;!-- Categories go here --%26gt;


%26lt;/td%26gt;


%26lt;td%26gt;


%26lt;asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"%26gt; %26lt;/asp:ContentPlaceHolder%26gt;


%26lt;/td%26gt;


%26lt;/tr%26gt;


%26lt;tr%26gt;


%26lt;td%26gt;%26lt;!-- footer goes here --%26gt;


%26lt;/tr%26gt;


%26lt;/table%26gt;


%26lt;/form%26gt;


%26lt;/body%26gt;


%26lt;/html%26gt;





Hope this helps.


Which of the following tools is a direct competitor to Visual Studio?

a. Borland C# Builder


b. InstallShield DevStudio


c. Nant


d. Altova xmlspy

Which of the following tools is a direct competitor to Visual Studio?
b





Now gimme my 10 points
Reply:c. Nant
Reply:Borland C#Builder


Hi, i have a problem with Ms visual studio.net, any body can help?

I'm working with C#.NET, I want to access a database (Ms Access database) but I dont know how to do that? any body can help? plz!!!

Hi, i have a problem with Ms visual studio.net, any body can help?
Go to the Data menu and choose Add New Data Source





Select Database and click Next





Click the New Connection button





Click Change next to the Data Source label





Choose Microsoft Access Database File from the menu





Click OK





Next to the Database file name field, click Browse





Browse to the location of your Access database (remember, this will need to remain consistent for all users of your application; if you are doing a Web site, put the DB in the App_Data folder; if you are doing a standalone program, use a URL that will always be correct, either someplace in the application path or with a \\server\share type URI that will be good for all users)





Provide the authentication information if there is any; if not, blank out the authentication textboxes





Click Test Connection to make sure you can connect





If you connected OK, click the OK button to close the confirmation message box





Click OK to close the DB connection dialog





Click Next





If the database is not in your application path, and you get a confirmation box telling you it wants to move the file, choose OK to move the DB to the path, or cancel to not move it.





Give the connection a meaningful name





Click Next





Choose the tables and views (queries) you want to include in your project's DataSet





Give the DataSet a meaningful name





Click Finish





You now have all the data you selected available to you as an XSD file.





You can also view your DB by clicking on the Server Explorer tab . You can see the Server Explorer tab if it's not visible by choosing it from the View menu
Reply:That's a tough question to answer. I think it's not just a matter of posting a couple of lines of code. I'd suggest going to www.codeproject.com and looking around for sample code.





Good luck!


How does one get and put files with FTP using Visual Basic .NET (and Visual Studio 2008)?

This is a follow-up to a question that was answered very nicely with a C# example, but I'm looking for a VB.NET (2.0 or 3.5) example.

How does one get and put files with FTP using Visual Basic .NET (and Visual Studio 2008)?
I'm working on a ftp control and here is a test class I started with.





Imports System.Net


Imports System.IO





Public Class GetFile


Friend Sub subGetFile(ByVal uri As String, ByVal LocalFile As String)


My.Computer.Network.DownloadFile(uri, LocalFile, My.Settings.strUser, My.Settings.strPwd, True, 100000, True)


End Sub





Friend Sub subDownLoadFile(ByVal strUri As String, ByVal strLocalFile As String)





Dim Instance As New Uri(strUri)


Dim Request As FtpWebRequest





Request = CType(WebRequest.Create(Instance), FtpWebRequest)


With Request


.Method = "RETR"


.UseBinary = False


.Timeout = 120000


End With





Dim Response As FtpWebResponse = CType(Request.GetResponse(), FtpWebResponse)


Dim ResponseStream As Stream


Dim TargetStream As Stream





Try





Response = CType(Request.GetResponse(), FtpWebResponse)


TargetStream = New FileStream(strLocalFile, FileMode.Create)


Using Writer As New StreamWriter(TargetStream)





ResponseStream = Response.GetResponseStream()


Using Reader As New StreamReader(ResponseStream, System.Text.Encoding.UTF8)





Writer.Write(Reader.ReadToEnd())


Reader.Close()





End Using





Writer.Close()





End Using





Catch Err As Exception


MessageBox.Show(Err.Message)





Finally


Response.Close()





End Try





End Sub





End Class

survey for cash

I would like to install the Visual Studio 2005 in a different hd partition from windows how can I do that?

I´ve tried to choose the destination folder but he still requires 1.4 Gb in C: and a few MB in D:. Is there anyway that I can stall at least the Gigantic Framework .NET in D:?

I would like to install the Visual Studio 2005 in a different hd partition from windows how can I do that?
You probably can install some of the Framework on D if you download the Framework 2.0 SDK and the redistributable, install them in advance, and specify as much to the D drive as possible.





Much of the Framework MUST be installed to c:\windows\mirosoft.net (unless your system partition is on D.) This is because these are effectively become system files in Windows Vista, where managed code becomes the native API.
Reply:I think because there is the files need to copy to system folder like Windows/system32 and other file that need place on system folder, like .NET and other server side application.


Is microsoft visual C# hard to use because if it i then what is a good games making software?

i have a good game i want to make but has XNA games studio express got an online tutorial to take me though the step of creating my first game

Is microsoft visual C# hard to use because if it i then what is a good games making software?
well, You need EXTREMELY good knowledge of C++ and good mathmatical skills to create a game, if you have that, I would download and install DevCPP (AKA DevC++) It's free also. Easy to find, just search for it.


From where will i get good visual studio.net tutorials?

more specific on ASP.net,c#,vb.net

From where will i get good visual studio.net tutorials?
You would be surprised at how well documented the built in help is by Microsoft (MSDN), also online I personally enjoy:





www.codeproject.com


www.msdn.com


www.daniweb.com (forums)


www.4guysfromrolla.com





Best of Luck
Reply:try this:


http://msdn.microsoft.com/vstudio/expres...
Reply:msdn @ msdn.microsoft.com (they made visual studio and is the official help content of visual studio)





and then there is the microsoft training and certifications resources at http://msdn2.microsoft.com/en-us/bb18819...





try googling for .net tutorials
Reply:Try TotalTraining!


www.totaltraining.com


They have online tutorials and also DVD based tutorials about asp.net and lots more. Very good and not that expencive


How do I make applications run independantly of Visual Studio 2005?

I've been writing some C and C++ programs with it, but when I run the program by clicking on the .exe file, the console window closes as soon as the program ends, instead of letting me see the output. When run from inside VS, it ends with the "Press any key to continue . . . "





Do I need to add extra code, or what else can I do to have it run normally?

How do I make applications run independantly of Visual Studio 2005?
Your code ...is... running normally. It's a console program. Since you're double clicking on the exe (and not running from console), a console window opens up, the program runs, and the console window closes down.





So the correct way is to open up a console window yourself and run the program from there.





A kludge for development purposes is to ask for user input. You aren't actually going to do anything with the input, but by asking for input, the program window is forced to stay open. Something like cin.get() will do the trick (part of iostream) (http://cppreference.com/cppio/get.html ).
Reply:In Borland C/C++, the right way would be to call the getchar() function. You must include conio.h in order to call this function, but Visual C++ does not offer support for this function.





Another way would be to use sleep(time) where time is an integer that represents the amount of time to sleep (in miliseconds). Include time.h for this to work.

customer satisfaction survey

An available project template in Visual Studio is:?

a. Web Page


b. .NET DLL


c. Windows Service


d. Script

An available project template in Visual Studio is:?
One of the default visual studio templates is C. A windows Service. This is a standard template in visual studio .NET and is used to create a service which will run on windows, usually in the background. Some windows services are SMTP and the Web Publishing Service (HTTP).





Hope this helps you out.


How can i downlode visual studio 2005?

for working with C#

How can i downlode visual studio 2005?
U can download it from here:


http://msdn2.microsoft.com/en-us/express...
Reply:Only the express edition can be downloaded. Here is the link:


http://www.microsoft.com/express/
Reply:There are two versions:





Express (FREE): http://msdn2.microsoft.com/en-us/express...





Or you can purchase a MSDN Subscription and get a DVD or download from http://msdn.microsoft.com/subscriptions/
Reply:Or here (there are a few results here):


http://www.download.com/3120-20_4-0.html...


'friend' access modifier in MS Visual Studio?

Does anyone have any idea why the 'friend' modifier in VB.net works the way it does? In VB.net (and other .net languages), the friend modifier allows the element to be accessed from anywhere in the assembly. But the way I learned it in Borland C++, a friend modifier didn't give universal assembly access, but allowed you to give selective access to other classes. For example:


--- code starts here ---


class a {


public:


void aFunc(void);


}


void a::aFunc(void) {


b *B = new b();


B-%26gt;bFunc();


}


class b {


friend void a::aFunc(void);


private:


void bFunc(void);


}


void main(void) {


a A;


b B;





// the following line is legal:


A.aFunc();


// the following line is illegal (it's private):


B.bFunc();


}


--- code ends here ---


'void a::aFunc(void)' is able to call 'void b::bFunc(void)', but main() is not allowed. 'a::aFunc' is a friend.





Why doesn't VB.net work this way? Is this one of the things that fell out of the obsolete AT%26amp;T C++ Standard?

'friend' access modifier in MS Visual Studio?
The "friend" access modifier in C++ is similar to the "internal" access modifier in VB.NET and C#. "friend" in VB.NET is similar to "protected internal" in C# and doesn't really have an analog in C++.





The main difference that you are seeing is that in C++ you explicitly state that another class has access to the friend class. In .NET either everyone in the assembly has access or not (with regard to the "internal" keyword anyway... obviously you can use public / private etc). In general .NET enforces encapsulation and OO principles more tightly than C++ does... which makes it better or worse depending on your point of view! :)
Reply:If what you are saying is correct, it would be weird behavior indeed. But I'm not an expert .Net programmer. so I don't know.





So, you are saying that the "B.bFunc();" would succeed in .Net, even if the bFunc was declared private???


What is the use of visual studio?

if i am wright,,, is it used for programming?is there any shorter version(upto 700mb) which i can use to learn c++ or indirectly which is the best ide for c++?

What is the use of visual studio?
Visual Studio is a development environment used by programmers for creating software applications.





There are "smaller" versions of Visual Studio, called Express Editions, which are free to download and use:





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





As to which IDE is the best, it's a matter of personal preference.
Reply:Visual Studio is a programing... program. You can use C++, Visual Basic and a couple of other programing languages. When I took C++ programing in High School we used this program, I would say this is the best for C++ because it makes it really easy to go from your code to the GUI to make sure everything is coming together correctly

free survey

How do you force a CDialog (Visual Studio 2005) object to refresh it's display?

Under one of my OnBnClicked functions, I have to have a sleep timer. Only problem is, the sleep is causing the display not to update. I need it to update once per loop before it sleeps. Is there a function standard in c/c++ that forces the CDialog display(the whole display or the CEdit box in question) to update?

How do you force a CDialog (Visual Studio 2005) object to refresh it's display?
CWnd::Invalidate();


CWnd::UpdateWindow();





since CDialog is derived from CWnd





CDialog::Invalidate ();


CDialog::UpdateWindow();
Reply:If you do you sleep timer right, it shouldn't block refreshes, and runs in a separate thread. How are you doing your timer?


VB - .NET - Visual Studio 2005 - programming - coding - termimology and other issues, assistance needed please

Requesting answers that will be intuitive to a programming semi-illiterate.





I have inherited a VS 2005 project from an individual who left the company unexpectedly. I'm not an experienced programmer and I'm trying to see if the application he was building is working.





QUESTIONS:





What is meant by the following:





" 'C:\WINDOWS\blah, blah, blah...\Microsoft.VisualStudio.HostingPr... Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled."





In .NET programming speak (in VB context, if/where it matters), what is meant by:





- "Skipped loading symbols"? Does this indicated that some aspect or component of the application did not run successfully?





- "Module is optimized"? In this context, what's a "module"?





- What does "debugger option 'Just My Code' is enabled" mean?





Thanks!!

VB - .NET - Visual Studio 2005 - programming - coding - termimology and other issues, assistance needed please
If you're not an experienced programmer you are going to have a lot of pain working through this. It's not for the faint hearted. Briefly a module is a piece of code that compiles into a DLL. Just My Code is an option under Tools/Options/Debugging/General. If your module is optimized you can't debug it so the debugging symbols are not loaded.





Now switching off the optimization is something I have been trying to do without success for ages...





Sigh.


Questions about MS Visual Studio?

On their site they said it is good for making software, does that include games?





Does the Web Developement actually meet all the needs of and advanced Web Designer (Like Dreamweaver, oh and I am not calling myself advanced)?





I know that there is C++, web developement, but is there anything else in it?





Thx All

Questions about MS Visual Studio?
I'm a VB.NET developer here. With Visual Studio, you can choose C++, C#, J#, or Visual Basic. It's not at all intended to develop web graphics (for that you would need Photoshop or Fireworks). It is for creating any type of software program or website, and works particularly well with databases.
Reply:VB.Net, and C#.Net.





You can develop web apps with either.....


How to use parameters in visual studio to combine different fields?

I know how to insert single parameters. Example: if I want to see only dept. A items, or see only dept. B items, or see only dept. C items, or if I want to see all groups combined, I know how to add the parameters so they show up in the drop down box, but I don't know how to see dept A and dept C combined without dept B.


Basically what I'm looking for is how to select in my view either dept A, dept B, dept C, dept A and C combined, and dept B and C combined. The usual code I use in the parameter dataset is select distinct label = dept, value = dept from table X , with a union statement so I have an 'All' category, but this doesn't let me combine the depts unless I use all the depts. Can anyone help?!?

How to use parameters in visual studio to combine different fields?
SELECT *


FROM Tablename


WHERE Tablename.YourValue IN ('value1','value2','value3')








value1 value2 and value3 would be your multiple departments.

survey results

Should I get visual studio 2005 or 2008?

I don't really understand what .NET is all about. I need a good windows compiler but I wouldn't mind learning another technology or language since C++ is the only language I have. Which one should get? Thanks in advance

Should I get visual studio 2005 or 2008?
U can use Express edition series


Visual Studio Express edition 2008


SQL Server Express edition 2008
Reply:I would go with 2008, since older versions of anything are usually phased out... 2008 edition will be relevant until the next edition is released. 2005 is loosing relevance.


VB - .NET - Visual Studio 2005 - programming - coding - termimology and other issues, assistance needed please

Requesting answers that will be intuitive to a programming semi-illiterate.





I have inherited a VS 2005 project from an individual who left the company unexpectedly. I'm not an experienced programmer and I'm trying to see if the application he was building is working.





QUESTIONS:





What is meant by the following:





= = =





'loadABCV3.vshost.exe' (Managed): Loaded 'C:\Inetpub\wwwroot\Image_Load\LCIS_load... Symbols loaded.


'loadABCV3.vshost.exe' (Managed): Loaded 'C:\Inetpub\wwwroot\Image_Load\LCIS_load... No symbols loaded.





= = =





In .NET programming speak (in VB context, if/where it matters), what is meant by:





- "Symbols loaded"? Does this indicated that some aspect or component of the application has run successfully?





- "No symbols loaded"? Does this indicated that some aspect or component of the application did NOT run successfully?





Thanks!!

VB - .NET - Visual Studio 2005 - programming - coding - termimology and other issues, assistance needed please
Compiled code is essentially just a series of instructions to the CPU, calls to external libraries, and maybe some data. Normally what you see in the source code is not really recognizable in the compiled code. Symbols (or "debugging symbols" as they are often called) are the original function names and variable names from your source code that can be compiled into your executable (or otherwise referenced from another file such as a symbol database file), so that you can hook a debugger up to your compiled code, step through it, and have half a clue what it's doing.





Normally a "debug build" contains symbols, and a "release build" does not.





If something loads without symbols, it probably means that you've fired up a release build that is ready to be given out to the world. This does not mean that anything failed or that anything is wrong with this build.


Visual Studio 2005 And SQL server 2000, PLEASE HELP?

I'm trying to connect to a remote sql server, using C# and I'm having the below error, I tried to connect to a local server and it worked, please see the error and try to help:


System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) at System.Data.SqlClient.SqlInternalConnect...

Visual Studio 2005 And SQL server 2000, PLEASE HELP?
Try the following page as this has many troubleshooting tips for SQL Server http://blogs.msdn.com/sql_protocols/arch...


Visual Studio 2005?

I am a new user of VS 2005, and wanted to develop under asp.net 2.0 using VB or C#.





I am just thinking, whats the big difference of using vb 2005 and vb.net ?





I really like VB 2005, but do I need to study VB.net before using VS 2005?





Pls. compare VB.NET and VB 2005, and what are their strong and weak part. Please help.. thanks

Visual Studio 2005?
There's no big difference between VB 2005 and VB.NET.





VB 2005 has a lot of new functions, flexibility that will lead you to robust application development and integration to other Microsoft products like ASP.NET.





Also, before installing VB 2005 read the "FAQ, README and WHATS NEW" this will help you a lot.





And use .NET Framework version 2.x for VB 2005 instead of version 1.0.

community survey

Visual Studio 2005? The error list.?

at school the build errors are listed and organized, but at home it is just one big sentence. How do I change it to work like school. Same version both pro version. Using C++.

Visual Studio 2005? The error list.?
I've never looked into this but there should be a way to do this in your config file. Google it and you should be able to find something about it. Search for Stack trace in VS 2005


Visual Studio .NET supports????

a. XML viewing in both tabular and text format


b. Multiplatform database access


c. Web service creation


d. all of above


e. none

Visual Studio .NET supports????
d. all of the above
Reply:D


Visual Studio Epress help?

ok where can i get a free copy of it or a similar program I wish to learn C++ for homebrew DS games. i already checked the microsoft website and it wont download

Visual Studio Epress help?
You should be able to get it from Visual Studio Express from the Microsoft download site. I've downloaded it before.





If you haven't developed before, I would recommend starting with the KPL - Kids programming language. Even if you are an adult, this is a good place to start.





Go to this web site for downloading VS Express 2005


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


Problem with Microsoft Visual Studio 2005. I'm not able to get all of the languages that I paid for. Help!

I need to know how to get all of the languages in this suite to function? They are C#, C++, VisualBasic, J# and the SQL database. The only one that I could ever use was C++. I was told by Microsoft that the .Net 2.0 framework is crippled, and they can't repair or replace the suite of software. Now that I'm out of all that money what can I do?

Problem with Microsoft Visual Studio 2005. I'm not able to get all of the languages that I paid for. Help!
Are you making this up? Seriously, if you paid for VS 2005 (or if you had the money to pay for it), you would have to know how to click on file-%26gt;new project or solution or whatever it's called, and browse the list on the left hand side.





And what's this about Microsoft telling you 2.0 is crippled?

order flowers

Application.StartupPath (VB--Visual Studio 2005)?

I have a program (my first where I made up all the code instead of copying it out of a learn-to-program book!) that needs to use a .txt file as input. I've been using the line:





FileOpen(1, "C:\Folder Name\FileName.txt", OpenMode.Input)





but I wanted to change the hard coded path to use Application.StartupPath instead so that if people put it somewhere other than the C drive it would still work. So I used the line:





FileOpen(1, Application.StartupPath %26amp; "\Folder Name\FileName.txt", OpenMode.Input)





but then my code wouldn't debug properly.





I get an error message when I try to debug that says:


Could not find a part of the path 'C:\Folder Name\Folder Name\Folder Name\bin\Release\Folder Name\FileName.txt'.





What am I doing wrong?





Thanks!

Application.StartupPath (VB--Visual Studio 2005)?
Not a simple problem. You do nothing wrong. Windows (more exactly - VB) does some unclear things.


"Working directory", as Microsoft thinks, is sometimes directory of "current user home directory", sometimes "c:\", depending on what buggy Windows version you use.


You need to use GetModuleFileName funcrion from Win32 API to obtain full pathname of your executable. Then you need to strip filename (after last backslash) - and you will get current directory where your program is placed.
Reply:Make a button n write this lil code....





Dim ofd As New OpenFileDialog()


Dim dia_result As DialogResult = ofd.ShowDialog()


If dia_result %26lt;%26gt; DialogResult.Cancel Then


Dim fstream As New FileStream(ofd.FileName, FileMode.OpenOrCreate, FileAccess.ReadWrite)


Dim sw As StreamReader = New StreamReader(fstream)


Dim temp As String = sw.ReadToEnd()


'write the file to a TextBox1


TextBox1.Text=temp





end if


.net visual studio 2003 help plz?

hi..


i can able to create new windows applns,


but unable to create web application..


the error is..


Unable to create Web project 'webapplication1'. The file path


'c:\inetpub\wwwroot\webapplication1' does not correspond to the URL


'http://localhost/Webapplication1'. The two need to map to the same server location. HTTP error 403:forbidden.











i have win server 2003, and installed iis also..


what r the possible problems..


plz help me..

.net visual studio 2003 help plz?
Honestly, In not sure what your problem is- but I do know something that could be a solution for you anyway.





Microsoft is giving away Visual Studio 2008 for free(to college students). Installing a newer version will probably eliminate your problem(in a roundabout way).





You have to prove your a college student, you might have to sign up at www.journeyed.com but you getting free software out of it. After that you download an iso(visualstudio.iso or something), mount it with alcohol 120% or Daemons tool and install.


Inline functions in VC++ (Visual studio 6)?

I was told that Inline functions in C++ work like macros in C


saving the 'overheads' before and after function calls.


But Disassembly window in VC++ shows other wise. Here is the code..





inline double InlSquare(double x){return(x*x);} //inline


#define MacSquare(x) (x)*(x) //Macro





int main(void){double a=2.5,b=0,c=0;


b=InlSquare(a);


c=MacSquare(a);


return(0);}





Here is an excerpt from VC++ Disassembly with 'Source annotation'-


9: b=InlSquare(a); // inline Function


mov eax,dword ptr [ebp-4]


push eax


mov ecx,dword ptr [ebp-8]


push ecx


call @ILT+10(InlSquare) (0040100f)


add esp,8


fstp qword ptr [ebp-10h]





10: c=MacSquare(a); // Macro Function


fld qword ptr [ebp-8]


fmul qword ptr [ebp-8]


fstp qword ptr [ebp-18h]





After the "Call @ILT+10" instruction we encounter push and pops


push ebp


mov ebp,esp


sub esp,40h


and many more..'over heads' before the execution of fld,fmul and fstp etc.





Is there any way to make inlines work like C Macros ?

Inline functions in VC++ (Visual studio 6)?
The link below would have the answers you need.





To summarise it for you, VC does have a way of forcing inline functions to be like macro that is '__forceinline'





I do not know why you want to force the inline functions to work like macros, but take a read at the link below and see why it's not recommended to use __forceinline.





Hope this helps.


How can I make a "global object" in C++ (VS2005) similar to how I would in VBA?

In VBA I have always creates global objects by defining them at the global level like this:





public myObject As myClass





How can I do something similar in Visual Studio 2005 with C++?





Currently I have a button, text box, main(), and an event handler for the button. Where do I define the object so that when the event handler is called it can always access to object?

How can I make a "global object" in C++ (VS2005) similar to how I would in VBA?
You do it essentially the same way. You declare the object outside the scope of any function, including main(). In some cases you might want to make it static.





This is, of course, in general an extremely poor design practice.





#include %26lt;iostream%26gt;





using namespace std;





class A


{


public:





A() {cout %26lt;%26lt; "hello\n";}


void print() {cout %26lt;%26lt; "print\n";}


~A() {cout %26lt;%26lt; "goodbye\n";}


};








A a;





int main(int argc, char *argv[])


{


a.print();


}
Reply:you declare public attributes of the class lis this





class myClass


{


public:





}


then you create an instance of that class in main.

spring flowers