Monday, May 24, 2010

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.

statice

!!All C/C++ programmers should click here!!?

Which is a better compiler----Dev C++ or Microsoft Visual Express 2008?





Why?





Which one do you use?





Can you please explain me classes?





The most exhaustive answer gets 10 points!


(But dont just copy-paste frm another website coz i will be putting the thing in quotation marks to Google it)

!!All C/C++ programmers should click here!!?
Dev C++ isn't a compiler. It is an IDE. It uses MINGW, which is based off of GCC.


So are we talking compiler or IDE? With that said, Microsoft latest compilers 2005 and 2008 are excellent, and they are ANSI compliant, so that argument about being proprietary is bs. Sure you can down that path, but you are not required. The only quirk I have found between the two was in a student's program, where when compiled in Dev-C++ it caused the OS to throw an exception, and it didn't in Microsoft. My conclusion was based on the code, that Microsoft compiler initialized the variable with 0, and thus prevented the exception; whereas, GCC didn't. You can look at this as either good or bad.





Now as far as IDEs, Visual C++ is slower to load, but beyond that it is far superior to Dev-C++, especially when it comes to debugging. The debugger in Dev-C++ is still problematic. The intellisense in Dev-C++ is also much slower than that with Visual C++.





I personally usually have more than one compiler, and have both of these installed, plus some others, but if you were only going to go with one I would go with Microsoft's. I also find Visual Studio's error messages to be more verbose and precise.





Classes are only part of C++, and not C. They are used to support object-oriented programming. Object-oriented programming is programming in which data and the particular functions that perform work on that data are combined into structures called classes that act as a blueprint to make objects.





Classes are very similiar to structures. In object-oriented programming, you make objects. For example, you can make a class called Car. This car has variables to hold the make, model, and year of the car in the class. It also has methods or functions to perform operations on that class or change the data or state of that class. From this class Car, objects can be created. For the most part a class is a complex data type, just like int, bool, char. An object is an instance of the data type. It is like a variable name that is declared.(eg. int x)
Reply:I use Visual Studio because friend and foe agree that it's by far the best IDE out there. Admittedly, MS does not completely adhere to all standards (it's spelled 'proprietary' btw) but if you as a programmer are knowledgeable you can always force yourself to abide to standards.





And if you want a light footed compiler that adheres to standards, you should go for gcc... :-)
Reply:i use Dev C++ i tend to avoid Microsoft's propriatery stuff...





Microsoft usually adds their own set of garbage into the mix. Dev C++ has a much lighter footprint and is fully-functional.
Reply:I use Dev always have done and always will,


1) Good gui


2) It is not microsoft


I have it on my 2 desktops and my laptop, it is light and works on most OS even the old 95-Me for windows
Reply:When I was trying to learn C (I didn't get very far), I used dev C++





If C doesn't work out for you, try to learn BASIC. Yes, BASIC is old, but it's easy to learn.





http://www.anime.web.tr/download/qbasic4...


How can we reference c# code into vb? Please help!?

I have some problem when i try to reference C# code into vb.net





Intellisense does not show me anything


for eg. a c# class 'Microsoft.Samples'


When i type 'Microsoft.' then intellisense does not show me samples.I have imported the class file into my project.





Please give suggestions...

How can we reference c# code into vb? Please help!?
Did you add the dll to the project, too? Go to References, right click, and look for the dll you want to add.





Then use the "Imports" statement.
Reply:See these links





http://www.dnzone.com/forum/topic.asp?to...





http://www.thescripts.com/forum/thread25...
Reply:How can we reference c# code into vb?


Which is good c,c++ compiler with IDE?

I have been using turbo c++ for dos , i want to shift to windows applications which is the best c,c++ IDE i want something other than visual c++ express microsoft , cygnu , dev-4.9

Which is good c,c++ compiler with IDE?
I started using the Watcom compiler which is now free from:





http://www.openwatcom.org/index.php/Down...





Most of my C/C++ source codes for Windows are on my website (free):





http://freespace.virgin.net/roy.longbott...
Reply:You can also use vi in windows, and customize it to compile your source.





You can try borland C++ IDE


Eclipse IDE with C++ plugin


netbeans with C++ plugin
Reply:check Qt-designer from troll tech


Does "C++ Primer Plus" use Visual C++ for it's examples and stuff?

i've heard that C++ Primer Plus is a great book to get started with C++. but i was wondering if the books examples use Visual C++ (from Microsoft). what does it use?





you see, i prefer it over Dev-C++ and others so i was just wondering. please answer.

Does "C++ Primer Plus" use Visual C++ for it's examples and stuff?
It's strictly ANSI C++! Below is an excerpt from the book itself:





"This book practices generic C++ so that it is not tied to any particular kind of computer, operating system, or compiler. All the programs were tested with CodeWarrior Pro 6 (Macintosh and Windows) and Microsoft Visual C++ 6.0, and most were tested with Borland C++ Command-Line Compiler 5.5, Gnu g++ 2.9.5 running under DOS, and Comeau C/C++ 4.42.5 running under Linux. Only a few programs were affected by compiler non-conformance issues."
Reply:As previously noted, C++ Primer Plus does not relate to Visual Basic C++ specifically.





If you want a good tutorial on using Visual Basic C++, try Microsoft Press's "Step By Step" books, depending on your version:





http://www.amazon.com/Microsoft-Visual-N...





The Step By Step series is aimed at hands-on examples of how to do certain tasks, rather than the "how-it-works" kind of instruction in most books.





I find that if you just want to start making useful things, and not worry about why it works, the Step By Step series is excellent.

clematis

How to remove Microsoft Windows XP Professional?

my pc installed with Microsoft windows professional installed on my hard disk c: and d: both


when i boot my pc i get two messges





1)Microsoft Windows XP Professional (for c:)


2)Microsoft Windows XP Professional (for d:)








how to remove the 2)nd messge , xp on the hard drive d


is corrupted , even after formating the d: drive this messge


at the start up is still exist , how to remove this second messege? xp on the c: dirve is working fine.





i have formatted drive d:

How to remove Microsoft Windows XP Professional?
there is a hidden file called boot.ini, hidden in your c: drive, it will have to be edited, but let a professonal do it, you screw this up, your machine will not boot!


"Smitfraud-C. Toolbar888" and random IE windows?

I am a webmaster, and I am trying to build my website, but my computer keeps acting weird and seems to be going into random hybernation for no reason in the middle of ANYTHING. I tried to do a scan to see if there was any virus/malware that was causing this, but nothing came up.





When I ran Spybot Search and Destroy, "Smitfraud-C. Toolbar888" came up... for the bazillionth time! What do I do??? Also, random websites just pop up in new windows, and I can't stop them. Even pop-up blockers with by Browser and Google Toolbar can't stop them!





Here is some info that I got from HijackThis (You may find Vista applications listed due to the fact that I downloaded the Vista Transformation package from WindowsX):





Logfile of HijackThis v1.99.1


Scan saved at 11:13:27 AM, on 06/05/2007


Platform: Windows XP SP2 (WinNT 5.01.2600)


MSIE: Internet Explorer v7.00 (7.00.6000.16441)





Running processes:


C:\WINDOWS\System32\smss.exe


C:\WINDOWS\system32\winlogon.exe


C:\WINDOWS\system32\services.exe


C:\WINDOWS\system32\lsass.exe


C:\WINDOWS\system32\svchost.exe


C:\WINDOWS\System32\svchost.exe


C:\WINDOWS\system32\spoolsv.exe


C:\Program Files\FSI\F-Prot\fpavupdm.exe


C:\Program Files\Google\Common\Google Updater\GoogleUpdaterService.exe


C:\WINDOWS\system32\PSIService.exe


C:\WINDOWS\system32\wscntfy.exe


C:\windows\system\hpsysdrv.exe


C:\WINDOWS\system32\S3tray2.exe


C:\WINDOWS\ALCXMNTR.EXE


C:\Program Files\Max Registry Cleaner\MaxRCSystemTray.exe


C:\Program Files\LClock\LClock.exe


C:\Program Files\VisualTooltip\VisualToolTip.exe


C:\Program Files\Styler\Styler.exe


C:\Program Files\Spybot - Search %26amp; Destroy\TeaTimer.exe


C:\Program Files\Zero Knowledge\Freedom\Freedom.exe


C:\WINDOWS\system32\ctfmon.exe


