Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

lob

@lob
About
Posts
16
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Need uuid.lib for Visual Studio 6 (debug)
    L lob

    Sorry , forgot to mention - i need it for "IFontLink2". I have uuid.lib from latest SDK , but if i compile my project in VC6 in debug mode it says "corrupted lib" and as far as i know this is because uuid.lib from letest SDK doesn't have debug version of uuid.lib (it's only release).

    C / C++ / MFC csharp visual-studio debugging question

  • Need uuid.lib for Visual Studio 6 (debug)
    L lob

    Hi, uuid.lib provided with Visual Studio .NET isn't good for project written in VC6 when compiling in debug mode. Can you please tell me where to download or send me uuid.lib for Visual Studio 6 (debug) ? Thanks!

    C / C++ / MFC csharp visual-studio debugging question

  • Urgent! Need badly older "unicows.lib" for VC6 !
    L lob

    Hi, My program is written in Visual C++ 6 + MFC (4.2) I need to build it with unicode. I downloaded Microsoft Core Platform SDK and took "unicows.lib" from there. When building application in debug mode i get following error : "Linking...UnicoWS.lib(failure.obj) : fatal error LNK1103: debugging information corrupt; recompile module" When i started researching , i understood that unicows.lib i took from microsoft core SDK is latest version and it was build in VC 7 (it's debug info). Now , the question is if maybe someone has older "unicows.lib" which will be good for VC6 ? I need it badly. Please post URL to download here or sent it to leon AT btdtech DOT com Thanks!!

    C / C++ / MFC c++ question asp-net com debugging

  • Unicode CString init from &#XXXX;&#YYYY; representation
    L lob

    No, I mean unicode representation of string. Т = 'T' , е = 'e' , с = 's' ; т = 't' (in russian)

    C / C++ / MFC question help tutorial

  • Unicode CString init from &#XXXX;&#YYYY; representation
    L lob

    Hi, I store texts in file in following unicode representation : &#XXXX;&#YYYY; This string & # 1058; & #1077; & #1089; & #1090; ,for example , means "Test" in russian. My project is built as unicode and i can successfully show this string if i do following: CString strMsg; strMsg = (unsigned short) 1058; strMsg += (unsigned short) 1077; strMsg += (unsigned short) 1089; strMsg += (unsigned short) 1090; TextOutW(....,..,..,..,strMsg,..,..); My question is : what should i do in order to init string like this : Code: CString strText = "& # 1058; & # 1077; & #1089; & #1090;"; so that it will be "treated" as unicode string ? I tried _T("& # 1058; & # 1077; & #1089; & #1090;") , but it doesn't help.. NOTE - I USED SPACES IN ABOVE POST INSIDE UNICODE STRINGS ON PURPOSE TO PREVENT THEM TO APPEAR AS RUSSIAN CHARS

    C / C++ / MFC question help tutorial

  • SSI calling perl script + passing dynamic parameter
    L lob

    Hi, I'm calling for some script which displays info according to category. This is how i do it : It works , but currently it always displays the same default category. Now , the problem : I dont know what category i gonna use. It comes through URL , because the URL looks like this : www.mydomain.com/info.html?category=1 where the number "1" can be any number from 0-9. The perl script cant retrieve this info through $ENV{'QUERY_STRING'} because i call the script without any parameters. I'd like somehow to add category number when calling the script IN RUNTIME (!) where the "x" is category number passed in URL , but dont know if its possible. Help needed! Thanks in advance I tried adding it with JavaScript but id didnt work out ;(

    Web Development perl help javascript html database

  • Transparent gradient shading
    L lob

    I'll look for it , hopefully it will help :) Thanks

    C / C++ / MFC tutorial question

  • Transparent gradient shading
    L lob

    Hi, I have rect i want to fill with transparent gradient ( so that one will see what's below the rect ). The function should look like : void DrawTransparentGradient(CDC* pDC, CRect* pRect,COLORREF clrStart,COLORREF clrEnd); Anyone knows how to implement it ? Thanks a lot!

    C / C++ / MFC tutorial question

  • Storing data in a file with seperators
    L lob

    I store data with separator '\t' ( TAB ) and i'm satisfied :)

    C / C++ / MFC c++ question

  • Check if file existe, get temporary file name?
    L lob

    Here's how you check if file exists : CFileFind fileCheckExistance; CString strPath = "C:\\Test\\myfile.exe"; if ( fileCheckExistance.FindFile( strPath ) ) AfxMessageBox("File exists !"); else AfxMessageBox("File doesnt exist.");

    C / C++ / MFC tutorial question

  • Writing help
    L lob

    Thanks!

    C / C++ / MFC csharp c++ tools help question

  • Writing help
    L lob

    Hi, I've written some utility in VC++ .Net Now it's time to write help for it , but have never did it before. Anyone knows any free help authoring tool that will fast and in intuitive way generate winhelp file for my program ? Preferrably one which supports inserting screenshots and can parse .rc/.h files to generate context help. Thanks a lot ;)

    C / C++ / MFC csharp c++ tools help question

  • Problem drawing transparent bitmap using DrawTransparentBitmap exisitng ONLY in Win98 16bit color
    L lob

    John, Thanks , but your answer isn't answering my question. I do know how works TransparentBlt function , i asked what's wrong in my function for drawing transparent BITMAPS.

    C / C++ / MFC graphics help

  • Problem drawing transparent bitmap using DrawTransparentBitmap exisitng ONLY in Win98 16bit color
    L lob

    Any ideas ?

    C / C++ / MFC graphics help

  • Problem drawing transparent bitmap using DrawTransparentBitmap exisitng ONLY in Win98 16bit color
    L lob

    Hello, I'm using following function : ----------------------------------------------------------------------- void DrawTransparentBitmap(HDC hdc, HBITMAP hBitmap, int xStart, int yStart, COLORREF cTransparentColor) { BITMAP bm; COLORREF cColor; HBITMAP bmAndBack, bmAndObject, bmAndMem, bmSave; HBITMAP bmBackOld, bmObjectOld, bmMemOld, bmSaveOld; HDC hdcMem, hdcBack, hdcObject, hdcTemp, hdcSave; POINT ptSize; hdcTemp = CreateCompatibleDC(hdc); SelectObject(hdcTemp, hBitmap); // Select the bitmap GetObject(hBitmap, sizeof(BITMAP), (LPSTR)&bm); ptSize.x = bm.bmWidth; // Get width of bitmap ptSize.y = bm.bmHeight; // Get height of bitmap DPtoLP(hdcTemp, &ptSize, 1); // Convert from device // to logical points // Create some DCs to hold temporary data. hdcBack = CreateCompatibleDC(hdc); hdcObject = CreateCompatibleDC(hdc); hdcMem = CreateCompatibleDC(hdc); hdcSave = CreateCompatibleDC(hdc); // Create a bitmap for each DC. DCs are required for a number of // GDI functions. // Monochrome DC bmAndBack = CreateBitmap(ptSize.x, ptSize.y, 1, 1, NULL); // Monochrome DC bmAndObject = CreateBitmap(ptSize.x, ptSize.y, 1, 1, NULL); bmAndMem = CreateCompatibleBitmap(hdc, ptSize.x, ptSize.y); bmSave = CreateCompatibleBitmap(hdc, ptSize.x, ptSize.y); // Each DC must select a bitmap object to store pixel data. bmBackOld = (HBITMAP)SelectObject(hdcBack, bmAndBack); bmObjectOld = (HBITMAP)SelectObject(hdcObject, bmAndObject); bmMemOld = (HBITMAP)SelectObject(hdcMem, bmAndMem); bmSaveOld = (HBITMAP)SelectObject(hdcSave, bmSave); // Set proper mapping mode. SetMapMode(hdcTemp, GetMapMode(hdc)); // Save the bitmap sent here, because it will be overwritten. BitBlt(hdcSave, 0, 0, ptSize.x, ptSize.y, hdcTemp, 0, 0, SRCCOPY); // Set the background color of the source DC to the color. // contained in the parts of the bitmap that should be transparent cColor = SetBkColor(hdcTemp, cTransparentColor); // Create the object mask for the bitmap by performing a BitBlt // from the source bitmap to a monochrome bitmap. BitBlt(hdcObject, 0, 0, ptSize.x, ptSize.y, hdcTemp, 0, 0, SRCCOPY); // Set the back

    C / C++ / MFC graphics help

  • calling modal message dialog from external dll
    L lob

    Hello, I have application where i need to show modal message window. It should be custom ( not AfxMessageBox ) , so i built a class CPopupDlg which is inherited from CDialog and it's a DLL , because i need to call it from different dialogs ( and i don't want to duplicate it . It doesn't have title bar. CPopup constructor gets "CWnd* pParent" ( for z-order , etc ) So , i call for it in following way ( from another dialogs ): CPopupDlg* pPopupDlg; pPopupDlg = new CPopupDlg( this ); pPopupDlg->SetPopupMessage( m_strPopupMsg ); pPopupDlg->DoModal(); The dialog itself works fine , showing needed msg with custom colors , custom buttons , etc. BUT , there is a problem. There's a title above CPopup dialog ( while originally it doesn't have title bar ) of dialog calling for it. For example , if calling dialog has title text "My Test Window" this text will appear in title above CPopup dialog . Here's screenshot Here's entry from .rc file ///////////////////////////////////////////////////////////////////////////// // // Dialog // IDD_POPUP_DIALOG DIALOG DISCARDABLE 0, 0, 187, 92 STYLE WS_POPUP FONT 8, "MS Sans Serif" BEGIN DEFPUSHBUTTON "OK",IDOK,130,7,50,14,NOT WS_VISIBLE PUSHBUTTON "Cancel",IDCANCEL,130,24,50,14,NOT WS_VISIBLE | WS_DISABLED CONTROL "popupOK",IDC_POPUP_OK,"Button",BS_OWNERDRAW | NOT WS_VISIBLE | WS_DISABLED | WS_TABSTOP,15,65,55,15 CONTROL "popupCancel",IDC_POPUP_CANCEL,"Button",BS_OWNERDRAW | NOT WS_VISIBLE | WS_DISABLED | WS_TABSTOP,115,60,50,20 END Any help greatly appreciated ( it's pretty urgent ), thanks a lot

    C / C++ / MFC help com tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups