Tuesday, July 28, 2009

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


Monday, July 27, 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.


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

quince

How to include windows.h correctly?

I am using VC++ 2005 standard edition and tried using #include %26lt;windows.h%26gt;


in my project but there are a list of errors with the description:


"error C2872: 'IUnknown' : ambiguous symbol C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\unknwn.h "





I found that the windows.h file is in the C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK directory. The project has also included the $(VCInstallDir)\PlatformSDK\lib, \include and \bin lines in the project options window.





How to include windows.h correctly?

How to include windows.h correctly?
Is the program failing on the include? Did you try a simple console program, that does nothing but include windows.h? There is nothing more to it than #include %26lt;windows.h%26gt; and then linking the appropriate libraries.
Reply:Try #include "windows.h"?


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!


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.


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.

garden centre

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..


How much space should I dedicate to Windows XP?

I have Macbook and currently dual-booting Mac OS and Ubuntu. I want to add windows to this as well. How much space should I dedicate to it.





If I want bare XP Sp2, Microsoft office 2007 Ultimate and Visual Studio Express 2005 C++, C#. Plus bits and pieces?

How much space should I dedicate to Windows XP?
from my personal experience, twenty gigs is plenty, you will get all your updates and have plenty of room for you programs as well,


i personally use minimum of 50 gigs partition for windows xp.


i have big hard drives, i do this on all of my pcs, and then use bigger partitions for different files, i have one for music only . one for videos only and one for pictures and i have changed the drive letters to correspond ie drive V for video , drive M for music, and drive P for pictures , and drive D for documents





but this is the way i do it, you do not have to follow my way, but just use about 20 gigs for xp





this is the link to a group i use you are welcome to join





http://uk.groups.yahoo.com/group/arc_pc_...
Reply:why bother, youre already using linux, get a different release. i use linspire xp2007, and run windows applications in a VM shell.
Reply:I'm not sure about how much space Visual Studio will take, but I think about 10 Gb will do fine. Add another Gb for each 512 Mb of RAM you have in your computer, so you'll have room for the swapfile.
Reply:10gb
Reply:seven is plenty
Reply:If you can manage 10 GB would be sufficient but i would like to know why you want 3 OS on a single machine is it really necessary ?


Need for speed carbon display error?

i have installed nfs carbon and when i run carbon ...i goes fullscreen and then comes out giving me an error message. it goes somethin like this..








%26lt;?xml version="1.0" encoding="UTF-16"?%26gt;


%26lt;DATABASE%26gt;


%26lt;EXE NAME="NFSC.exe" FILTER="GRABMI_FILTER_PRIVACY"%26gt;


%26lt;MATCHING_FILE NAME="EAInstall.dll" SIZE="720896" CHECKSUM="0xC3AAECA5" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/12/2006 17:56:43" UPTO_LINK_DATE="10/12/2006 17:56:43" /%26gt;


%26lt;MATCHING_FILE NAME="eauninstall.exe" SIZE="253952" CHECKSUM="0xAC21038" BIN_FILE_VERSION="1.0.0.0" BIN_PRODUCT_VERSION="1.0.0.0" PRODUCT_VERSION="1.00.00.000" FILE_DESCRIPTION="Uninstall" COMPANY_NAME="Electronic Arts Inc." PRODUCT_NAME="EA Uninstall" FILE_VERSION="1.00.00.000" ORIGINAL_FILENAME="eauninstall7.exe" INTERNAL_NAME="eauninstall7.exe" LEGAL_COPYRIGHT="© 2004-2005 Electronic Arts Inc." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.0.0.0" UPTO_BIN_PRODUCT_VERSION="1.0.0.0" LINK_DATE="10/12/2006 17:56:56" UPTO_LINK_DATE="10/12/2006 17:56:56" VER_LANGUAGE="English (United States) [0x409]" /%26gt;


%26lt;MATCHING_FILE NAME="msvcp71.dll" SIZE="499712" CHECKSUM="0x961BEC37" BIN_FILE_VERSION="7.10.3077.0" BIN_PRODUCT_VERSION="7.10.3077.0" PRODUCT_VERSION="7.10.3077.0" FILE_DESCRIPTION="Microsoft® C++ Runtime Library" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Visual Studio .NET" FILE_VERSION="7.10.3077.0" ORIGINAL_FILENAME="MSVCP71.DLL" INTERNAL_NAME="MSVCP71.DLL" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x8657E" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="7.10.3077.0" UPTO_BIN_PRODUCT_VERSION="7.10.3077.0" LINK_DATE="03/19/2003 04:14:51" UPTO_LINK_DATE="03/19/2003 04:14:51" VER_LANGUAGE="English (United States) [0x409]" /%26gt;