C:\DOCUME~1\Owner\LOCALS~1\Temp\{34960... Start Orb.exe


C:\Program Files\Google\Google Updater\GoogleUpdater.exe


C:\DOCUME~1\Owner\LOCALS~1\Temp\{689E0...


C:\Documents and Settings\Owner\Local Settings\Temporary Internet Files\Content.IE5\MDLAAK1Y\Windows-KB890...


c:\5f2b4d98fc082856d2a86ba268e7dad0\mr...


C:\WINDOWS\system32\MRT.exe


C:\WINDOWS\explorer.exe


C:\Program Files\Internet Explorer\iexplore.exe


C:\Documents and Settings\Owner\My Documents\hijackthis_199\HijackThis.exe





R1 - HKCU\Software\Microsoft\Internet Explorer\Main,Default_Search_URL = http://srch-us7.hpwis.com/


R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Default_Search_URL = http://go.microsoft.com/fwlink/?LinkId=5...


R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Search Bar = http://srch-us7.hpwis.com/


R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Search Page = http://go.microsoft.com/fwlink/?LinkId=5...


R1 - HKCU\Software\Microsoft\Windows\CurrentV... Settings,ProxyOverride = localhost


O3 - Toolbar: %26amp;Google - {2318C2B1-4965-11d4-9B18-009027A5CD4F} - c:\program files\google\googletoolbar1.dll


O3 - Toolbar: StylerToolBar - {D2F8F919-690B-4EA2-9FA7-A203D1E04F75} - C:\Program Files\Styler\TB\StylerTB.dll


O4 - HKLM\..\Run: [hpsysdrv] c:\windows\system\hpsysdrv.exe


O4 - HKLM\..\Run: [HotKeysCmds] C:\WINDOWS\System32\hkcmd.exe


O4 - HKLM\..\Run: [StorageGuard] "C:\Program Files\VERITAS Software\Update Manager\sgtray.exe" /r


O4 - HKLM\..\Run: [Recguard] C:\WINDOWS\SMINST\RECGUARD.EXE


O4 - HKLM\..\Run: [nwiz] nwiz.exe /install


O4 - HKLM\..\Run: [HPDJ Taskbar Utility] C:\WINDOWS\System32\spool\drivers\w32x86...


O4 - HKLM\..\Run: [S3TRAY2] S3tray2.exe


O4 - HKLM\..\Run: [AlcxMonitor] ALCXMNTR.EXE


O4 - HKLM\..\Run: [QuickFinder Scheduler] "C:\Program Files\WordPerfect Office X3\Programs\QFSCHD130.EXE"


O4 - HKLM\..\Run: [RCAutoLiveUpdate] C:\Program Files\Max Registry Cleaner\MaxLiveUpdateRC.exe -AUTO


O4 - HKLM\..\Run: [RCSystemTray] C:\Program Files\Max Registry Cleaner\MaxRCSystemTray.exe


O4 - HKLM\..\Run: [LClock] C:\Program Files\LClock\LClock.exe


O4 - HKLM\..\Run: [Vista Sidebar] C:\Program Files\Vista Sidebar\sidebar.exe


O4 - HKLM\..\Run: [VisualTooltip] C:\Program Files\VisualTooltip\VisualToolTip.exe


O4 - HKLM\..\Run: [Blaero Start Orb] C:\Program Files\Blaero Start Orb\Blaero Start Orb.exe


O4 - HKLM\..\Run: [Styler] C:\Program Files\Styler\Styler.exe


O4 - HKLM\..\Run: [ApachInc] rundll32.exe "C:\WINDOWS\system32\ppjickkp.dll",reals...


O4 - HKLM\..\Run: [MSRegScan] C:\Program Files\CMK Demo\RSCMKDemo.exe


O4 - HKLM\..\Run: [j4211039] rundll32 C:\WINDOWS\system32\j4211039.dll sook


O4 - HKLM\..\Run: [setup] rundll32.exe "C:\WINDOWS\system32\nyfblbrr.dll",reals...


O4 - HKCU\..\Run: [SpybotSD TeaTimer] C:\Program Files\Spybot - Search %26amp; Destroy\TeaTimer.exe


O4 - HKCU\..\Run: [Zero Knowledge Freedom] C:\Program Files\Zero Knowledge\Freedom\Freedom.exe


O4 - HKCU\..\Run: [swg] C:\Program Files\Google\GoogleToolbarNotifier\Googl...


O4 - HKCU\..\Run: [MSMSGS] "C:\Program Files\Messenger\msmsgs.exe" /background


O4 - HKCU\..\Run: [ctfmon.exe] C:\WINDOWS\system32\ctfmon.exe


O4 - Startup: Adobe Gamma.lnk = C:\Program Files\Common Files\Adobe\Calibration\Adobe Gamma Loader.exe


O4 - Startup: Vista sidebar.lnk = C:\Program Files\Vista Sidebar\sidebar.exe


O4 - Global Startup: Adobe Reader Speed Launch.lnk = C:\Program Files\Adobe\Reader 8.0\Reader\reader_sl.exe


O4 - Global Startup: Adobe Reader Synchronizer.lnk = C:\Program Files\Adobe\Reader 8.0\Reader\AdobeCollabSync.exe


O4 - Global Startup: Google Updater.lnk = C:\Program Files\Google\Google Updater\GoogleUpdater.exe


O4 - Global Startup: hp center UI.lnk = C:\Program Files\hp center\137903\Shadow\ShadowBar.exe


O4 - Global Startup: Microsoft Office.lnk = C:\Program Files\Microsoft Office\Office10\OSA.EXE


O4 - Global Startup: QuickBooks Update Agent.lnk = C:\Program Files\Common Files\Intuit\QuickBooks\QBUpdate\qbupdat...


O4 - Global Startup: Quicken Scheduled Updates.lnk = C:\Program Files\Quicken\bagent.exe


O8 - Extra context menu item: E%26amp;xport to Microsoft Excel - res://C:\PROGRA~1\MICROS~2\Office10\EXCE...


O8 - Extra context menu item: Open with WordPerfect - C:\Program Files\WordPerfect Office X3\Programs\WPLauncher.hta


O9 - Extra button: Research - {92780B25-18CC-41C8-B9BE-3C9C571A8263} - C:\PROGRA~1\MICROS~2\OFFICE11\REFIEBAR.D...


O9 - Extra button: Messenger - {FB5F1910-F110-11d2-BB9E-00C04F795683} - C:\Program Files\Messenger\msmsgs.exe


O9 - Extra 'Tools' menuitem: Windows Messenger - {FB5F1910-F110-11d2-BB9E-00C04F795683} - C:\Program Files\Messenger\msmsgs.exe


O11 - Options group: [INTERNATIONAL] International*


O12 - Plugin for .spop: C:\Program Files\Internet Explorer\Plugins\NPDocBox.dll


O16 - DPF: {56336BCB-3D8A-11D6-A00B-0050DA18DE71} - http://software-dl.real.com/233de769...p...


O16 - DPF: {644E432F-49D3-41A1-8DD5-E099162EEEC5} (Symantec RuFSI Utility Class) - http://security.symantec.com/sscv6/S.../...


O16 - DPF: {6E32070A-766D-4EE6-879C-DC1FA91D2FC3} (MUWebControl Class) - http://update.microsoft.com/microsof...?...


O16 - DPF: {9A9307A0-7DA4-4DAF-B042-5009F29E09E1} (ActiveScan Installer Class) - http://www.pandasoftware.com/activescan/...


O16 - DPF: {FD0B6769-6490-4A91-AA0A-B5AE0DC75AC9} (Performance Viewer Activex Control) - https://secure.logmein.com/activex/RACtr...


O17 - HKLM\System\CCS\Services\Tcpip\..\{BDB36... NameServer = 192.168.1.254


O23 - Service: Adobe LM Service - Adobe Systems - C:\Program Files\Common Files\Adobe Systems Shared\Service\Adobelmsvc.exe


O23 - Service: F-Prot Antivirus Update Monitor - FRISK Software - C:\Program Files\FSI\F-Prot\fpavupdm.exe


O23 - Service: Google Updater Service (gusvc) - Google - C:\Program Files\Google\Common\Google Updater\GoogleUpdaterService.exe


O23 - Service: NVIDIA Driver Helper Service (NVSvc) - NVIDIA Corporation - C:\WINDOWS\System32\nvsvc32.exe


O23 - Service: ProtexisLicensing - Unknown owner - C:\WINDOWS\system32\PSIService.exe





P.S. This is a shared work-related computer on a network, so I don't know what all may be listed above or downloaded on here that may not be "good," ya know?





Thanks for any help!

"Smitfraud-C. Toolbar888" and random IE windows?
Hey, I hope I can help. It kind of depends on what you've already tried, but here is what I would do (my first step):


http://www.google.com/search?q=Smitfraud...





Then read forums about what people did. I would compare my services to their services, see what matches, and then search those fishy services to see if there's some kind of alert for it. There's http://www.processlibrary.com/directory/... that pretty much lists all possible processes that you can check. It's kind of fun to see what everything is and by canceling non-esential ones at startup you might notice better performance anyway.





Hopefully you've already fixed this problem, but, after trying some stuff on google and letting me know what you've tried, I'd be glad to help.
Reply:get this.


http://www.bleepingcomputer.com/files/sm...





Reboot in to safe mode and run it. it will remove SmitFraud.
Reply:Download:





Use this URL to download the latest version (the file contains both English and French versions):


http://siri.urz.free.fr/Fix/SmitfraudFix...








Mirrors: Alternate official download locations for Smitfraudfix.zip


http://siri.geekstogo.com/SmitfraudFix.e...


http://downloads.securitycadets.com/Smit...


Zebulon.fr


How do I determine what patch to download for falcon 4.0 allied force to try and fix a c++ runtime error?

the error is called a microsoft visual c++ runtime error

How do I determine what patch to download for falcon 4.0 allied force to try and fix a c++ runtime error?
This depends on exact error message appears. You could try to download the microsoft visual c++ runtime from the link bellow:





http://download.microsoft.com/download/v...

columbine

Please help, How can I work with VeryLongIntegers with 100 or less digits (positive) in C++?

How can I work with VeryLongIntegers with 100 or less digits (positive) in Microsoft Visual C++ without using external classes?


Thank you





Actually:


Input


The input will consist of at most 100 lines of text, each of which contains a single VeryLongInteger. Each VeryLongInteger will be 100 or fewer characters in length, and will only contain digits (no VeryLongInteger will be negative).








The final input line will contain a single zero on a line by itself.








Output


Your program should output the sum of the VeryLongIntegers given in the input.








Sample Input





123456789012345678901234567890


123456789012345678901234567890


123456789012345678901234567890


0





Sample Output





370370367037037036703703703670

Please help, How can I work with VeryLongIntegers with 100 or less digits (positive) in C++?
Danny, you can't work directly with the "very long int." The longest integer in VC is unsigned long long which is only 64 bits and much much less than your max 100 decimal value.





What the assignment is asking for you to do is to store your values as character strings and write your own addition routine--place by place. This means looking at the ones, tens, hundreds, thousands, etc. place in each string and performing addition and carries.





This shouldn't be too difficult; however, it'll take some thought. Try to come up with an algorithm and edit your question or ask another if you have any problems. Good luck.
Reply:I think you can use long keyword to handle long integers.


but i am not too sure about the range of long.





eg : {


long int k=10921083083018301803810830;





or you can use a long integer array to store all digits of the number as separate digits then find the sum.








bye


After i installed the new toolbar ,when i try to launch the norton spyware program:c:\program files\yahoo\nss

On top of the box it says Microsoft visual c ++ runtime library

After i installed the new toolbar ,when i try to launch the norton spyware program:c:\program files\yahoo\nss
I'm not sure but


scan for viruses AND spyware, adaware, etc. and if the toolbar is infected, have it fix the problem. then you would uninstall the toolbar if you can.





BUT





I wouldn't use norton. i had it before and it just made matters worse. (norton likes to create trojans so you would buy the software.) i use AVG Free and Adware SE Personal in combination together. those programs have manual updates so just click check for updates or whatever i hope i helped!


Do you know where can I download a free chat artificial intelligence program in C++ language?

I use Microsoft Visual C++ 6.0.


Answer only if you are sure please!





Thank you.

Do you know where can I download a free chat artificial intelligence program in C++ language?
I am absolutely sure, one hundred percent certain, without a doubt, that the best thing for you to do is search Google and SourceForge. If something along those lines exists, you will find it there.





Rawlyn.


Whats a good instructional site that teaches you how to code in C#?

I wanna learn Microsoft Visual C#





Thanks in advance! :D

Whats a good instructional site that teaches you how to code in C#?
There are several sites that offer some good examples, tutorials, tips, etc. Here are a few of my favorites :





http://www.c-sharpcorner.com/Articles/Ar...





http://www.csharpfriends.com/Articles/ge...





Oh yeah - I guess we should include one from the "creators"





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





I would also recommend getting a good book on it - Deitel, Murach, and a few others publish some good ones.


Good luck, and happy coding : )

carnation

How can I solve a problem which i am facing in C++ File handling? Please read further...?

Consider the following program,





void main ()


{





int productno;





char productname[12];





ofstream fout(product.txt);





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


{


cout%26lt;%26lt;"Enter product no %26amp; name \n";


cin%26gt;%26gt;productno%26gt;%26gt;produtname;





fout%26lt;%26lt;productno; cout%26lt;%26lt;"\t"


fout%26lt;%26lt;productname; cout%26lt;%26lt;endl;


}





fout.close ();





}





using this program, we can write product no %26amp; name for 5 products in text file. After that, if i open that file in Windows, the condents of that file will be in unreadable format with some symbols. How can solve this problem. I am using Microsoft Visual C++. Please help me... Thanks in advance....

How can I solve a problem which i am facing in C++ File handling? Please read further...?
I'd be wary of the logic in the program above. It doesn't look helpful to me.





It sounds like you are either writing to a binary file, which I doubt, or you have string problems. Are you typing in product names that are longer than 11 characters? If so, that could easily explain your trouble. Make productname 100 characters long, and see if that solves the problem.
Reply:Sorry I don't have a C++ compiler installed at work (as I work in Java) but give this a try...sorry if there is an error...as I do not have a compiler...but it should be much better then what you were doing there were multiple problems that I saw...I had to break the cin up because yahoo! replaced some of it with "..."





#include %26lt;iostream%26gt;


#include %26lt;fstream%26gt;


#include %26lt;cstdlib%26gt;





using std::ofstream;


using std::namespace;


using std::ios;





void main ()


{


int productno;





char productname[12];





ofstream fout("product.txt", ios::out);





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


{


cout%26lt;%26lt;"Enter product no %26amp; name \n";





cin%26gt;%26gt;productno


%26gt;%26gt;productname


fout %26lt;%26lt; productno %26lt;%26lt; '\t' %26lt;%26lt; productname %26lt;%26lt; '\n';


}





return 0;


// Unnecessary because the ofstream destructor closes file fout.close ();


}





Also...as the commenter listed a learyness of logic...I did not change your logic within my code. I just added some basics...I made no logic changes.


How can i open jpg files on MFC application in Visual C++?

I need to create a project using Microsoft Visual C++, using MFC, my project is about editing jpg files and converting them to other formats, so i need a class to open jpeg,jpg files and do some changes in them.

How can i open jpg files on MFC application in Visual C++?
You can use the IPicture interface with the OleLoadPicture() function. Linked below are documentation and an example of doing this.
Reply:I dont know.


Help me to fix my msn messenger from error runtime c++ (R6025)?

when i try to sign in my msn messenger the error microsoft visual c++ Runtime library (R6025) appear on my screen,is there any free program can help me get rid of the error?please help





thank you

Help me to fix my msn messenger from error runtime c++ (R6025)?
Put de lime in de coconut


Anyone know how to fix a problem for my computer (c++ debug)?

Everytime I am on myspace or even my email I get a message, that says something about microsoft visual c++ debug library and something about assertion failure.. then i have to push abort and it kicks me off.. if i dont push abort it locks up... anyone know what this is or how to fix it? thanks.

Anyone know how to fix a problem for my computer (c++ debug)?
This issue can be caused by any of the following possibilities.





1. Hard disk drive is short on available disk space.


2. Several software programs have been installed/uninstalled leaving behind bad files and/or confusing the software.


3. Data Corruption.


4. Computer is overheating.


5. Bad Hardware.








Below are steps for Microsoft Windows that should help speed up the computer or determine why the computer is running slow.





1. If you have a hard disk drive that is 2GB or smaller, ensure that there is at least 200MB of hard disk drive space free. If you have a hard drive larger than this size, verify that there is at least 500MB of free hard disk space. This available space allows the computer to have room for the swap file to increase in size as well as room for temporary files.


2. Run Scandisk or something equivalent to help ensure that there is nothing physically wrong with the computer hard disk drive.


3. Run Defrag to help ensure that data is arranged in the best possible order.


4. Remove or disable any or programs that automatically start each time the computer boots.


5. Verify that the device manager has no conflicts, but if conflicts are present, resolve them.


6. If you have Windows XP try deleting all files in the prefetch directory. These are prefetch files and can lower system resources if loading programs no longer being used.


7. Try running through the basic troubleshooting steps for your operating system.


8. Make sure your computer and processor is not overheating, excessive heat can cause a significant decrease in computer performance some processors will even lower the speed of the processor automatically to help compensate for the heat related issues.


9. Finally, if none of the above solutions resolve your issues, it is recommended that you either reinstall Windows or erase everything and then start over.





Go to: http://tp5pro.com/registrycleaner.htm


This may help!

pansy

How do I create a crossword in 'C' language?

Hi,





As part of a project, I have to create a basic crossword in Microsoft Visual C++ but I cannot find any links to help me out! I would be really greatful if you could point me in the right direction...





Thanks!

How do I create a crossword in 'C' language?
may be this site help u...


http://www.codeproject.com/info/search.a...


Is there a way I can compile a standalone exe with visual c++?

Is there a way I can compile a standalone exe with visual c++ without using the visual c++ library? I want to compile it without using the Microsoft Visual C++ 2005 Redistributable Package.

Is there a way I can compile a standalone exe with visual c++?
The visual c++ library defines all the functions. So basically, NO


How to flush input/output steams in c++?

i am using Microsoft Visual c++. If i enter a date as 09, it will not be taken. what is the reason???

How to flush input/output steams in c++?
using any numeric datatype for storing such numeric values will always supress 0, bcoz 0 has no significance in 09.


fflush() or flushing the buffer in this case would not be helpfull.


if u want the date to be shown like this u can store the final date using string (ie char* or char[ ]) or int [ ].





u can try itoa() for converting int to (ascii)string.


but then u have explicitly prefix a 0 in the string variable.
Reply:Don't really 100% know why because I can't see the code in question.


The 0 would just be ignored in most cases.
Reply:use fflush();


the sytax is


fflush(stdin);








wen u take input from the user it is stored in a buffer..n is not actually stored in variables...it is done wen buffer is full


Color coding background in visual c++?

Is is possible to apply different color backgrounds to part of the code in Microsoft Visual C++ (or evt. another text editor)?

Color coding background in visual c++?
Tools -%26gt; Options -%26gt; Environment -%26gt; Fonts and Colors. In the "Display Items" list select "Plain text" and then choose your background color from the "Item background" field.





This works in C++ Express 2005, other versions behave similarly.

floral centerpieces

What is the Difference between Visual C++ and .NET framework ?

Basically , I want to know what is the use of .Net framework .If i install only Microsoft Visual C++ 2005 Express Edition

What is the Difference between Visual C++ and .NET framework ?
The .NET framework is of no use if you are merely coding in Visual C++, MFC, and building a standard exe file. But, if you will be utilizing the .NET class library in your programs, then you will need the .NET framework.


How do I fix a Visual C++ Error?

When I start my computer, it gets as far as the users screen, and then goes black. A message appears saying there is a "Microsoft Visual C++ Runtime Library Error" coming from "aluschedulersvc." This is from Symnatec Live Update on Windows XP. Any ideas? Bear in mind that I can't get into my computer; it boots, displays the error message, and restarts itself. Obviously, this question is coming from a separate computer.

How do I fix a Visual C++ Error?
Hi. If you have already tried 'Safe mode' then you may have to boot from the original CD. Worst case is a re-install.


I need help in C# Help.?

I'm using Microsoft Visual C# .NET and develop in Windows Application, which means that I'm using Windows form.


If I put in Hyperlink on the form, how do I make it link to internet? For example, "http://www.yahoo.com".


Or maybe, a button? I kind of forget something so basic. Oops.

I need help in C# Help.?
Open up the web browser after the OnClick event is triggered on the link label. Probably the easiest way.





private void linkLabel1_LinkClicked(object sender,


LinkLabelLinkClickedEventArgs e)


{


Process.Start("http://www.asp.net");


}
Reply:I'd use a LinkLabel. http://msdn2.microsoft.com/en-us/library...


Visual Basic and C++?

wich one of these Visual Basic 6.0 or Microsoft Visual C++ 2005 Express Edition is better for a beginner and why. And which one of these is widely use by today's game programmers.

Visual Basic and C++?
I agree, C++ is one of the most difficult languages to master. On the other hand, once you get even decent with C++, everything else is a joke.





If you are just starting to learn how to program, the goal is to first learn good structural program, which you can do in any language. I always recommend people just start with JavaScript (not Java) since they have everything they need to get started (no need to buy anything). You can learn the concepts of structured program and even OO using JavaScript. You can create GUIs in combination with HTML, CSS, and DOM (what unfortunately is referred to as DHTML).





Good JS programmers can even make games. You can even do simple network programming using JavaScript. What more could you ask for...
Reply:whoa whoa whoa


if you are just getting into programming i would recommend VB6, c++ is too complicated for beginner i tried starting with c++ as my first language but after a month i lost hope.





Also a brilliant language to learn as a beginner is python www.python.org





This just my opinion but I think python is the best choice
Reply:if you are a true begginer and you want to enter the game programming world... possibly it would be better to use c++, reason, because although VB is even more widely used, it has not much graphics capabilities, VB is more for administrative tasks, also VBA whichis a subset of VB is the macro languaje for microsoft office, but still, no animation capabilities included...





also, if you really get to know how to program in C++, you willbe able to learn anything...





another option is ActionScript from macromedia flash, that is what programmers use for flash Games... I would probably start with that...
Reply:C++ and learn DirectX or OpenGL

wedding florist

What is a C++ Complier?

a bought a book that told me to download a complier before read later on the pages. I have microsoft visual C++ 2005 express edition and I don't know if that is compiler?

What is a C++ Complier?
A compiler is basically the software used to make programs. You type the code in, compile it, and then its read to be used. Depending on the book, I have a C++ book which wasn't pertaining to MS Visual Studios and therefore I got one from Bloodshed Software which worked just fine with the book. However if the book you bought is for MS Visual C++ you can use the site below for tutorial and download. If its not for MS Visual you should try the Bloodshed, its very easy to use.





Bloodshed: http://ftp1.sourceforge.net/dev-cpp/devc...





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





Visual Compiler Download site: http://msdn.microsoft.com/vstudio/expres...
Reply:A compiler is software which translates a computer program from the language in which it is written (such as C++) into machine code which can actually be executed on a computer. If the program can accept a C++ source program, and get it to run on a computer and produce results, it can be considered a compiler.
Reply:A compiler is a computer program (or set of programs) that translates text written in a computer language (the source language) into another computer language (the target language). The original sequence is usually called the source code and the output called object code. Commonly the output has a form suitable for processing by other programs (e.g., a linker), but it may be a human readable text file.





A C++ compiler will convert the source code to a C++ executable file.





There are many C++ compilers like Intel Compiler, Borland Turbo C++ compiler, GCC...etc...


How can I compile & run C++.net project inside #develop2 ?

I just don't want to install Visual C++.Net Express edition because I can't download it using my slow Internet connection and I can't afford commercial versions of VC++.Net. I am using .Net Framework Runtime 2.0 and second version of #develop (http://www.icsharpcode.net/OpenSource/SD... I have downloaded Microsoft Visual C++ 2005 Runtime.

How can I compile %26amp; run C++.net project inside #develop2 ?
If this will be run on an embedded system, you will need to find a compiler such as eVC++, or Visual Studio. Another alternative would be to try out a free compiler found at: http://www.thefreecountry.com/compilers/...


Is there a way for C# programs to get data off a website?

I am using Microsoft Visual C# and trying to get user data off of a PHP webpage (you would have to enter login and password in C# program).

Is there a way for C# programs to get data off a website?
Read this:





Using WebRequest and WebResponse


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





Assuming the form expects a POST response, you would simply need to prepopulate your WebRequest header with the login data as it would be from the login page.
Reply:try creating a path variable and manipulating it


How do I use char* variable type in C?

The following code in Microsoft Visual C++ 6.0 IDE gives out an error.


It compiles with no errors and no warnings.


Then makes with no errors and no warnings.


But displays a dialog box showing that there is an error and asking to report it to Microsoft.





What is the correct usage of char*?


Can anybody please help me?





//code...


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





void main(){


char* yourName;


printf("Please enter your name: ");


scanf("%s", %26amp;yourName);


printf("\nWelcome %s, I was waiting for you!\n", yourName);


}

How do I use char* variable type in C?
A char* is a pointer (*) to a bunch of characters (char). But before you can use it the way you want to, you have to make sure that the pointer points to an memory area that is free to store characters in.





Try it like this:





//code...


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





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


{


   char* yourName = malloc(20 * sizeof(char));


   printf("Please enter your name: ");


   scanf("%s", %26amp;yourName);


   printf("\nWelcome %s, I was waiting for you!\n", yourName);


   free(yourName);


}





This code reserves enough space for 20 characters and you may need to include %26lt;alloc.h%26gt; or something --it's been a while since I last programmed in C...
Reply:ummmmm, It's strange one really :D





I will keep on fixing it
Reply:You have declared yourName but not given it any memory. You could say





char yourName[maxLengthofName];
Reply:A char * is a pointer. You have not initialized to point to an address so it will put the name you enter into random memory. Or windows will prevent you from accessing the memory and put up the error you see. So





//code...


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





void main()


{


char yourName[256]; // give yourself some space in this array





printf("Please enter your name: ");


scanf("%s", yourName); // yourName is an address.


printf("\nWelcome %s, I was waiting for you!\n", yourName);


}





OR if you need to use char *


void main()


{


char yourName[256]; // give yourself some space in this array


char * ptr = yourName; // the address


printf("Please enter your name: ");


scanf("%s", ptr); // ptr is an address of the yourName Array.


printf("\nWelcome %s, I was waiting for you!\n", ptr);


}





Give either of these a try!
Reply:Hi, Here when you define





"char * yourName;"





'yourName' will store the address where the value will be stored...





just change the scanf statement, remove '%26amp;' sign as 'yourName' already contains the address on your memory..





"scanf("%s", yourName);"

local florist

Visual c++?

i have had absolutely no experience of programming. every tutorial i find is for people with programming experience. I have the microsoft visual c++ express edition but i can't find a good tutorial. If someone could provide a link to one i would be forever grateful

Visual c++?
cplusplus.com tutorial - Excellent tutorial for learning C++ from the basic level. Highly recommended





Bruce Eckels Mindview - Also an excellent site for learning C++, mostly because of the freely downloadable Thinking in C++ in 2 volumes. These are some of the best explanations of the C++ language, but definitely at a more advanced level. Books are available here





cprogramming.com tutorial - another good site for C++ programming tutorials. They are not quite as methodical as the cplusplus.com tutorials, but they are very useful.





MSDN for C++ - Microsoft's site for the Visual Studio 2005 C++ compiler that we use in this class.





C++ Links from Bjarne Stroustrup - This is a collection of links about C++ that is maintained by the originator of C++ (who now teaches at Texas A%26amp;M)
Reply:Great tuorial





http://www.cprogramming.com/tutorial.htm...
Reply:With absolutely no programming experience you may want to get a good book on basic C++ programming ( I find it easier to work from books rather than Web sites/online tutorials etc.)





Its been so long since I read any of them though ?I can't think of a good one - But recently I bought c++ for dummies which is good both for the basics and more advanced features in the language. Good reference book
Reply:Try here for info





http://www.good-tutorials.com/


http://www.digitaljuice.com/


http://www.tutorialkit.com/


http://www.codestyles.com/


http://www.sitecube.com/website/promo_bw...


Try here for info


http://www.techtutorials.net/





http://www.theeldergeek.com/
Reply:http://cprogramming.com/ is a good site.





I highly recommend getting a book. You have no idea how bad an idea it is to solely rely on the web, especially if you have 0 programming experience.





Take a look at http://accu.org/index.php/book_reviews?u...





The organization reviews books for technical accuracy. You'll notice there's a lot of bad books that get good reviews on Amazon (they are wrong technically). There's two good ones I recommend: C++ primer by Lippman and Accelerated C++ by Koenig. Accelerated C++ is pretty fast in pace and is probably more suited if you have prior experience, so perhaps C++ primer is a better choice for you.





Please do *not* go for Visual C++ specific tutorials. Unlike generic C++ tutorials, they are designed to work specifically with Visual C++ only. You won't understand and learn C++ properly, you won't learn programming properly.


Inlcude files in visual c++ not found (new to c++)?

How does include files work in Microsoft Visual C? For example I have:





#include "DirOne/DirTwo/MrDo.h"





From which base directory is this? Where does it start looking for this? Why is a forward slash used and not a backslash? Can I change the directories in which VC will look (make more available?)

Inlcude files in visual c++ not found (new to c++)?
If I'm not mistaken it usually starts wherever you save your C++ file that you are working on. So if you saved your program in the directory "DirOne" it would start with the "DirOne" directory. Check to make sure where your program is saved and you can go from there.


Good Luck :)
Reply:The #include functionality would depend on the compiler, but generally the directory where the cpp file is located is searched.





For Visual C++ then any directory specified by the /I option is searched followed by any directory specified by the INCLUDE environment variable.





Also a forward slash is used because every other compiler does so, so even if Windows uses back slashes, Visual C++ uses forward slashes to keep compatability.


Can you explain surprising C++ parsing?

Much to my surprise, an incorrect copy and paste seems to be legal C++.





Instead of writing


if (my_func())


I accidentally wrote


if (bool my_func())





It seems to compare the function address. Can someone please explain this? I didn't think a function declaration could appear in an expression.





#include %26lt;iostream%26gt;





bool my_func()


{


return false;


}





int main()


{


if (bool my_func())


std::cout %26lt;%26lt; "true\n";


else


std::cout %26lt;%26lt; "false";


return 0;


}





the output is "true".


Using Microsoft Visual C++ version 6.0

Can you explain surprising C++ parsing?
I don't think the code you showed is legal, since it didn't compile with gcc 4.2.0. Also it failed to compile with llvm.





http://llvm.org/demo/index.cgi





Probably it's a bug in microsoft's compiler.
Reply:Wow - that is interesting. I think what is happening is that the expression 'bool my_func()' is being evaluated to "true" because the function is working properly - in other words, it seems like, by including the function in the 'if' condition, it is basically checking to see if the return from it is valid, which - even though it is 'false' - is valid.


Visual C# Game Development...?

Where can I find a tutorial (better to be a video tutorial) that teaches how to develop games using Microsoft Visual C# 2005 Express Edition?

Visual C# Game Development...?
Videos: http://msdn.microsoft.com/directx/xna/vi...


Mainly Text:http://www.xnatutorial.com/





Best PC Game Dev site: http://www.gamedev.net/
Reply:Pheewww.


I don't think its as easy as just watching a video!


I have the official Microsoft Visual C# book to help me!


Microsoft do have videos on their site I think, I prefer reading from paper though. To be able to teach you how to do games programming in a video, I reckon the video is going to be a few hours long!


Good luck though, Ant...

floral deliveries

Linking Problem in visual C++ version 6 using vista, plzzzzz help??!!?

hey everyone, plz some1 help me with this.... newly i've been using windows vista... all went smoothly until this... i've installed microsoft visual C++ v.6 enterprise edition.... welll, it got installed and everything but whenever i create a program, even program codes as simple as cout%26lt;%26lt;"hello world", it gives me a linking error.... i really dunno y... i've been usin c++ for a yr now but that's the first time i encounter such trauma... plz some1 help me solve it!!!!





Thanx and Cheers ^__^

Linking Problem in visual C++ version 6 using vista, plzzzzz help??!!?
Every program is linked with the standard libraries defined in the project option in VC++ to create a final executable.In this case you would need the stdc++ library.Add it manually to the list of libraries which you can find under the projects option or specify the path while you are linking on the command line like this


cl /MD /Itargetdir\include your_prog.c stdlib.lib


ref: http://www.nag.co.uk/numeric/CL/classoci...


. That should do.Even then if you are not able to link,means your runtime dll is not available.Am not sure how to proceed then.
Reply:hmm...


it's compatible with win vista!!


i think u should reinstall it and try again...


or may be reinstall ur windows vista...


or u may try to update ur visual c++..


bcoz visual c++ 2005 also have the same problem on vista...





hmm..u know how to create and modify program??


contact me at vc-1987@hotmail.com





i have an emulator that have time trail 10minutes..


only can use each restart but only for 10minutres...





can u help me to delete the time trial...???


\contact me at : vc-1987@hotmail.com





thanks...


Managed and unmanaged with C++?

traditional C++ is only unmanaged code programming language, while microsoft visual C++ offers managed and unmanaged,


which one is better? managed or unmanaged and why? where to use each of them?


by the way, managed and unmanaged is about memory allocation and de-allocation management!

Managed and unmanaged with C++?
"managed" is about letting the computer do some stuff for you.


"unmanaged" is about trusting that a human being with brains can do those things better and more effectively.





Which is "better" depends on the person. Some people do know better than the computer (and prefer "managing" their own memory), and some, apparently don't (or think they don't), andn prefer that microsoft do it for them.


Ever seen these annoying windows popping up, and saying that such and such application tried to access such and such memory and was killed? These are coming from the programs, written by people of the latter kind
Reply:The managed code is a code which runs under the supervision of CLR which ships with .NET Framework.


The CLR provides many run-time features to ur code like thread management, more sophisticated memeory management(Undeterministic finalization) and so on..





What u can choose depends upon ur requirement...means what u want to do with ur code...if it more towards system level then I will suggest u to go for unmanaged.





Also, depends whether u want to port it to some other machine then, go for unmanaged code as it will save u from installing .NET Framework(as it is needed for managed code).
Reply:n0body has given you a good answer, just to explain a bit more.





With managed code from MS, you will have pverhead that will slow down your system. If speed is not all that crucial to you, then go for the managed code.





One thing n0body forgot to mention, with people thinking the computer can do a better job, that computer needed to be programmed by someone. The question really comes down to, do you trust a person a MS to be able to provide a good program, or would you rather build the program yourself, knowing what you have done.
Reply:according to me visual C++ is more better ...more diverse and yes managed programming helps you for not worrying about many issues and just concentrating on yr work


A computer illiterate lady needs help with a microsoft error?

every where i seach i can not find the exact error


"microsoft visual c++ runtime library runtime error


program. ramfiles\hewlett packard\hp boot optimizer\hpboot op.exe


this application has requested the runtime terminate in an unusual way.


i am absolutely clueless, and if any one knows a fix, could i please request very specific instuctions


thank you so much

A computer illiterate lady needs help with a microsoft error?
You could try a fix by going to Start then Run. Now type in 'msconfig' without the quotes. Open the Startup Tab. Scroll down the list and untick anything relating to op.exe. Now click apply, click ok. Re-boot your computer. Eventually when you computer boots you will be presented with a new pop-up window - tick do not show again. Good luck.





wdw
Reply:You do not need to use the HP Boot Optimizer if you do not want to.





Here is how you uninstall it. Once gone, the error will stop.





Uninstalling the HP Boot Optimizer





Use the following steps to uninstall the Boot Optimizer:





1. Click Start and click Control Panel (in Classic View Click Start , select Settings , and then click Control Panel ).





2. Click Add and Remove Programs (in Classic View double-click the Add and Remove Programs icon).





3. Locate the HP Boot Optimizer program in the Add and Remove Programs window.





4. Click HP Boot Optimizer and click Change/Remove .





5. Follow the on screen instructions to complete the Boot Optimizer uninstall.
Reply:Well im my experience if you reload dot net that might clear up the error. I deal with C++ errors alot and about 80% of those are cleared by doing the above. It surely cant hurt.
Reply:That's a bit strange. It sounds to me like you have a C++ compiler on your computer and causing errors. Simply put: a compiler makes programs if you know how to use them. Anyway, did someone give you this computer? If so, they may have left some programs behind that you don't need.
Reply:Uninstall HP's Boot Optimizer and re-install. http://h10025.www1.hp.com/ewfrf/wc/gener...
Reply:usually you get this error when you are in the middle of shutting down your computer and something else was trying to start up while you were shutting the computer down.


Turn of the computer completely, and restart the computer, it should fix itself. This sometimes happens with HP software.
Reply:computer meaning


Is there a way to say what C/C++ compiler and linker were used to compile and link an application?

The matter is that I would like to know if there is a way to find out which compiler and linker were used to compile a C or C++ application.





I have the Borland compiler/linker and two versions of Microsoft Visual C++ (v6.0 and .NET). Is there a way to say if an application (final .exe) was built using one of these (or other compilers/linkers)?





Thanks for any help.

Is there a way to say what C/C++ compiler and linker were used to compile and link an application?
The build tools don't usually put what was used to build the particular executable in them. The only way you can really do this is to have the source code, generate a new executeable and then compare that to the one you wish to find out about.

buy flowers

C++ program for the game minesweeper?

Microsoft Visual C++ is the program.

C++ program for the game minesweeper?
here is the source code for minesweeper





http://www.planet-source-code.com/vb/scr...





also another one here:





http://www.geocities.com/alansaviolobo/m...


C ++ help!!!!?

Hi guys I have this assignment but I'm having a hard time getting it done... can anyone help...


The assignment says:


Compute and display the following values for the n = 5,9 and 15





1) 1+2+3+...+n


