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...
I have a very complex project I started many years ago, when I had Windows 98SE on my computer. Now that I migrated to Windows XP, I noticed that my application's title bar is displayed as an "old style Windows 9x" title bar, instead of the rounder version of Windows XP.
My application is an...
I would like to have my program open an html file at a given anchor point. For example: index.html#stuff
ShellExecute( NULL, "open", "index.html", NULL, NULL, SW_SHOWNORMAL );
works fine, but
ShellExecute( NULL, "open", "index.html#stuff", NULL, NULL...
I would like to use a specific font (True Type) in my program, but I can't be sure if it is installed on my clients' systems. I would like to know how to use a font which is not installed (i.e. load a .TTF file and get an HFONT or CFont out of it). Or, preferably, have the .TTF file as a...
I am trying to build a multithreaded application in which one thread takes care of the GUI/displaying of the information, and the other thread creates the information to be displayed.
When I tried to send messages to main window using CWnd::PostMessage, I realized that the messages are *not*...
Anyone knows how to create a modal dialog which is initially maximized?
The only help I found in MSDN is to overwrite the PreCreateWindow function, but it does not seem to ever be called (a breakpoint there never pauses execution).
Thanks,
Vincent
Hi,
I have multiple instances of a class which has a function with static variables.
Example:
class CMyClass{
int myMethod();
...
};
int CMyClass::myMethod()
{
static int i = 0;
...
return i++;
};
My problem: I would like to have the different instances of MyClass to not interfere with...
Hi,
Does any of you know how many different sequences one can get by changing the seed of rand(). Since srand takes an unsigned int as its argument, I guess this means only 65000 sequences... does anyone know of an algorithm which can generate more sequences? (Say of the order of a...
I am just learning how to use threads, and the compiler throws an error I can't figure how to solve...
In my document class (SDI application), I have the following function:
UINT CMyDoc::ThreadPseudo(LPVOID pParam)
{
// do stuff, but I don`t use pParam, only member variables of CMyDoc...
I am trying to do somthing which is not really intented to do in C++, I think... My ultimate goal is to have my VC++ 6 program create instances of objects which are not compiled into the EXE. (Some sort of fake Run-Time class declaration).
In other words: I want to create a card playing program...
Hi,
I am trying to have a CObArray of CObArray pointers to have a 2-dimensional array of CObjects. When I want to delete the 2nd CObArray's stored into the first one, I get an "Assertion Failed" error. To make sure I was not doing something wrong, I tried the following:
[code]...
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.