%26lt;MATCHING_FILE NAME="msvcr71.dll" SIZE="348160" CHECKSUM="0x448A147E" BIN_FILE_VERSION="7.10.3052.4" BIN_PRODUCT_VERSION="7.10.3052.4" PRODUCT_VERSION="7.10.3052.4" FILE_DESCRIPTION="Microsoft® C Runtime Library" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Visual Studio .NET" FILE_VERSION="7.10.3052.4" ORIGINAL_FILENAME="MSVCR71.DLL" INTERNAL_NAME="MSVCR71.DLL" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x5F1E9" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="7.10.3052.4" UPTO_BIN_PRODUCT_VERSION="7.10.3052.4" LINK_DATE="02/21/2003 12:42:20" UPTO_LINK_DATE="02/21/2003 12:42:20" VER_LANGUAGE="English (United States) [0x409]" /%26gt;


%26lt;MATCHING_FILE NAME="nfsc.exe" SIZE="8904704" CHECKSUM="0xDBB08DDB" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/17/2006 04:08:43" UPTO_LINK_DATE="10/17/2006 04:08:43" /%26gt;


%26lt;MATCHING_FILE NAME="nfs_inst.exe" SIZE="53248" CHECKSUM="0x96666241" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/11/2006 00:00:05" UPTO_LINK_DATE="10/11/2006 00:00:05" /%26gt;


%26lt;MATCHING_FILE NAME="nfs_uninst.exe" SIZE="45056" CHECKSUM="0x40A35D79" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/11/2006 00:00:02" UPTO_LINK_DATE="10/11/2006 00:00:02" /%26gt;


%26lt;MATCHING_FILE NAME="server.dll" SIZE="380928" CHECKSUM="0x49D0382F" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/20/2005 21:17:24" UPTO_LINK_DATE="10/20/2005 21:17:24" /%26gt;


%26lt;MATCHING_FILE NAME="setup.exe" SIZE="22016" CHECKSUM="0xB60E199" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="07/06/2006 17:41:10" UPTO_LINK_DATE="07/06/2006 17:41:10" /%26gt;


%26lt;MATCHING_FILE NAME="Support\EasyInfo.exe" SIZE="561152" CHECKSUM="0xBC263F5A" BIN_FILE_VERSION="2.0.2.5" BIN_PRODUCT_VERSION="2.0.2.5" PRODUCT_VERSION="2,0,2,5" FILE_DESCRIPTION="EasyInfo 2" COMPANY_NAME="Electronic Arts" PRODUCT_NAME="EasyInfo 2" FILE_VERSION="2,0,2,5" ORIGINAL_FILENAME="EasyInfo.exe" INTERNAL_NAME="EasyInfo.exe" LEGAL_COPYRIGHT="Copyright © 2004 Electronic Arts Inc. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.0.2.5" UPTO_BIN_PRODUCT_VERSION="2.0.2.5" LINK_DATE="07/19/2004 23:23:47" UPTO_LINK_DATE="07/19/2004 23:23:47" VER_LANGUAGE="English (United States) [0x409]" /%26gt;


%26lt;MATCHING_FILE NAME="Support\EReg.exe" SIZE="618496" CHECKSUM="0x7D469126" BIN_FILE_VERSION="1.0.0.59" BIN_PRODUCT_VERSION="1.0.0.59" PRODUCT_VERSION="1, 0, 0, 59" FILE_DESCRIPTION="" COMPANY_NAME="Electronic Arts Inc." PRODUCT_NAME="EReg" FILE_VERSION="1, 0, 0, 59" ORIGINAL_FILENAME="EReg.exe" INTERNAL_NAME="EReg" LEGAL_COPYRIGHT="© 2004 Electronic Arts Inc. All Rights Reserved" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.0.0.59" UPTO_BIN_PRODUCT_VERSION="1.0.0.59" LINK_DATE="10/10/2003 09:08:02" UPTO_LINK_DATE="10/10/2003 09:08:02" VER_LANGUAGE="English (United States) [0x409]" /%26gt;


%26lt;MATCHING_FILE NAME="Support\Need for Speed Carbon_code.exe" SIZE="323584" CHECKSUM="0xF1DC0882" BIN_FILE_VERSION="1.5.4.0" BIN_PRODUCT_VERSION="1.5.4.0" PRODUCT_VERSION="1.05.04.00" FILE_DESCRIPTION="CDKey" COMPANY_NAME="Electronic Arts Inc." PRODUCT_NAME="CDKey" FILE_VERSION="1.05.04.00" ORIGINAL_FILENAME="CDKey.exe" INTERNAL_NAME="CDKey.exe" LEGAL_COPYRIGHT="© Electronic Arts Inc." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.5.4.0" UPTO_BIN_PRODUCT_VERSION="1.5.4.0" LINK_DATE="08/19/2005 17:48:32" UPTO_LINK_DATE="08/19/2005 17:48:32" VER_LANGUAGE="English (United States) [0x409]" /%26gt;


