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...
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
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...
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
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...
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
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
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...
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...
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...
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...
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
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...
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...
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
>>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"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.