Forum: C++ Feb 9th, 2006 |
| Replies: 8 Views: 7,022 Instead of using a text file, use another format that lets you adjust the hieght between lines of the character and the page width. Check out RTF format. |
Forum: C++ Sep 30th, 2005 |
| Replies: 1 Views: 1,845 WM_CLOSE (specifically when the X button is clicked)
WM_DESTROY (when the window is destroyed)
Example of a Dialog:
BOOL CALLBACK ExampleDlgProc(HWND hDlg, UINT message, WPARAM wParam,... |
Forum: C++ Sep 30th, 2005 |
| Replies: 3 Views: 4,128 Yes there is, it is called sockets.
On windows you can use winsock2 just include <winsock2.h> (it is part of the standard windows API).
Search on the internet for "winsock tutorial" for... |
Forum: C++ Sep 30th, 2005 |
| Replies: 8 Views: 14,837 Straight from MSDN.com ...
So in WinMain do something like this:
lpCmdLine = GetCommandLine();
Then parse the lpCmdLine string. (REMEMBER IT DOES NOT INCLUDE THE PROGRAM PATH).
Also, a... |
Forum: C++ Sep 26th, 2005 |
| Replies: 1 Views: 6,527 Use PostMessage() . It will add your message to the the recieving windows message que.
(SendMessage is to be used only within the same thread).
Also, check out SendThreadMessage considering... |
Forum: C++ Sep 26th, 2005 |
| Replies: 4 Views: 1,983 |
Forum: C++ Sep 25th, 2005 |
| Replies: 4 Views: 1,983 yeah...how would i feed the processor raw binary in C/C++ ? |
Forum: C++ Sep 25th, 2005 |
| Replies: 4 Views: 1,983 Is it possible to tell a processor to run raw binary code? |
Forum: C++ Aug 26th, 2005 |
| Replies: 2 Views: 4,624 Try ImageMagick it comes with a C++ API called Magic++ and suports tiff files and a bunch of other image formats.
One of the best ones around -- you can fiind it here:
... |
Forum: C++ Jun 4th, 2005 |
| Replies: 3 Views: 2,561 What compiler are you using?
OpenGL is not standard with all compilers. You may have to download it. |
Forum: C++ Jun 2nd, 2005 |
| Replies: 47 Views: 67,474 When you want to pass a constant variable, pass it by reference to save memory.
Example:
int example (const int value); // Uses more memory than
int example (const int &value); // this one |
Forum: C++ Jun 2nd, 2005 |
| Replies: 26 Views: 5,364 There's going to be a lot of cross posting going on between the two. I'm up for it :D |
Forum: C++ Apr 25th, 2005 |
| Replies: 1 Views: 2,401 Are you dealing with a List control, array, or something else?
If its an array, you should be able to go through the array with a simple loop.
*I think*
If its a list control you can use... |
Forum: C++ Apr 25th, 2005 |
| Replies: 3 Views: 11,979 Using Standard Code:
1. You need a class to tell the turlte, aka the pen, direction, color, steps, etc.
2. You need a console menu that can input direction, steps, color, etc
3. You need to draw... |
Forum: C++ Apr 25th, 2005 |
| Replies: 6 Views: 2,318 You should know how to do the following in C++:
1. Overload fuctions and Call Parent Methods (Class Structure)
2. How to use interfaces
3. Understand Data Structures and Custom Data Types
4.... |
Forum: C++ Apr 25th, 2005 |
| Replies: 3 Views: 8,041 Do you need help with the actual coding or putting everything together and making the OS bootable?
Luckily I can help you on both! Here is a resource I want you to take a look at first:... |
Forum: C++ Apr 25th, 2005 |
| Replies: 14 Views: 3,800 Check out: http://www.codeproject.com/shell/systemtray.asp
Although the explanation refers to an MFC based example, at the top of the page you can download a NON-MFC example.
You will need to... |
Forum: C++ Apr 20th, 2005 |
| Replies: 4 Views: 16,477 Some of the variables being used in the .h file are declared in the .cpp file, which is after you include the info from the .h file.
I reccomend making a schedule class. The code, as it is now,... |
Forum: C++ Apr 19th, 2005 |
| Replies: 14 Views: 3,800 Here what I like to call the lazy man's method!
Interprocess communication can help improve the functionality of your program.
// Command line approach
#include <stdlib.h>
...
// To open... |
Forum: C++ Apr 19th, 2005 |
| Replies: 54 Views: 79,366 I know this may not seem like a super time saving technique, but the way you name your variables will help save time and reduce compile time errors.. Having a conventional variable naming format will... |
Forum: C++ Apr 19th, 2005 |
| Replies: 21 Views: 31,472 People on ebay sell used versions of MSVC for even less. |
Forum: C++ Mar 5th, 2005 |
| Replies: 6 Views: 15,538 Back in my 'ole highschool days in AP Computer Science class, we used a library called apstring, it's usage is similar to how java handles strings. Google it, may save you the effort. |
Forum: C++ Mar 5th, 2005 |
| Replies: 10 Views: 8,023 |
Forum: C++ Mar 5th, 2005 |
| Replies: 10 Views: 8,023 Just to expand on the major differences of usage:
The <iostream.h> library has been deprecated for many years now, but some C++ coders will still use it instead of <iostream> library. The .h... |
Forum: C++ Mar 1st, 2005 |
| Replies: 4 Views: 2,024 You dont need the semicolon after the last '}'. As for the return type, the compiler assumes that if you return a type of int and not explicit value is given then it is 0. Therefore, it is good... |
Forum: C++ Feb 28th, 2005 |
| Replies: 8 Views: 2,647 Narue Said:
I agree, how about a struct instead of passing about 5 or 6 parameters. That way all you have to do is pass a single object.
Fix your typos too and your all set! |
Forum: C++ Feb 28th, 2005 |
| Replies: 4 Views: 3,191 If you want to reed a book here's an ebook "Thinking in C++ Second Edition"
http://www.planetpdf.com/developer/article.asp?ContentID=6634
here's a simple tutorial to get you started
... |
Forum: C++ Feb 27th, 2005 |
| Replies: 9 Views: 2,072 Messages have been restored, sorry for the inconvience!
I stand corrected on this issue ;) |
Forum: C++ Feb 26th, 2005 |
| Replies: 9 Views: 2,072 read
http://homepages.tesco.net/~J.deBoynePollard/FGA/legality-of-void-main.html
Unfortunetly there is a valid claim to using void main(). It's bad practice, but does; technically, follow... |
Forum: C++ Feb 25th, 2005 |
| Replies: 9 Views: 2,072 void main is acceptable it is usually more common with programmers using MSVC based compilers (nmake).
also why are you declaring the file streams in main? You should jsut point the open file... |
Forum: C++ Feb 19th, 2005 |
| Replies: 5 Views: 2,799 can you explain more? Do you want a static build so you dont need dll's or do you want to build a open gl or dx wrapper dll? |
Forum: C++ Feb 19th, 2005 |
| Replies: 3 Views: 2,271 For the benifits of others:
You must include <iomanip> to use this manipulator.
// setprecision example
#include <iostream>
#include <iomanip>
using namespace std;
int main () { |
Forum: C++ Feb 9th, 2005 |
| Replies: 3 Views: 5,574 Basically what you need to do is download the site and parse the html data right? If that is the case, the easiest way is to do it using sockets.
Use sockets to send information to the server in... |
Forum: C++ Dec 14th, 2004 |
| Replies: 18 Views: 9,932 Copy Paste Find Replace! Hahah stay away from that philosphy and you will do alright. |
Forum: C++ Nov 24th, 2004 |
| Replies: 1 Views: 1,318 just use this simple random number definition
#define getrandom( min, max ) ((rand() % (int)(((max) + 1) - (min))) + (min))
then use getrandom function as in the definition.
I forgot which... |
Forum: C++ Sep 24th, 2004 |
| Replies: 97 Views: 25,665 I am qualified and I own an anti-cheat company for video games.
Yes, I am familar with those...aimbots are common these days.
First of all to get that nitty-gritty in C/C++ would not be... |
Forum: C++ Sep 21st, 2004 |
| Replies: 97 Views: 25,665 Almost everything these days are written in C++. Lets think of numerous videogames, especially Diablo II, warcraft 3, etc.
How many other languages can you do system level programming and retain... |
Forum: C++ Sep 20th, 2004 |
| Replies: 7 Views: 3,660 bah I got it fixed, no worries. |
Forum: C++ Sep 7th, 2004 |
| Replies: 97 Views: 25,665 :mrgreen: :mrgreen: :mrgreen: |
Forum: C++ Sep 6th, 2004 |
| Replies: 97 Views: 25,665 I'm a free lancer who knows many different languages, and to be honest I find languags like Java to be VERY overated. Making GUI's in Java is a headache and well, if you want the whole portability... |