2) (n*(n+1)) / 2


3) n^2





the Compiler used is Microsoft Visual C++ express

C ++ help!!!!?
Well, I won't do your homework for you, but I'll give you a few hints.





1.)





Use a loop, in which you initialize a counter to 1, terminate the loop when the counter exceeds n, and increment the counter by 1 at the end of each iteration. Use a "result" or "sum" variable, which you initialize to 0, and then add the value of the counter into the sum at each iteration.





2.)





The expression you have is a valid C++ expression. Simply assign the expression to some variable, and print the variable.





3.)





You can use n*n in order to compute the square of n. Alternatively, you can use the "pow" function defined in %26lt;cmath%26gt;.
Reply:1)#include%26lt;iostream.h%26gt;


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


int main()


{


int n ,sum=0;


cout%26lt;%26lt;"\nEnter how many numbers"%26lt;%26lt;endl;


cin%26gt;%26gt;n;


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


sum+=i;


cout%26lt;%26lt;"sum="%26lt;%26lt;sum;


}





rest two too simple jus read value of n


2)sum=n*(n+1)


cout%26lt;%26lt;"sum="%26lt;%26lt;sum;





3)#include%26lt;math.h%26gt;


read n


exp=pow(n,2);


print exp
Reply:haha wow a nitghmare a foreign languages and maths ahahhahaha


