15,300 Posted Topics
Re: That's a famous behavior of MFCs Close button -- the Close button is activated when the Enter key is pressed. One way to fix that is to catch the WM_CLOSE event and ignore it, but then you might not be able to close the program at all. Another way is … | |
Re: >>I'm not happy that my rep power went to only +5. Ohhh. I see mine went from 60 to 24, and negative from -30 to -12. I'm happy about the negative rep because afterall that's what I asked for in the other thread I started here. I can live with … ![]() | |
Re: There is no such data type as "tchar". Do you mean TCHAR that is defined in tchar.h? If that is right, then TCHAR is defined as either char* or wchar_t*, depending on if the program is compiled for UNICODE or not. And to answer your question, no that function will … | |
Re: I don't use a mac but I know that [icode]wc file1 file2[/icode] works on *nix and MS-Windows. When you say "it doesn't work" what exactly do you mean. More than likely the problem is your program, not the os. | |
Re: Are you talking about a disassembler -- a program that takes a *.exe file and converts it to assembly language ? | |
Re: Is that supposed to duplicate the functionality of win32 api function LoadProcess() ? If yes, then why bother? What makes you think you can do it faster or better than the Microsoft experts? | |
Re: 1) line 13 and 21 only reserve one character for name. 2) function FileToArray() does nothing but open and close the input file. What good is that??? I expected to see some code that read the file into the structure members. | |
Re: [URL="http://www.computing.net/answers/windows-vista/program-data/2118.html"]Here are a few explanations [/URL]. I think it was under the user's folder on XP. ![]() | |
Re: line 22: when is that file stream ever opened? Its a bad idea to make fstream an object of a class. Just declare it in the functions that need it, open it, use it, then close it when the function ends. lin33: void main -- main NEVER EVER returns void. … | |
Re: Are you talking about the properties menu shown when you right-click a file in Windows Explorer? It will probably depend on the version of MS-Windows you are running. I am running Windows 7 and do not see a Category property. Attached is a picture of what I see. (As you … | |
Re: I got my Christmas, New Years, Birthday, Valentines (for the next 10 years or so) present about two weeks before Christmas -- a new HDTV with Bose sound system. A couple of guys brought it out to my house, set it all up, and took away all my old stuff. | |
Re: 1) name is an uninitialized pointer. You have to allocate memory for it before it can be used as an input string (line 14). Just declare name as a character array instead of a pointer, such as [icode]char name[80];[/icode] line 11: There is no reason to make that variable a … | |
Re: [QUOTE=Vineeth K;992373]Hey plz add .Net and Visual basic 6[/QUOTE] Those are not computer languages. .NET is part of the Windows operating system, and VB6 is a compiler. | |
Re: >>fatal error C1083: Cannot open include file: 'ffmpeg/swscale.h': No such file or directory It should have been pretty obvious that the compiler can not find one of the include files. Check your computer and find out if you have swscale.h >>error C3861: 'mkdir': identifier not found You need to include … | |
Re: [QUOTE=Shillz;1098035]these programs can b compiled using notepad++..theres no need to chage lappy... jst that m not getting hw to compile it using notepad++[/QUOTE] As others have tried to tell you -- [b][color=red]Notepad++ is not a compiler[/color][/b]. I think you can tell notepad++ how to run a a compiler, but notepad++ … | |
Re: All the code beginning on line 13 is not inside any function. The function started on line 9 ends on line 11, and you did not define any other function name in any of the remaining lines of code. | |
Re: CObList is a linked list of CObject class objects (or derived from CObject). CList is a linked list (template) of any c++ class. If you want to know specific difference then look them up (google) on MSDN. | |
Re: I suppose OpenGL or DirectX have sound API functions. | |
Re: What compiler are you using? Read [URL="http://www.codeguru.com/forum/showthread.php?t=70624"]this related thread[/URL] | |
Re: [QUOTE=customtshirts;1098826]any body have any good way to learn it?[/QUOTE] Yes -- [list] [*]Buy a book and read it. [*]Go back to college and take a few programming courses [*]Read some online tutorials [*]Stop spamming your sig links [/list] | |
Re: >>if anyone could help me get the code correct and working would be really great. You need to state the problem(s) you have with the code and post a few of the error messages your compiler produced. We are not here to do your homework for you. | |
Re: After 33 posts you should know where to post this! But Happy New Year anyway :) | |
| |
Re: That first code snippet compiled ok for me after adding another \ escape character at the start [icode]comports[0] = CreateFile("\\\\.\\COM6", /* blabla */[/icode] | |
Re: line 21: That is opening the file in text mode, not binary mode. You need to add ios::binary flag [icode] ifstream file("monkey.c3d", ios::binary);[/icode] That is most likely why you get the unexpected problems you are experiencing. | |
Re: Circular dependencies. You can only do it by using the two class pointers because otherwise the class must be fully defined before it can be referenced. [code] class Actor; class Environment { // blabla void add_actor(Actor * act); std::vector<Actor*> actors; }; [/code] | |
Re: [URL="http://forums.devx.com/showthread.php?t=172451"]Here [/URL]is a thread about the same problem. You can sometimes get specific help by googling for the error message. | |
Re: [URL="http://www.goingware.com/tips/member-pointers.html"]Read this article[/URL] | |
Re: [QUOTE=Bob_180_Bob;1091037]Hi, If you delete the backup partition and you need to reinstall Windows, you will then need to buy a new OS or computer so it is best left alone. [/QUOTE] Not true. I lost my HD on my HP computer, called HP tech support and they mailed me a … | |
Re: memory allocated with new or malloc() in a DLL can not be deallocated by the main program because the memory has to be deallocated in the DLL. The same with memory allocated in the main program has to be deallocated there, the dll can not do it. The reason is … | |
Re: AFAIK CTrace is only supported on *nix. For your compiler just learn to use its excellent debugger. | |
I normally hate electric guitars, but ... [URL="http://www.sodahead.com/music/what-is-your-favorite-instrumental-song/question-795961/"]this one[/URL] is just foot stomping great! :) :) Scroll down the page and listen to Cannon in D on electric guita -- also good. | |
Every since I got a FF update yesterday (to 3.5.7) it seems to be crashing a lot. Anyone else experience this? [edit]64-bit Windows 7[/edit] | |
Re: [QUOTE=Gaiety;1095466]please some guru provide a correct reason on this because it is not as simple as it looks[/QUOTE] There is no one [b]correct reason[/b]. All the reasons mentioned in this thread are correct. There is another integer type -- char which is a one byte integer. And of course there … | |
Re: [QUOTE=Frederick2;1096083]Just occurred to me you'll probably need a LoadLibrary("PathToDll") call there too. [/QUOTE] \ That is only necessary if you want to use GetProcAddress(). The Windows OS program loader will auto load the dll when it starts the program. | |
Re: [icode]while ( letter_box[i-1] !=SENTINEL); //how do i correct this????[/icode] char is just a one-byte integer, and has both negative and positive values. | |
Re: lines 60 and 61: you don't need both of those lines -- delete one of the two. line 67: you are mixing up files opened in text mode and files opened in binary mode. read() method is for binary mode, not text mode. If it is really a binary file … | |
Re: I doubt you will get free source code. But you can buy [URL="http://shop.symantecstore.com/DRHM/servlet/ControllerServlet?Action=DisplayProductDetailsPage&SiteID=symnahho&Locale=en_US&ThemeID=106300&Env=BASE&productID=44316200&pgm=6037100"]PartitionMagic[/URL]. | |
Re: _T macro is defined in tchar.h -- used for UNICODE compiles. When compiling with _UNICODE the _T macro converts char* to wchar_t*. When NOT compiling for _UNICODE the _T macro does nothing. | |
Re: [quote] [b]Windows 7 crushed Vista in early launch sales[/b] By Matthew DeCarlo, TechSpot.com Published: November 5, 2009, 1:22 PM EST By now, nearly everyone can agree that Windows 7 is at the very least a marginal improvement over Windows Vista, so its success comes as no surprise. According to research … | |
Re: I have no idea what he is trying to say -- just looks like a lot of [URL="http://en.wikipedia.org/wiki/Gobbledygook"]gobbledegook[/URL]. | |
Re: [URL="http://www.codeproject.com/KB/cpp/cppforumfaq.aspx#win_exepath"]This Q&A[/URL]will help you (first one at the top of the page) | |
Re: If you are trying this on a school's computer then your school may have locked you out of certain folders, giving you only read-access to c:\program Files and c:\windows. They don't want you screwing around with those folders, possibly adding viruses or deleting important files. The del command don't work … | |
Re: Unless you are required to use pointers it might be easier to use strstr() to find the location of the word " to " (put a space before and a space after so that it doesn't pick up the word "too" or any other word that contains "to". | |
Re: What kind of a dll did you create? I have VC++ 6.0 w/SP3 on Windows 7 and created an MFC dll, using all the default settings, and VC++ 6.0 generated eight files, none of them empty. Perhaps you need to reinstall the compiler. >>Documentation states that I need to copy … | |
Re: >>you may need to set firefox as your default browser to open all your internet pages in this browser. I am using Windows 7 and do not have that problem. IE7 is the default browser, but I use FF the most. While in FF I never see IE7 popups. | |
Re: vowels are aeiou, all other alpha letters are constants toupper() will tell you if the letter is upper case tolower() tells you if the letter is lower case | |
Re: [QUOTE=lakshmi06;1094820]didnt get it[/QUOTE] We are not a software house for providing free software. If you can't find the code via google then the next best thing is to write it yourself or pay someone lots and lots of money to write it for you. If that is what you want … | |
Re: Try deleting all the compiler-generated files from your project directory and the exe too, then recompile. Also check if there is another instance already running of the program you are trying to compile. Do this by looking at Task Manager. | |
Re: What operating system and compiler? If you are using MS-Windows then you will have to use the [URL="http://msdn.microsoft.com/en-us/library/ms682073%28VS.85%29.aspx"]win32 api console functions[/URL]. Or you could use [URL="http://pdcurses.sourceforge.net/"]pdcurses library.[/URL] |
The End.