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 Chriss Miller 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: *

  • Users: VincentP
  • Content: Threads
  • Order by date
  1. 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...
  2. VincentP

    Why old style title bar in Windows XP?

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

    I would like to have my program ope

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

    Font as resource?

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

    SendMessage vs PostMessage

    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*...
  6. VincentP

    Create Maximized modal dialog

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

    Static variables

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

    rand() limitations?

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

    Compile error with AfxBeginThread

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

    Assertion Failed Messages and DLLs -- Need Help!

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

    Cannot delete a CObArray object!!

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

Part and Inventory Search

Back
Top