15,300 Posted Topics

Member Avatar for Learning78

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 …

Member Avatar for Learning78
0
202
Member Avatar for Dani

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

Member Avatar for feoperro
3
941
Member Avatar for valleymorning

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 …

Member Avatar for Sudar_Gudi
0
2K
Member Avatar for Amonod

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.

Member Avatar for Ancient Dragon
0
168
Member Avatar for s_mostafa_h

Are you talking about a disassembler -- a program that takes a *.exe file and converts it to assembly language ?

Member Avatar for s_mostafa_h
0
252
Member Avatar for ctpsolo

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?

Member Avatar for Ancient Dragon
0
162
Member Avatar for makan007

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.

Member Avatar for jonsca
0
192
Member Avatar for firoz.raj

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

Member Avatar for Hand-E-Food
0
234
Member Avatar for mohamedqamar

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

Member Avatar for Ancient Dragon
-3
177
Member Avatar for sodak

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 …

Member Avatar for jonsca
0
111
Member Avatar for happygeek

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.

Member Avatar for mitch9654
0
317
Member Avatar for ibackus

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 …

Member Avatar for ibackus
0
141
Member Avatar for sneekula

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

Member Avatar for gelgin2k
3
593
Member Avatar for Kreddy89

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

Member Avatar for Kreddy89
0
494
Member Avatar for Shillz

[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++ …

Member Avatar for CppBuilder2006
0
983
Member Avatar for zukkoor

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.

Member Avatar for jonsca
0
3K
Member Avatar for ilikelampard

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.

Member Avatar for ilikelampard
0
212
Member Avatar for nerdinator
Member Avatar for ThiruNarmu

What compiler are you using? Read [URL="http://www.codeguru.com/forum/showthread.php?t=70624"]this related thread[/URL]

Member Avatar for Ancient Dragon
0
30
Member Avatar for customtshirts
Re: Hi

[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]

Member Avatar for Ancient Dragon
-6
76
Member Avatar for xclusv-aj

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

Member Avatar for Ancient Dragon
-1
331
Member Avatar for ArtphotoasiA

After 33 posts you should know where to post this! But Happy New Year anyway :)

Member Avatar for CJesusSaves
1
67
Member Avatar for happygeek

Only 14 hours and 30+ minutes to go! Happy New Year everyone :)

Member Avatar for The Dude
7
180
Member Avatar for lostangel556

That first code snippet compiled ok for me after adding another \ escape character at the start [icode]comports[0] = CreateFile("\\\\.\\COM6", /* blabla */[/icode]

Member Avatar for nezachem
0
205
Member Avatar for OffbeatPatriot

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.

Member Avatar for Ancient Dragon
0
146
Member Avatar for SasseMan

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]

Member Avatar for Ancient Dragon
0
113
Member Avatar for subscriptions

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

Member Avatar for Ancient Dragon
0
45
Member Avatar for Excizted

[URL="http://www.goingware.com/tips/member-pointers.html"]Read this article[/URL]

Member Avatar for Ancient Dragon
0
259
Member Avatar for Jargenis

[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 …

Member Avatar for Bob_180_Bob
0
120
Member Avatar for cwarn23

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 …

Member Avatar for Ancient Dragon
1
205
Member Avatar for rehamz

AFAIK CTrace is only supported on *nix. For your compiler just learn to use its excellent debugger.

Member Avatar for Ancient Dragon
0
56
Member Avatar for Ancient Dragon

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.

Member Avatar for Ancient Dragon
0
106
Member Avatar for Ancient Dragon

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]

Member Avatar for csitol
0
133
Member Avatar for Gaiety

[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 …

Member Avatar for Salem
0
154
Member Avatar for Stevoni

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

Member Avatar for Ancient Dragon
1
233
Member Avatar for samsons17

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

Member Avatar for jonsca
0
424
Member Avatar for hdef

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 …

Member Avatar for hdef
0
150
Member Avatar for vrnadh123

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

Member Avatar for amol_d
0
197
Member Avatar for Silvershaft

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

Member Avatar for Rajesh R Subram
0
1K
Member Avatar for EddieC

[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 …

Member Avatar for danchiadz
0
623
Member Avatar for serra01

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

Member Avatar for adams161
-9
293
Member Avatar for sodak

[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)

Member Avatar for sodak
0
146
Member Avatar for Androggles

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 …

Member Avatar for Androggles
0
159
Member Avatar for strlen

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

Member Avatar for Ancient Dragon
0
111
Member Avatar for ilyaz

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 …

Member Avatar for ilyaz
0
74
Member Avatar for bremis

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

Member Avatar for Ancient Dragon
0
106
Member Avatar for samsons17

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

Member Avatar for mrnutty
-2
175
Member Avatar for lakshmi06

[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 …

Member Avatar for Ancient Dragon
-4
71
Member Avatar for number87

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.

Member Avatar for number87
0
3K
Member Avatar for coolcool

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]

Member Avatar for Ancient Dragon
0
91

The End.