%26lt;MATCHING_FILE NAME="Support\Need for Speed Carbon_uninst.exe" SIZE="73728" CHECKSUM="0x71FE2226" BIN_FILE_VERSION="1.5.4.0" BIN_PRODUCT_VERSION="1.5.4.0" PRODUCT_VERSION="1.05.04.00" FILE_DESCRIPTION="Uninstalls the CD key" COMPANY_NAME="Electronic Arts Inc." PRODUCT_NAME="Uninstall CDKey" FILE_VERSION="1.05.04.00" ORIGINAL_FILENAME="CDKey_Uninstaller.exe... INTERNAL_NAME="CDKey_Uninstaller" LEGAL_COPYRIGHT="© Electronic Arts Inc." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.5.4.0" UPTO_BIN_PRODUCT_VERSION="1.5.4.0" LINK_DATE="08/19/2005 16:15:59" UPTO_LINK_DATE="08/19/2005 16:15:59" VER_LANGUAGE="English (United States) [0x409]" /%26gt;


%26lt;/EXE%26gt;


%26lt;EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY"%26gt;


%26lt;MATCHING_FILE NAME="kernel32.dll" SIZE="984064" CHECKSUM="0xF12E1D4A" BIN_FILE_VERSION="5.1.2600.2945" BIN_PRODUCT_VERSION="5.1.2600.2945" PRODUCT_VERSION="5.1.2600.2945" FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="5.1.2600.2945 (xpsp_sp2_gdr.060704-2349)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xF724D" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.2945" UPTO_BIN_PRODUCT_VERSION="5.1.2600.2945" LINK_DATE="07/05/2006 10:55:00" UPTO_LINK_DATE="07/05/2006 10:55:00" VER_LANGUAGE="English (United States) [0x409]" /%26gt;


%26lt;/EXE%26gt;


%26lt;/DATABASE%26gt;








i ve tried updating my driver .it dint work..


and my directx is upto date..and everyother game works jus fine..except for this one





pls help me out..

Need for speed carbon display error?
im think it will probably the grafix card happen to mescreen would go black and the evo and challanger would pop out then it closes it gonna be u grafix card maybe
Reply:graphics card you probly have a intel graphics card gma 950 belieeve me they suck my laptop has it and i cant play carbon either only plays most wanted it crashs everytime i boot it geforce cards only play it even if its a old geforce still plays Report It

Reply:got that message too.


your computer is not up to requirements


probably your graphics card
Reply:how did u get that game can u please send it to me please thanks


michaelattallah@hotmail.com


or this one


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.

flower show

Can anyone recommend a Code Review tool for C# ?

I am looking for a Code Review tool for C# that





1. Integrates with Visual Studio 2005


2. Allows you to easily add custom rules


3. Doesnt cost a mint !





The main need for this tool is to ensure that our developers adhere to our Microsoft Coding Standards and our own specific set of standards.





So far I have come across:





* FxCop - only works on assemblies and is difficult to customise


* Code Analysis for Visual Studio Team Edition - too expensive


* SSW Code Auditor - trial version seems buggy





The following site is the best I have found for simialr tools but none really meet the criteria:





http://sharptoolbox.com/categories/code-...





Any help would be greatly appreciated.





Seamus

Can anyone recommend a Code Review tool for C# ?
pinkworld.com


desipapa.com


worldsex.com


etc
Reply:I really did not Know


C++: Why is DateTime not working?

The C++ following code (in Visual Studio 2005) generates the error message, "DateTime: undeclared identifier" when i try to compile. Am I using the namespace incorrectly? Why would this not work? Microsoft indicates that DateTime can be used if you use the System.IO namespace...





using namespace System;


using namespace System::IO;


#include "stdafx.h"





void MyProgramDlg :: OnBnClickedUpdate()


{


DateTime x;


}

C++: Why is DateTime not working?
try moving #include "stdafx.h" to the top, above the 'using namespace'.
Reply:First of all, you declare X to be a datetime object now you need to access the date and time





Look in your help file - Can't recall the object names to access but it will be in this format


x.hour x.min


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#


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.

phone cards

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.


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.


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.


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.

orange

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.


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.


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.


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

flash cards

How was Windows made exactly?

What codes was it made in?


I know the kernel is programmed in machine code, because it is simple.


