Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. VincentP

    More than 4GB for a single application?

    That's not possible on a 32 bit system. The absolute limit of 32 bit addressing is 4GB, but in practice it is often reduced to 2 or 3GB to accomodate the OS's code, dlls and wahtnot. You need to have 6a 4 bit system, running in a 64 bit OS, and use a 64 bit compiler to address more memory. Or...
  2. VincentP

    copyfile using a save as dialog?

    You should probably look for a class memeber like "fullpath". File name is usually only the file's name, not including the path. I hope that helps, Vincent
  3. VincentP

    Double Buffering

    Don't forget to also overload the WM_ERASEBKGND message handler. You add a Windows message handler to your window's class, which will probably be called "OnEraseBkgnd", and inside you "return false" instead of calling the default handler. A lot of the flicker comes from when the window is...
  4. VincentP

    can anyone help please

    That sounds a lot like you asking us to make your homework assignment. Ask a specific question, show that you tried and got stuck, or this tread is likely to be reported and deleted, as it is against the forums policies. Vincent
  5. VincentP

    My own font as resource

    Anybody? Perhaps it is not possible, and the Font Viewer actually installs and uninstalls fonts to show them, but I hope not. Thanks, Vincent
  6. VincentP

    My own font as resource

    Does anyone know how to store a font file (say a .ttf file) as a resource and then use it in the software without installing the font on the user's system? For example, Windows Font Viewer reads and uses uninstalled fonts when one double-clicks on a .TTF file. Once I know how to do that, I can...
  7. VincentP

    fatal error C1010

    Very common error. It is looking for a file name "stdafx.h", which should be the first include in your .cpp file. Alternatively, you can go in the project settings, and remove the "use precompiler header" option. Good luck, Vincent
  8. VincentP

    Really basic question plz answer quickly

    Just for future info romanstandrd, you see that your error was really simple, but impossible to figure out without the relevant code. Always put enough information! A four line program which can reproduce the error is great! Vincent
  9. VincentP

    Creating a ton of objects at once

    How about: CMyClass * pmyClass = new MyClass[60]; Then pmyClass[60].value = 3; Cheers, Vincent
  10. VincentP

    Drawing Bitmaps with BitBlt

    I remember reading that bitmaps (extension .bmp) don't officially support 32 bits. There are ways to make 32 bit bitmaps, but these would not be an "official" format. For example, MS Paint in windows XP SP 1 will not allow to save 32 bit bitmaps. If there is now support for 32 bit bitmaps, it...
  11. VincentP

    "Hello, World" Problem..

    it's endl (lowercase L), not end1 :-) (as in "end of line")
  12. VincentP

    Pointer Manipulation

    Debugging can be a long and hard process. And debugging partial code by hand is even worse! Here are some ideas where to look at: How do you initially build your list? How is the very first item initialized? Be very careful about what your pointer refer to. In your code above, at the first...
  13. VincentP

    Pointer Manipulation

    You never check for the end of the list. Either at some point the ->next pointer is going to be NULL or undefined, which would cause problems when you dereference it. Run your program in debug mode, and figure out where and when the program crashes, that will help you understand where to put...
  14. VincentP

    Simple recursive C++ program

    You should try your program by hand, with a pen and paper, using two simple numbers, and see what happens. Then you will see why it does not give what you want it to give. For example: x=4, y=2 go in 3rd if x=0 now call GDC(2,0) go to 2nd if print as in 2nd if return print as in 3rd if...
  15. VincentP

    need help with a automated program

    Some advanced scripting language like Perl is the way to go to write such scripts. Easier to maintain can compiled programs. And Perl has plenty of built-in time and date fuctions to figure out today's date. Good luck! Vincent
  16. VincentP

    Binary Search Tree returns an access violation

    if (T == NULL) should be if (*T == NULL) -Vincent
  17. VincentP

    Handling symbolic links

    That's one of my pet peeves against Windows: there is no such thing as a symbolic link in windows, only shortcuts, which cannot be used as straight files by programs (such as VC), only by double-click by the user (and surely by a specialized program which will read the shortcut link itself and...
  18. VincentP

    Win32 API

    I was in a similar situation a few years ago, I knew how to program, but not how to program in Windows, so I got the book "Sam's Teach Yourself Visual C++ 6 in 21 Days", which is intended for people in that situation: it teaches only how to use the various Windows intricacies, such as Windows...
  19. VincentP

    Unresolved External Won't Go Away

    You declare dodrop, but never define it (i.e. code it). Since the linker cannot find it in this file, it thinks it is an external function, hence the error message. Vincent
  20. VincentP

    Using char* for strings

    >>I'd previously tried using char[x] instead of char * and VC++ claimed I couldn't convert between the two Did you try to do: char buffer[10] = "hello"; That would generate a type mismatch error: from a char[6] to a char[10], which are different sized arrays. (But char * pbuff = "hello"...

Part and Inventory Search

Back
Top