C++ combo box...?

anyone knows how to make combo box using microsoft visual c++? i need the basic codes to use. and please a site that gives tutorial about the vb...thank you very much....

C++ combo box...?
http://www.functionx.com/visualc


http://www.vbtutor.net/vbtutor.html


C++ compiler?

i downloaded microsoft visual C++ 2008 express edition. i can not run the code (start dubugging) so i need a compiler right? can someone help me to do this????


Thanks

C++ compiler?
Get a Ruby on Rails or Ruby Code and use it to cross platform. Winders and most all OS's are based in C, or some variant.

floral

C++ sound on keypress?

Hi!


I want to make an application in Microsoft visual c++ that plays a sound when I press a button on my keyboard. Anybody know how to do this? I really want to know!


Thanks in advance!


Oh and btw I've already managed to make a web browser!

C++ sound on keypress?
#include %26lt;iostream%26gt;


#include %26lt;windows.h%26gt; // WinApi header





using namespace std;





int main()


{


Beep(523,500); // 523 hertz (C5) for 500 milliseconds


Beep(587,500);


Beep(659,500);


Beep(698,500);


Beep(784,500);





cin.get(); // wait


return 0;


}


C++ Run time error Zune software?

I can not open up Zune Softwear i get a meesage that says Microsoft virtual C++ Runtime library error. how can i fix this!!

