15,300 Posted Topics
Re: you gave each combobox a unique id when you created it. Just use it. what version of vc++ are you using? There are a lot of combo box messages See[URL="http://msdn2.microsoft.com/en-us/library/ms674060.aspx"] this[/URL] MSDN article | |
![]() | Re: Old borland compilers starting with Turbo C had that problem -- its 16-bit compiler will not allow more than 64K worth of data in any one *.c or *.cpp file. If you need more global data than that you have to split it up into two or more files. |
![]() | Re: [QUOTE=iamthwee;293858]Don't bother with MFC.[/QUOTE] You will probably have to know it because there are millions of programs out there that use it. I use MFC all the time and don't have a problem with it any more -- it has a very very steep learning curve, up to a year … ![]() |
Re: please read [URL="http://www.daniweb.com/techtalkforums/thread50370.html"]this[/URL] thread. which provides a wealth of information for beginners. | |
Re: None of the win32 api functions I'v used take smart pointers as a parameter or pass them back. Why? because they can all be called from other languages which know nothing at all about c++ smart pointers. | |
Re: 1. create an MFC Extension DLL 2. In the .h file, define a macro similar to below [code] // The following ifdef block is the standard way of creating macros which // make exporting from a DLL simpler. All files within this DLL are compiled // with the __GXDLCODE_EXPORTS__ symbol … | |
Re: You should study [URL="http://msdn2.microsoft.com/en-us/library/wss56bz7(vs.80).aspx"]this MSDN article[/URL]. I think it includes some example too. [edit]Just noticed the link is for VB .NET, not VB 6. [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconaddingcontrolstoproject.asp"] This[/URL] might give you a start. I'm sure there are many examples. [/edit] | |
Re: did you compile and run the program to see what it does? Requires Turbo C compiler. | |
Re: I smoked since high school, and just got the guts to stop in Sep 2001. One of the main reasons I stopped was cost -- the cost nearly $5.00 USD per pack in my area, and its a lot more expensive than that in other parts of USA. It was … | |
Re: MS-Windows, use [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/console_functions.asp"]these[/URL] console functions. First, get the handle to the consol window with GetConsoleWindow() then move the cursor to desired location with SetConsoleCursorPosition(). | |
Re: bad link -- either fix the link or post the code. My guess is that you either used an old header file or no header file at all. should be <iostream>, not <iostream.h> (doesn't have a .h extension) | |
Re: Look in your text book how to access database objects. You [u]are[/u] trying to learn VB with a book aren't you ??? If not, you should be. Also try to get initialize answers from google, which is getting pretty good at answering programming questions. For example , ask for "vb … | |
Re: how about [URL="http://www.azzcardfile.com/cardfile/crd_file.html"]this[/URL] | |
Re: why do people keep saying VC++ is a language. It isn't. VC++ is the name of Microsoft Visual Studio C++ compiler, not a language. >>C and C++ are free C# is not. Again, those are languages, not compilers. Some compilers for each of those languages are free and some are … | |
Re: My solution would be to write a public get function and use it in the loop instead of attempting to accessing the private member directly. | |
Re: Every version of MS-Windows has come with a free disassembler -- its called debug.exe and located in c:\windows directory (or whereever you installed windows). Here are a couple very basic commands [code] c:\debug myprogram.exe // disassemble the program >u <Enter> // get help >h <Enter> [/code] | |
Re: my guess is the computer that runs the cgi program does not have .NET framefork installed or the wrong version. Use either fprintf() or cout and you won't have that problem. | |
Re: There was a short film on tv the other day on the history channel (I think) that discussed that. The interviewed a very old shepherd (maybe in his 80s) who had been born and raised on the area, and he also confirmed that it would have not been possible for … | |
| |
Re: you probably can not do the because the program is more than likely burned into a ROM (Read-Only Memory) chip on the card. Either buy a new 64-bit video card or run the 32-bit card on your 64-bit computer. That's what I do and don't have a problem. | |
Re: There are a few articles about mixing c and assembly. Not very difficult to do, but the techniques may be a bit different from one c compiler to another due to c calling convention and how the c compiler modified function names. For example microsoft compiler add an underline before … | |
Re: >>What is the size of a double? depends on operating system and possibly the compiler. But you can use sizeof(double) to get its size. >>How long is a piece of string? depends on where you cut it with your scissors. (sorry for the bad joke, I just couldn't resistet temptation … | |
Re: >>enterance papers What are these? You mean students in India have to take a test in order to advance to the next grade ?:eek: And why would you want the solutions to some previous year's test? I would think you would want the solution to the next year's test. This … | |
Re: Oh Cool!:) :) I just saw the new format for the first time. Looks great -- I thought the previous format looked a little cluttered. | |
Re: [QUOTE=Mike999984;292283]Is it possible? Because I want to convert my Mario by Utter Chaos into Java to put on my website.[/QUOTE] Of course its possible. Just rewrite the application in Java. (don't ask me how because I don't know either). | |
Re: please read [URL="http://www.daniweb.com/techtalkforums/thread50370.html"]this thread[/URL] | |
Re: >> buffer[field.Size()] = 0; this C string technique is unnecessary when using std::string objects (assuming buffer is std::string). And it might actually cause data corruption if the amount of allocated space is not enough for that character. >> if ( code = "SUB1" ) you probably intend to use the … | |
Re: I'm not sure if this will work, but if there are spaces in the path then you will have to put it in a directory that does not have spaces. old MS-DOS programs do not recognize long filenames or path names either. | |
Re: what operating system? There are no standard C or C++ functions to do that. If you are using MS-Windows you can call the win32 api function [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/gettimezoneinformation.asp"]GetTimeZoneInformation[/URL]() | |
![]() | |
Re: How about [URL="http://shop.compuware.com/dr/sat1/ec_Main.Entry17C?SID=50965&SP=10023&CID=0&PID=773671&PN=1&V1=773671&CUR=840&DSP=&PGRP=0&ABCODE=&API1=65&API2=GOOGLE&API3=boundschecker_exa&API4=Empty&API5=Empty&CACHE_ID=0"]BoundsChecker[/URL] | |
Re: Please read [URL="http://web.daniweb.com/techtalkforums/announcement8-2.html"]forum announcements[/URL] | |
Re: here is how to enter the characters of a number as a string and convert to float. If this code is too much for you then you should probably shelve your project for awhile and concentrate on learning c++. [code] #include <string> #include <strstream> #include <iostream> using namespace std; int … | |
Re: [QUOTE=green_oasis;291272]Thanks for the reply. I actually don't understand the size of B. There's only one private function in B. What made the size to be 4? For A, because the long int takes 4 bytes, I can understand the size is 4. Thanks![/QUOTE] class B also includes class A, therefore … | |
Re: some programs were written with more than one language. Now emerging are .NET programs which may be a combination of c++, VB and C#. | |
Re: fscanf() will read just one word at a time, which will greatly simplify the solution to the problem. | |
Re: [code] fin.seekg( 0, ios::end ) // Find file size fileSize = fin.tellg( ); if( fileSize < sizeof( int )) // Need atleast one in[/code] Is the file a binary file or text file? If you view it in Notepad or some other text editor are the numbers readable? If they … | |
Re: [URL="http://scv.bu.edu/tutorials/F90/intrinsics/TRANSPOSE.html"]here[/URL] is a simple example, but it is not in C language. If you study some of the [URL="http://www.google.com/search?hl=en&q=how+to+transpose+a+matrix"]google links[/URL] you will find other examples that might help you | |
Re: I suspect there are billions of planets in the universe that have water. We earthlins are probably not alone. | |
Re: your program compiled without error with my compiler -- VC++ 6.0 on Windows XP. what compiler are you using? If its really old, such as Turbo C++, then the program may not compile because the compiler is just too ancient. | |
Re: [QUOTE=jbennet;289152]piss isnt that bad a word really as it says in daniwebs rules, most of our posters are teens or adults and so it should be fairly acceptable[/QUOTE] depends on how that word is used. "I'm pissed off" is one thing, but "are you taking a piss" is quite another. … | |
Re: have you tried to compile that program? what are the compiler errors? [code] tructure Moviedata; int movie title; int movie director; int year released; [/code] That is not the correct way to declare a structure. Here is how it should be done. Since you are writing a c++ program you … | |
Re: what is the error message? have you granted yourself permissions in the directory that contains the cgi program and the program itself to run the program? | |
![]() | Re: Your coding style is really quite terrible. There is nothing wrong with putting stuff on separate lines to make it easier to read. Easy reading is much better than being cute. For example: [code] for(int r = 1; r <= rows; r++) { <snip> for(b = 1; b <= rows; … ![]() |
Re: [quote]provides a forum for [u]intellectual[/u] exchange among members.[/quote] That disqualifies me :mrgreen: | |
Re: I think [URL="http://bloodshet.net"]Dev-C++[/URL] will be easier for beginners to learn the language because it doesn't have as complex an IDE as MSVC. Once you get to the place when you want to start writing MS-Windows gui programs then you should probably switch to the Microsoft VC++ 2005. | |
Re: use [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconusingcommunicationscontrol.asp"]The Communications Control[/URL] | |
Re: [u]research project[/u]: name the most popular sort algorithms and briefly describe how they work. Which algorithms are the fastest. there is tons of information on this topic because Ph.D.'s have done a great deal of search about it. | |
Re: what is GetStudents() supposed to do ? >>will receive the array an array of what? It certainly is not an array of struct Student because the function does not take an array but a single object. | |
Re: Did you forget to include <fstream> ? |
The End.