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
B

Bert Tuyt

@Bert Tuyt
About
Posts
6
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • DLL and CBitmap
    B Bert Tuyt

    I am working on a program where I keep background textures in a separate DLL (for simple upgrade possibilities). I use LoadBitmap in the DLL and I export the pointer to the asociated CBitmap to the application. Everything works fine, except that refresh is quite slow now. Does anyone know/recognize this behaviour , or did I do something else wrong? If someone has a clue and solution, please let me know. Bert....

    C / C++ / MFC ai-models question

  • DLL Question
    B Bert Tuyt

    I am working on a program where I keep background textures in a separate DLL (for simple upgrade possibilities). I use LoadBitmap in the DLL and I export the pointer to the asociated CBitmap to the application. Everything works fine, except that refresh is quite slow now. Does anyone know/recognize this behaviour , or did I do something else wrong? If someone has a clue and solution, please let me know. Bert....

    C / C++ / MFC question ai-models

  • DLL Calling convention problem
    B Bert Tuyt

    I started programming a "simple" DLL with dynamic linking from the main application via LoadLibrary , GetProcAddress (and the rest). Somewhere I make a trivial fault, which so far is difficult to correct. Everything goes well, but when the function is exected, i get the next message. Debug Error, File chkesp.c, line 41 The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention. This should give a clue, but it did not help me so far. To my understaning both my application and dll are compiled/linked with __cdecl as standard, so I'm lost now (but hope not for that long) Bert....

    C / C++ / MFC help ai-models debugging json

  • CEdit question
    B Bert Tuyt

    I have modified the CEdit class for my own purpose. I have added a function which calculates the lineheight in a multiline edit (see next code) int CDebugEdit::GetLineHeight() { int iLineHeight, itmHeight, itmExternalLeading ; CDC* pDC ; TEXTMETRIC tm ; pDC = GetDC() ; pDC->GetTextMetrics(&tm) ; itmHeight = tm.tmHeight ; itmExternalLeading = tm.tmExternalLeading ; iLineHeight = itmHeight + itmExternalLeading ; return ( iLineHeight ) ; } However when i change the Font size in the edit (and I see the result in the edit window) I get always the same value for iLineHeight, it appears that although the Font size is changed the tm structure always returns with the same values. Can someone help me ? Bert :confused:

    C / C++ / MFC question ai-models help

  • Printing with multiple views
    B Bert Tuyt

    I have a SDI application with multiple views. However I only implemented Printing Routines in 1 specific view. The other views only contain temporary information, which is not suited for printing. I can active the print commando via the menu or via a toolbar button. The handler (as i said before) is in the specific view routine. The problem I get is that sometimes this view looses focus, because i'am scrolling (for example) in another view. When I want to do some printing I find the menu and toolbar button greyed an inactive. Only after i activated or give focus back to my "most important" view, I can do my printing activity. I don't like this approach and hope someone has a straightforward solution, Thanks in advance, Bert....

    C / C++ / MFC ai-models help tutorial

  • Add / Remove Splitter Panes
    B Bert Tuyt

    I'm writing a application with a nested splitter The first spltter has 2 colomns, the second (in the right colomn) has a number of rows which I want to change programmically (between 2 and 5). In the present implementation I delete the second splitter when i need to add or remove a pane, and "built" the new one with the right number of rows. This implementation has a flaw because although I use the InitialUpdate for every view , nothing happens. Only when I "toutch the splitter-bar, I "see" the updated splitter. Does anyone no this problem and/or has a more elegant solution? I saw a proposal somewhere which hides panes. But in that case, can you then still enlarge the views with the mouse (which I don not want to be possible !) ? Thanks in advance, Bert....

    C / C++ / MFC ai-models help question
  • Login

  • Don't have an account? Register

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