C++ Run time error Zune software?
Try to reinstall Zune program.





You can also try to reinstall Microsof Visual C++:


http://www.microsoft.com/Downloads/detai...


A computer illiterate lady needs help with a microsoft error?

every where i seach i can not find the exact error


"microsoft visual c++ runtime library runtime error


program. ramfiles\hewlett packard\hp boot optimizer\hpboot op.exe


this application has requested the runtime terminate in an unusual way.


i am absolutely clueless, and if any one knows a fix, could i please request very specific instuctions


thank you so much

A computer illiterate lady needs help with a microsoft error?
Hi,





This program is not essential for your computer and can be removed. Its main function is to take care of other programs that run as soon as the system is turned on.





First thing is first - make sure you have all the Microsoft Updates installed.





Click here:


http://www.update.microsoft.com





I am assuming you are running Windows XP.





Run and Install any "ActiveX controls" that pop up.


Then, when it asks you what Updates you want to install, choose the top option (should be "Express")





Windows will then search for available updates. Click "Install Updates" and wait while updates are downloaded and installed.





This may take a while - hopefully you are on broadband internet. If not, well... hopefully you do not have too many updates to install!





------------------


If you do not want to run microsoft update or


if you are still having errors, remove the program.





To remove the program:


(the following is from HP's website so I am assuming everything is where they say it is!)





Click Start and click Control Panel (in Classic View Click Start , select Settings , and then click Control Panel ).





Click Add and Remove Programs (in Classic View double-click the Add and Remove Programs icon).





Locate the HP Boot Optimizer program in the Add and Remove Programs window.





Click HP Boot Optimizer and click Change/Remove .





Follow the onscreen instructions to complete the Boot Optimizer uninstall.





Restart your computer.


Does the error message still appear? If not, that is you finished. Windows will now take care of all programs that run on startup.





If the message still appears, that means that it is refusing to uninstall. try re-installing (to repair) the program.





Follow these steps:





click "Start ", "All Programs" , "HP Tools" , "Compaq Tools" , or "PC Help and Tools" , and "Application Recovery" .





Follow the steps to reinstall the Hp Boot Optimizer.





----------------





I hope this information is of help to you. Bottom line - the program error is not harmful to your computer. If you can live with it, thats OK tho I realise you'd like it fixed.


So...


The link for contacting HP is below also.


http://h20180.www2.hp.com/apps/Nav?h_pag...





note that you will need to know your model number (found on the front of the PC usually - you can type it into the search bar on the page the link opens at.)





I hope that my instructions have been clear and apologise if it confuses you too much!





:)