But I can programme operating systems quite easily with MASM, but how did they make the machine code handlers like that?


I use C++, C, ALGOL and a few others, mixed with ASM to code kernels that will hold the OS I want to create, then I study device drivers and their architecture, its quite hard. But then I tried Macro AsSembly Language (MASM), by MicroSoft.


As a plug-in to Visual C++ 2005 Express Edition on Windows Vista. It doesn't install anything that I can really use to develop operating systems.


Is there something just like what MS uses but is free and can generate a kernel and operating system with a familiar Windows GUI (desktop), I mean I can create that. But I just want the ASM compiler with C and C++ as well.


Plus is there any free source code to old Windows Operating Systems?

How was Windows made exactly?
If its there, I'd like to see it. But I'd put a bet on it not being available (the source code, at least).
Reply:I think you are asking for trade secrets - if anyone really knew what you are asking, Windows would probably have more competitors than it does. The closest thing I would suggest is to look into some Linux distros - perhaps you can get some ideas from them, as all of the source code is available. Good luck.


How do i show ajax control toolkit in toolbox use visual studio 2005?

i have installed ASP.NET 2.0 AJAX Extensions in my computer, and copy AjaxControlToolkit folder in c:\Program Files\Microsoft ASP.NET, when i run visual studio i cant found it in toolbox, how can i show it? i am it's first time i use asp.net n ajax asp.net, please give some solution and references





thanks a lot

How do i show ajax control toolkit in toolbox use visual studio 2005?
Here is the answer:


Create a Tab in Visual Studio (you can named it Ajax Toolkit).


Then right click on it and select: Choose Items...


Go to the folder where you downloaded the toolkit (you might have to move all the information to a new folder since it wont let you open a .zip folder)


Click browse and go to: SampleWebSite -%26gt; Bin


Choose: AjaxControlToolkit.dll and click open.





That should install all the components from the toolkit in visual studio.





Hope this help.

flower girl

Visual Studio 2008 for C++?

How does Visual Studio 2008 compare to 2005? Specifically for standard C++. Is the compiler more standard compliant now? Any major changes to the IDE for the c++ perspective?





I don't program C# or anything .NET so any refinements to the IDE for that language and the platform don't apply to me. Also, I have been wanting to try XNA and from the forums it seems it only works with VS2005 for the time being.





Currently I have VS2005 with SP1. In the past I have used MFC, but I've heard that is pretty much obsolete now. Through school I can obtain a free copy of VS2008 and I'm wondering if I should spent the time to upgrade.





Please only answer this question if you have knowledge about the subject. No links to Microsoft or Wikipedia please. And Yes I already searched previous answers on this site.

Visual Studio 2008 for C++?
I use both 2005 and 2008 professional at work, and both 2005 and 3008 express at home (although my home use is almost exclusively C# and XNA). The link below is someone else's answer to this question, I myself have yet to notice any major difference in day-to-day usage.





You're correct in that XNA currently only supports 2005, this can cause problems if you have both 2005 and 2008 installed (some of the XNA samples automatically install their template on the latest version of DevStudio, i.e. the wrong one).





Microsoft provide "Express" versions of C++, C#, VB, Web Developer and SQL Server for both 2005 and 2008 editions. They're totally free to download and you can also use them in commercial products (see the second link below). The main difference is that their template support isn't quite as good and they lack some small extras like IDE macro recording/playback.


Visual Studio 2005 Express Questions?

1. How would I make a hex editor in Visual Basic 2005 Express?


2. What the heck is C sharp anyway?


3. How get something from a VB program to my webpage (such as a contributing idea given from a text box) without copying and pasting manually? (via code)


4. What is J sharp anyway?


5. Can OpenOffice.org be used in full compatibility (all the functions and stuff) that Microsoft Office can? If not, what can and can't it do with the Visual Studio Programs?


6. Where is a good resource for Visual Studio as a whole, for all skill levels (don't say MSDN, darn it!)?





I would appreciate it if each person would answer one, some, or all of these questions.

Visual Studio 2005 Express Questions?
1) With a lot of work, pain and headaches. It's not worthwhile to waste your time in Visual Basic.


2) It's a scripting language.


3) By completely reworking the code from Visual Basic to something like JavaScript. Usually JavaScript alone will not be enough and you'll need to use more things.


4) Another scripting language.


5) OpenOffice.org does not support VB for applications and I don't think it supports any scripting language from Microsoft.


6) MSDN is the best resource out there. Other than that, your bookstore.
Reply:1) I don't know and don't really care - there are zillions of hex editors to choose from (most aren't free but a few are). And one written in VB.NET probably wouldn't be all that great. VB is good for quick-n-dirty applications but anything professional is better done in another language, IMO.





2) C# is a programming language.