C++ software download!!!!?

Where can i download Microsoft Visual C++??


If it is not downloadable, where can i download a similar software.... knowing that i am just a beginner.... i need it for very simple practice........... THANKS for not ignoring my question.

C++ software download!!!!?
There's a free version of Visual C++ 2005, go here:





http://msdn.microsoft.com/vstudio/expres...
Reply:I'm not sure about C++, but you can download a free C# development environment at





http://www.icsharpcode.net/OpenSource/SD...

daisy

Is there any way I can get Dev-C++ to work on vista?

I have vista and I got this book that teaches you C++ but I need the Dev-C++ compiler. I tried Microsoft Visual C++ Express but it was hard to use since I'm a beginner. Can I get Dev-C++ to work on vista? Are do you know of any other compilers that are very similar to Dev-C++ that work on vista?

Is there any way I can get Dev-C++ to work on vista?
Have you tried Borland?


Visual Basic C++ HELP?

Is there anyone who can help me to get my C++ Programs to complie correct. I running my programs in Microsoft Visual C++ 2005 Express Edition if so can you email me at po3gurl@yahoo.com

Visual Basic C++ HELP?
Can't tell without seeing your program. It might help if you list the errors you have too.





If you want, send email and I'll see what I can do.


Saturday, May 22, 2010