http://en.wikipedia.org/wiki/C_Sharp





3) Not really sure what you want to do here.





4) J# is Microsoft's "Java killer" based programming language on .NET. Sort of a migratory path for the 5 people in the world who used Visual J++:





http://en.wikipedia.org/wiki/J_Sharp





5) Huh?





6) MSDN. Had to say it :) How about:





http://www.codeproject.com/





Instead?








Edit: To the person above this post, C# and J# are [bytecode] compiled languages, NOT scripting (or interpreted) languages.


How do you create a comma delimited file in C#?

I've found that comma delimited files are very useful in C++, but I'm now working in C# and have no idea how to open and write to a .csv file in this language.





Help!





Specific examples would be appreciated. I'm working in Microsoft Visual Studio 2005.

How do you create a comma delimited file in C#?
Here's basif File IO:


http://support.microsoft.com/default.asp...





You can always split the string you read in on the comma delimeter into an array:





string[] lineItems = fileLine.split(',');


RightTriangle function for C++?

The book I am consulting is Gary Bronson, C++ for Engineers and Scientists, Second Edition, Course Technology, 2006, ISBN 0-534-99380-X





I’m using Microsoft Visual Studios 2005 .


So here is what I’m attempting to do:


1. Write a function rightTriangle that accepts two double arguments (the two sides of a right triangle a, and b) and returns one double value (the length of the hypotenuse). The function prototype should be defined in file student.h and the function itself should be written in file student.cpp.


2. Write a program in Main.cpp that reads the two sides from a file, uses the function rightTriangle to calculate the hypotenuse length, and writes all three values to an output file.


3. Execute the program using the following triangle side input.


First Side (a) Second Side (b)


3 4


5 12


12 16


2.8 4.5








The problem is that I cannot get the function to strip values from my inFile. It says that inFile is an undeclared indentifier in my function

RightTriangle function for C++?
are you declaring that you are using a file? usually you have to use the file package


#include %26lt;fstream%26gt; in the beginning. then you need to declare your files...





ifstream inputfile.open("input.txt");


ofstream outputfile. open("output.txt");





that should fix your input problem

curse of the golden flower

Visual studio 2005 download?

i need to download visual studio 2005 ,,, the version which comes with c#,c++,mobile and web application all together... the one being installed in this tutorial http://www.15seconds.com/issue/060202.ht...





i had downloaded and installed it some time ago but i cant find the installation on microsoft website... what i found is http://msdn2.microsoft.com/en-us/express... and that does not include mobile applications and it installs each ones separately...





Thanks alot in advance

Visual studio 2005 download?
The express versions are the 'free' versions. The version you see is the standard edition.





The standard, professional, enterprise / team-system versions are gonna cost you a few bucks / pounds / euros, ...


How can I download and install SP2 for Windows XP.?

I have installed Microsoft Visual C++ 6.0. When I wanted to install MSDN Library for Visual Stdio 2005, I see this message : It requared Win XP Pack 2. A person say me to download and install SP2 for Windows XP. If this answer is correct? If yes, how can I download or buy and install SP2 for Windows XP?


Thanks a lot.

How can I download and install SP2 for Windows XP.?
if you have windows xp go to http://www.microsoft.com/windowsxp/sp2/d... to update to service pack 2


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.


Borland C++ 3.1 moves very slow on Windows XP?

Borland C++ 3.1 moves very slow on Windows XP Service Pack 2. ntvdm.exe (Windows NT DOS Virtual Machine) takes the CPU to ~99%.





What should I do?


(Don't suggest me to use other IDEs. I use Microsoft Visual Studio 2005 too, but I need to test something on Borland C++ 3.1)

Borland C++ 3.1 moves very slow on Windows XP?
install a copy of nt4 and dual boot.

apricot

Any good tutorials or help on C#? Please?

I recently got Microsoft Visual Studio 2005 and I want to begin and experiment in C#. I've read through a few tutorials on the program, but it doesn't really help alot...





Can anyone please refer me to a good tutorial for BEGINNERS..hehe. I really want to be good at C#.





Thanks,


CK

Any good tutorials or help on C#? Please?
MSDN site:





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





Outside Online software tutorial site:





http://www.vtc.com/
Reply:if you have no background on programming, then be careful with c#.. ;)


you can use MSDN as your first and last resource for learning c#, and if you can buy this book : "Developing windows bases applications using microsoft visual basic.net and microsoft visual c#.net" it would be a great help...


and if you changed your mind to move to VB.NET than i might be able to help you more ;)


Is there a way to specifiy which line to insert text in a text file using C#?

I need to be able to specify a line to insert text on in a text file. I'm using Microsoft Visual Studio 2005 and writing my program in C#.





Thanks.

Is there a way to specifiy which line to insert text in a text file using C#?
One way you can do it is to read the whole file into a string, split the string based on the carriage return into N number of strings one for each line, then use InsertAt function on the ArrayList to insert your line.





To write the output, you'll need to use a StreamWriter with WriteLine for each item in the ArrayList.





The following link explains in details how to do this, along with the C# code to do it:





http://www.mycsharpcorner.com/Post.aspx?...





Hope this help you out.





For more C# tips go to http://www.mycsharpcorner.com


Including header files in the subdirectories?

Hi,





I am using Microsoft Visual C++ Express edition 2005 for writing a program. I needed an xml parsing library and i chose to use the Xerces libraries. The problem is that the header files are located in my D:\Program Files\Microsoft Visual Studio 8\VC\include\xercesc directory. the search path for the include files includes the path till D:\Program Files\Microsoft Visual Studio 8\VC\include so the compiler doesnt search within the xercesc directory and i am getting file not found error when i use #include%26lt;xercesc\utils\Platformutils.hpp... How to make the compiler search within the subdirectories of the included paths???


Also is the statement


#include%26lt;xercesc\utils\Platformutils.h...


correct??

Including header files in the subdirectories?
Use within double quotes ... dontuse %26lt;





include "dirname/filename.h"


You should help me by checking the below Details.......?

Hi,