Is the C++ code the same no matter what software I use??

If I use Microsoft Visual C++, or Dev-C++ or any other software??

Is the C++ code the same no matter what software I use??
Actually, not necessarily. For the most part, the code is the same, save some nonstandard commands specific to the compiler.





Basic C++ Coding is the same no matter what compiler you use, but when you get into the nitty gritty commands that are specific to the compiler you are using, it can get hairy.





As for the programs you listed above, they use pretty profound compilers, and this nitty gritty stuff won't make a difference. Your code will work in both programs.





Just remember that the program you're using to write the code ships with a compiler that turns that code into machine readable(binary) code that the computer can understand. What I'm trying to say is better explained by the site below.





Have fun!
Reply:Thanks Puma! Glad I could help. Report It

Reply:C++ is a standard language,


so the c++ code is the same no matter what software you use;


however, compilers may have some differences.


Runtime visual c++ error when opening musicmatch jukebox?

Suddenly I cannot open My music program Musicmatch Jukebox. I get this error:


Microsoft Visual C++ Runtime Library


Runtime Error!


Program: C ProgramFiles MUSICMATCH MUSICMATCHJukebox mmjb.exe


This application has requested the Runtiome to terminate in an unusual way. Please contact the applictaion's support team for more information.





Help!! I've tried the manufacturer, and got no where. I've tried reinstalling, I've tried System Resore. I just don't know enough about computers to know what to do next. Can anyone help me?

Runtime visual c++ error when opening musicmatch jukebox?
Hey.. Turn off your firewall and anti-virus .. then reinstall MM jukebox and it should work.. if it doesnt.. fix it by downloading this patch frm Microsoft http://download.microsoft.com/download/s...


http://support.microsoft.com/kb/178385
Reply:I see, I suggest re-installing musicmatch. If this doesnt do the trick than get Winamp :%26gt;

gladiolus

Question in C++?

I am new to C++ and I never took it in school so can any one help me in my first application


I am doing an application like a calculator, First i choose two numbers x and y and then I choose the operation, a for adding, s for subtraction, m for multiplying, and d for dividing


and I need help, note that I am using Microsoft Visual C++ 6.0


and here is the code I wrote





I need help because when I choose the operation it give me all the possible operation in one time


and thank you

Question in C++?
on the if (o== a)


make it


if (o == 'a')


and do that for the other if statements.





Also make o a char
Reply:One more thing


why you are repeating codes for add , sub, mult


two times





first you are using like


a=x+y





and same you are using in


cout%26lt;%26lt;"Answer is "%26lt;%26lt;x+y;


I'm trying to compile my C++ project using Visual C++ 6.0 but am getting this error: eh.h is only for C++!

My files have and extension .h and .C


and am getting this error when i try to compile the code usign Microsoft Visual C++ 6.0.


Will this need any code change to be done. There are about 300 files in this project.

I'm trying to compile my C++ project using Visual C++ 6.0 but am getting this error: eh.h is only for C++!
But why are u compiling in visual C++?


Check for version compatibilty. Try compiling the project in Turbo C++ or Borland or some other compiler.
Reply:the first step


copy your code and go to file and close workspace after that


go to file and select new workspace


and select new file


and past your code and run you project
Reply:Assuming you don't care whether this is C or C++ code generated, just compile everything with the /TP switch. The compiler detects your .c files and invokes the C code path in the front-end. /TP tells it to treat everything as a C++ file.
Reply:.C?// that C not C++





first of all C and C++ is different, not entirly but it is.





C only consit of .c files


C++ has .h and .cpp files because it's OOP enhanced





if you are codding in C, check your codes because you should not make any call or to .h becuase it doesn't work.





if you are coding C++, then someone is wrong with eitehr your .h or .cpp files.








###################





C++ 6.0 is really outdated now so most codes doesn't work with because of teh c++ libiary are outdated


.


it should work on 6.0 if you program in C, but i recommend getting 03.net or 05.net because it has newer libariry





C should run fine because it's the lower lvl of C++


New to C++??

Im new to c++ and want to learn the code and stuff.. I use microsoft visual c++ 2005... there stuff is not helping me at all.





please help me, i want to make programs... thanks 4 your help

New to C++??
study a gud book for c++ which clear your basics for eg header files , declaration, operators , variables , loops , conditional statements , arrays etc.


I have started getting full page pop-ups although the microsoft pop-up blocker is on. Also below:?

I keep getting an error from 'Microsoft Visual c++ Runtime library' advising 'buffer overrun detected!'. Program: C:\windows\explorer\explore.exe.


'A buffer overrun error has been detected which has corrupted the programs internal state. The program cannot safely continue execution and must be now terminated'.





Please, please can anybody suggest an easy solution. I do not currently have any anti-virus software installed, except for windows firewall. NB my pc hdoes not crash after this error but sometimes websites shut down automatically. I have repeatedly run Spyware Doctor and removed ay infections detected but this has not solved the problem.





Thank you.

I have started getting full page pop-ups although the microsoft pop-up blocker is on. Also below:?
unplug internet boot pc in safe mode without net .run your scans,reboot without net run scan again, shut down plug in internet rebootthen download some good virus %26amp; fire wall programs.
Reply:it doesn't sounds like pop-ups, it sounds like real error messages from Windows OS or some software you use. If you hadn't installed new programs recently, i suggest you still re-install operating system.
Reply:Hi,


You should use "NoAdware".It's very effective.I don't have anymore problems with spyware,adware,Trojan or pop-up ads.Now, you can download and try it for free.Check it out here:


http://tighturl.com/7h4
Reply:First off, you need to get decent firewall and anti-virus software. Windows Firewall is about as effective as a piece of paper against a raging forest fire.





Until you get the chance to pay for something (like Norton or McAfee), I suggest getting the following; they will still be useful after you've paid for something decent:


--%26gt; Ad-Aware http://www.download.com/Ad-Aware-2007/30...


--%26gt; Spyware Terminator http://www.spywareterminator.com/


--%26gt; Zone Alarm free firewall http://www.zonealarm.com/store/content/d...





When you've installed those, they will help prevent any viruses or popups from the internet. What will also help is if you use Mozilla Firefox instead of Internet Explorer. Its free, easier to use, and much safer. Plus the popup blocker actually works!





However, it sounds like the pops are being caused by Adware stored on your computer. Hopefully this will be found by Ad-Aware and removed, but if not you should do a virus scan using http://housecall.trendmicro.com/uk/





Hopefully if you follow this advice, and install a firewall, anti-virus software with real-time protection, and spyware scanner/removers, and switch to Firefox, your problems and days of browsing the internet unprotected are over.





However, I still recommend you purchase a commercial Internet Security suite - see


http://www.amazon.co.uk/b/ref=sv_sw_h__5...


OR http://www.play.com/Search.aspx?searchty...
Reply:I strongly advise reinstalling the operating system.

narcissus

Can VisualC++6.0 run C codes?

i have microsoft visual C++ 6.0 complier, and would like to know if it runs C,





if it does where is the best place to learn C for the visual C++ complier? most codes i find are for unix and that is just mind confusing...

Can VisualC++6.0 run C codes?
all c++ compiler run c code
Reply:THe MSVC++ 6 compiler will compile C code. Just make sure you take the appropriate steps to make a C project. If you have cpp files, they will be compiled as C++, and if you have c files, they will be compiled as C. You may want to get Visual C++ Express. THat's the compiler for the newest C++ version. The compiler is more up to date.





%26gt; if it does where is the best place to learn C for the visual C++ complier?


Any place that teaches standard C. K %26amp; R's book is the standard resource. There's a few resouces on the net as well, like cprogramming.com. Make sure you choose one that is accurate. Some kid's C tutorial is an unsuitable resource. Also see http://c-faq.com/ . The tools and resources section mentions a few books.





%26lt; most codes i find are for unix and that is just mind confusing...


C itself is a portable language. It won't matter if it's being compiled on Windows or Linux or Unix or Mac. You just need to find a resource that teaches you standard C rather than some compiler dependent hack. Once again, it's a question of finding a good resource.





(Aside, if you find an appropriate resource that shows code for Unix, it doesn't matter. That same code will run on Windows. As long as it is standard C.)


Can you make C++ run in NotePad?

Hi, I'm learning JavaScript and I am doing so much better that I thought I would have at this stage and I decided that I want to pick up C++ as well. I downloaded Microsoft Visual C++ 2008 Express Edition, but the user interface is so confusing and I just want to know if I can make C++ programs run in NotePad, and if I have to save it in a different extension (like .html for JavaScript) or something.

Can you make C++ run in NotePad?
No, if I'm understanding your question correctly.





C++ needs to be compiled and then built into a program, you can't just say double-click on it to run it. If you save it in a file and are hoping to run it like javascript, you are sorely mistaken.





What you can do is this though, create your project in Visual Studio and then edit your files in notepad and then switch back and forth, editing in notepad and then building in Visual Studio.





But I suspect that's not really your problem.





I suspect your real issue is that you don't really understand how to create a project of the type you want or don't understand the idea of a C++ project. I'd say look at the File menu, there should be a "New Project" thing there of some sort with a wizard and just say "command line program" if that's what you're trying to do and it will create the project with just one cpp file with main() in it, then you can edit away on that single file, or again do the notepad edit/visstudio build thing if for some reason you find notepad way better than the visstudio editor (I don't really understand why you would frankly). Then hit F5 to run. That's it for the very basics I guess.





Hope that helps!
Reply:Well you can't run it in notepad, but yes I think I have written C++ in Notepad.
Reply:yup you still can just name it .cpp
Reply:yeah you can.





i think your confused though, you cannot compile in notepad. Compile means to take the code you wrote and translate it into machine code so the virtual operating system can understand it.





just save the format as .cpp and press the play button in visual studio or express etc... it will compile it for you.





Try the Dev-C++ Complier! : www.bloodshed.net , its much cleaner and easier.
Reply:Download Notepad++. It's so much better than regular notepad.
Reply:save as exe file and try if it runs
Reply:You can write them in notepad and save them as ".c" and or ".h" files that you can then compile and use in C++
Reply:You can write it in notepad but you need the compiler to run it.
Reply:you can use any word processor to create c++ code. the file extension for the uncompiled code is .cpp . You will have to use a compiler though to test your code.

statice

Writing, running, testing C programming language?

I am a beginner in writing C/C++ and was just wondering what good program can do these things well. I've heard Microsoft Visual C++ works but I'm not sure. Any other programs? Thanks.

Writing, running, testing C programming language?
Borland C++ or turbo C++
Reply:try bloodshed dev cpp ide. it's really gud! u can download them from,


http://www.bloodshed.net/devcpp.html





Happy Coding





Let Google be with you!
Reply:Borland C++ Builder is the program my father uses. For your purposes, I would look at the Borland website thoroughly and see if you can't find a free version of a previous compiler version. I would personally learn to code in Java though, it's much more versatile.





See, with Java you can definitely download everything free from the Internet. I would start with that. Java is structurally very similar to C++. If you have an elective at school for C++ or Java, take it, you will learn crucial Object-Oriented programming concepts.





EDIT-





The best is JCreator by Xinox software. You have to download the documentation from the Java website for the compiler to work.


Virtual C runtime error????

Everytime I tried to download video from Frostwire, my pc get message up saying Runtime Error and window freezes.





Microsoft visual c ++runtime library


Runtime Error!


Program:c:\Program Files\common Files\Java\N MAIN-EXE


R6025


-Pure virtual function call





Could someone explains what this means to me, thank you!

Virtual C runtime error????
something is wrong with the program, you'd be best to uninstall it and reinstall it and that should stop it.


you may also be able to do updates to it, could be a problem with the program that they know about and created a fix.


check updates first, then uninstall


Help calling Borland C++ based API from MSV C++?

I am trying to call a Borland C++ based API from a Microsoft Visual C++ application via a dll from the Borland Code. I am not having much luck. Are there any common errors or mistakes that could cause this? I know it is possible, but for some reason I am struggling to make it work. Thank you in advance for help.

Help calling Borland C++ based API from MSV C++?
Given your absolute lack of details, it’s impossible to diagnose your problem. However, I will point out some obstacles in what you want to do. The first is that you are trying to use a dll for use with borland linker with VC++. I don’t know if the BC++ linker emulates VC++, but if it doesn’t, you will have trouble directly using it. Any fixes are going to be ugly, which probably involving figuring out the mangled names to use for the import definitions.





The second obstacle is dll dependencies. You are working with the VC++ runtime, so if the borland dll requires additional borland components like their runtime, you now have a problem.


I have the MSDN Library for Microsoft Visual Stdio 2005. But I can not install the CDs.?

I installed Microsoft Visual C++ 6.0 before but I can not install the MSDN CDs. It say it want Win XP Pack 2 but I perhapse that my XP is Pack 1. If any way to solve this problem? Thanks.

I have the MSDN Library for Microsoft Visual Stdio 2005. But I can not install the CDs.?
Simple, Download and install SP2 for Windows XP

clematis

How do I create a C program using Visual C++ 2005 Express Edition?

When I want to create a new project, the only available project type is "Visual C++". However, I want to create a C project. How do I go about doing this?





Thanks.





(As mentioned, I am using Microsoft Visual C++ 2005 Express Edition.)

How do I create a C program using Visual C++ 2005 Express Edition?
You can create a C program with a C++ project. I've done it many times. I don't have the Express Edition but I doubt it would be different. It should compile and run fine.





I usually just create a Win32 program within Visual C++. All I'm writing is C code though and it works.





Saw your comment, just create new source files and name them with a .c extension like the writer below wrote. Then you can start writing C code. You compile them and run them like any other project you create with Visual Studio. I usually debug until I got it right. Then I go up to Build -%26gt; Build Solution. Then the executable will be in your project folder. This is what you want to know how to run it, maybe? Good luck.
Reply:He's right.


Create it as a C++ project, and use .c file extensions.


How do I execute a C++ program with Visual C++?

I'm writing my program in Microsoft Visual C++ now. After I'm done writing it, I have now idea how to execute my programs. When I save it, it gives me a while folder for my program, and I can't even find an executable file (.exe) in it.


Is there a button I can click in Visual C++ to execute the file like in Bloodshed Dev C++?

How do I execute a C++ program with Visual C++?
There should be a pull down item called Run. But your program will run instantaneously. So a window will momentarily appear and disappear (unless you're writing a GUI-based application)





So the best thing to do is (1) save your program and the compiled, linked executable in some folder


(2) open cmd shell. (In Windows Start-%26gt;run-%26gt;cmd.exe).


(3) cd to your path


(4) run your program by typing %26lt;programname.exe%26gt;. So if your program is called math, then you'd type math.exe.
Reply:Ctrl + F5 will do it.





Or, pull down the Build menu and see the "Execute [projectname]" option....click on it.





Finding the executable:


if you've enabled linking to create an executable, look for sub directories/folders in the project folder named "Release" or "Debug", or both might exist. The executable should reside in one or both of these, depending on the project settings (build for release or debug)





I know...it should be more straightforward than this, but...
Reply:What version of VC do you use?
Reply:When you run it it should dump alot of files in the folder where you told it to. There should be one that looks like a command prompt
Reply:Look on the toolbar, there should be a Play style icon.


Click that icon to make the program then execute it.


Otherwise you need to look in the menus for 'Run program'.


Do a search in Visual C++ help for executing files.