At present I'm using Professional Windows XP Operating System(service pack 4) and I've OPC Clientx Software version of 1.5.0.4 demo version. I need to run one Cobble tufting machine automation project by using the above requirement in Microsoft Visual studio 2005 (C# ,windows Application) environment. But when I started to run the application the following errors are occuring....





OPC Clientx version 1.5.0.39,runtime version v1.0.3705 this is the software version I needed that I think. Could you pls check the below errors and send the details of appropriate OPC clientx software demo version.





Check the below Errors


Error 24 Exception occurred creating type 'Infragistics.Win.UltraWinGrid.UltraDrop... Infragistics2.Win.UltraWinGrid.v5.3, Version=5.3.20053.73, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' System.ComponentModel.LicenseException: Unable to locate license assembly. C:\Documents and Settings\raviv\Desktop\cobble\Cobble 1.2 Sour

You should help me by checking the below Details.......?
whats xp service pack 4??? service pack 3 has not been released yet.





and by the error id say there was a problem locating a valid license

song words

How do I read a BYTE [not a sector] from a CD, preferably in C++?

I do apologize for having to include this in my question, but because the programming section is usually plagued full of slackers, pranksters, embeciles, and just plain ignorant individuals that interfere with those of us that wish to use this sub-site as a learning tool, it must be included: Please READ the darn question before you answer it. Please give an INTELLIGENT answer, not Huh? wot? I dunno, etc. ... Please PAY attention Do not give me code for VB5 under WinNT, DJCPP, or GCC on Linux, when all you had to DO was READ the whole question to realize I do not want that particular information. Thank you all for letting me speak my piece. Now on to the rest of myt question. I can use code in VC6, Visual C++ 2005, and Visual C# 2005. Managed / .NET is acceptable as well. I can use code for any Win32 OS. However, I do NOT do VB6, VB.NET, .VBS, Linux or any code developed for a Non-Microsoft OS. Thanks for all the help.

How do I read a BYTE [not a sector] from a CD, preferably in C++?
Hmmm, I never tried that, but assuming the byte is in a known file, I would think you could just open the file (same as on your hard drive), and read it out as characters. You would most likely have to open it as read (not write or read/write). Thats what I would try first.
Reply:It really won't matter which language you use, you are probably going to have to do a lot of low level OS interfacing, because reading at that level potentially violates a lot of OS protections that have been put in place to keep random programs from reading and writing random bytes to random positions your IO devices. Its just like reading from the 1537614th byte from your NTFS filesystem... you're supposed to be interfacing with the filesystem at the conceptual filesystem level, not the byte level, and its a good thing that most programs cannot.





BTW, VB.NET is easily translated to C# so even if you had a VB.NET solution, you probably could find something that would automatically translate it to C#. But I really doubt you'd find either.





CD's, Hard disks, etc, all read in blocks of data at one time so, like G. Whilikers said, even if you read in one byte, at some place in your memory the CD reader has read in the whole 512 bytes... so if you have code to read in the sector, the're really no other way to do it. Just pick the specific byte you need from that sector block.
Reply:Either find a way to treat the disk as an i/o stream, or grit your teeth and read the sector then pick up the byte you want. Even if you had a getSpecificByteFromCD() function available, underneath it's going to be reading the whole sector behind your back anyway.


I'm trying to learn Visual Studio 2005 and I'm having a difficulty with databases.?

I'm trying to learn Visual Studio 2005 and I'm having a difficulty with databases.





I am new at VS 2005 (C#) and I'm now trying to learn how to connect my excel spreadsheet with it. and its giving me an error "ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed "





I'm trying to connect it to a datagrid. Am I forgeting something? I tested the connection and it was Ok.

I'm trying to learn Visual Studio 2005 and I'm having a difficulty with databases.?
I am very sure you can get some help from the sample programs. Try this site


http://www.planetsourcecode.com
Reply:Hii.......





i think u are using VB.60 of visual stuio.





From ur error message, it shows tat u r trying to connect to a SQL database, not to an excel's.





So jus take care in selecting the options





in the " connect " property of ur data, jus select the correct version of excel, that u r using, also be careful in selecting ur recordset.





hope it works


u may rite 2 me


Good & free C++ program...?

I need to find a good and free C++ Program. I have Microsoft Visual Basic 2005 Express Edition, and I want to find a program that writes C++. Please help!

Good %26amp; free C++ program...?
I dont know if this will help but try these sites listed...








http://gcc.gnu.org/





http://www.goosee.com/x86/index.html
Reply:i hope this helps





Free C++ from scratch Free PDF Ebook





http://www.ebooknetworking.com Report It

Reply:GCC


Is "Visual C++ 2008 Express Edition" permanent or temporary ??

Hi guys, this is a question for the programmers out there.


I just downloaded and installed "Visual C++ 2008 Express Ed" from their website:


http://www.microsoft.com/express/vc/


Does this Express Edition expire or is permanent on my computer, (does it expire after a few months) ?


Their quote is "Free, but limited editions of Visual Studio 2005 for a single programming language supported by .NET."


What does that mean? Does it mean for a limited time or does that mean something else?


[ I'm just worried that someday I'll get an error message like, "Sorry, this Visual C++ Edition has expired". ]

Is "Visual C++ 2008 Express Edition" permanent or temporary ??
it is permanent but you should use something like code::blocks because microsoft is eeeevil
Reply:The Express editions are totally free but you have to register them with Microsoft within 30 days of installing the product.





Each copy of Express only supports one programming language, but there is no reason why you can't download and install all Express products.
Reply:Hi there,


No, your cool, it is free. The express editions supposed to have slightly limited functionality, as with the express edition of SQL server, its free but limits the databases to a certain amount of gig (i think its 2 or 4 gig). So most individual programmers would never know they are limited. So enjoy!

song titles

How Re-install Visual Studio 2005?

i need help


Before two months i installed visual studio 2005 through internet. [ OS xpsp2] total 600mb downloaded


tomarrow i format my harddisk [due to system slow problem]


so how i use my previous installed files to reinstall vs2005





before format i copied all the data of folder


C:\Program Files\Microsoft Visual Studio 8\


to another partition of disk





plz help me

How Re-install Visual Studio 2005?
Don't reformat your hard drive!!!! That is only to be used as a very LAST resort!





First, run a defragmenter program such as DiskKeeper, etc.





As you save files to your hard drive, the files soon become split up over the area of the hard drive, so the computer takes longer and longer to put the fragmented files back together again when you load them.





When you "defrag" your hard drive, it puts all the files back together again, each one into its own big "clump", so the files will load faster.





This is a time-consuming process, so you must be patient and not use your computer while it is defragmenting, or you can refragment the hard drive even as it's trying to defragment it.





The other way to speed up your computer is to add more memory, but only after you "defrag" your hard drive.





Good luck.
Reply:plz go to control pannel and then go to the add or remove program then remove the application that you want.ok.
Reply:You cannt simply copy that folder to other drive.. wont work that way.. just uninstall it, then format the drive, then re-install it.


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.


Open Outlook and create email w/ Visual Studio 2005 in C#?

Have a form w/ a button. When clicked it needs to open Microsoft Outlook and create an email that will populate the To, From, Subject, and Body. The To will be pulled from an access database and From, Subject, and Body will be predifined. It will also need to have a report from Crystal Reports attached to the email. Also I don't want the email to automatically send, the client says he may want to change the wording sometimes or add notes. So want it to be automated to the point the user only has to push sent (or add more text...). Any help is appreciated as I have found nothing online about this!!! AHHHHHHHHH!!!!!!!!!!!

Open Outlook and create email w/ Visual Studio 2005 in C#?
Because you're doing this in C#, I'll make some assumptions about your skill level by not going into detailed steps. I'll also assume you already now how to pull your data. Attaching the files is done using oMail.Attachments.Add().





Add a reference to the Outlook COM object.





Use the following in your Click event:





private void button1_Click(object sender, System.EventArgs e)


{


Outlook.Application oApp = new Outlook.Application();


Outlook._MailItem oMail = (Outlook._MailItem)


oApp.CreateItem


(Outlook.OlItemType.


olMailItem);





oMail.To = "email@email.com";


oMail.Subject = "Subject Here";


oMail.Body = "";





oMail.Display(true);


}





Pardon the funny breakdown, Yahoo likes to truncate.





Added: I just noticed you're doing this in VS2005, this code was created and tested in VS2003.





The Data Analyst - http://www.squidoo.com/thedataanalyst


A problem with my Microsoft SQL Server 2005?

When I download it, it gives me this message "There was an unexpected failure during the setup wizard. You may review the setup logs and/or click the help button for more information. " How do I fix this problem?! I really need it for my Visual Basic C++ 2005

A problem with my Microsoft SQL Server 2005?
Look on the internet!

song downloads

Visual C++ Express to MS SQL Server Express question?

I installed Visual C++ Express 2005 and MS SQL Server 2005 express. I was playing with the idea of creating a front end program and writing/reading to the MS SQL database. I created a new database using the SQL server management express and was looking to connect the database to my Visual C++ program. In the Visual C++ Express, I see there is a Database explorer in which I can connect to a database. I put in the correct .mdf filename, put when I press OK, I get the following message:


"Unable to open the physical file c:\program files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\test1.mdf


Operating system error 32 "32(The process cannot access the file because it is being used by another process.)"


An attempt to attach an auto-named database for file c:\program files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\test1.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on a UNC share"





Can someone help point me in the right direction with what I

Visual C++ Express to MS SQL Server Express question?
I am not a VC++ guy but it seems like you cannot access an existing databases in the manner you are trying to.





Try to detach you database from with SQL Server and then try it. It might work.





Read more carefully you VC++ documentation.





Ways of connecting to online databases might be through ado,rdo,odbc,oledb interfaces etc.


Windows vista/laptop question?

i just bought a new laptop and i am in the process of deleting things that i know i don't need, but the stupid salespeople put on anyway (i.e. dvd burners.. there are like 3 of them on here!)..


however i was hoping someone could tell me what this is:





"microsoft visual C++ 2005 redistributable"


i want to delete it because its taking up like 600 mb but i dont want it to be something important.. HELP!!

Windows vista/laptop question?
Hi there





Luckily i was one of the beta testers for XP / Vista, so can answer your question honestly. You can uninstal Visual C++ 2005 as its only need if programming. Its not a required item, just takes a lot of space. I also use a Vista laptop and its not installed, so it is not required.





I work in Internet tech support too and deal with wireless internet, so feel free to ask me any questions at all. Feel free to add me to Yahoo.





Rodney
Reply:do not delete


it will crash all your software
Reply:Visual C++ is just a programmer tool...for programming geeks like myself...you dont need it, so you can safely delete it, but if it makes you feel better...set up a system restore point before you do it....
Reply:It's used by programs that need C++ libraries to function. I would leave it if I were you. Also, it's not generally computer salespeople that put software on the laptops, it's generally the manufacturers.
Reply:It's probably there for a reason, just leave it. 600MB isn't that big if you have a brand new laptop.
Reply:You should be able to delete the program with no problem at all...it is just a program for computer geeks to make tweaks in the system..Also 600 MB is not that much space...it is very small...what do you think is bigger...1 GB or 600 MB...1 GB..and there is 1024 MB in one GB..so you should be fine if you dont delete it...I got some games that are 3000 MB which is 3 GB...and I have a 100 GB HD and my laptop works just fine and it doesnt have vista on it..you should be fine...RAM is what you need..if you are worried about speed problems


How to make it reboot the machine?

Hi im currently creating a program and for it to work I need it to reboot after the user clicks Yes but I dont know what the code would be to make it reboot the machice.


Im using Microsoft Visual C++ 2005 Express Edition.


Please give me the code or a direct link not a whole website.

How to make it reboot the machine?
why not just make life easier and prompt the user to manually restart there computer for the changes to take effect.


I find it damned annoying as a software user if a program automatically reboots my system.


you willl endf up with happier end users and your life in coding a little easier, and may be more sales from word of mouth if done correctly.
Reply:You can use the following statement:


WinExec ("RUNDLL32.EXE shell32,SHExitWindowsEx 2", SW_SHOWNORMAL);





Thanks,


Gabriel Topala


http://www.gtopala.com