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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. OleCreateFromFile & Threads - Security Issues?

OleCreateFromFile & Threads - Security Issues?

Scheduled Pinned Locked Moved C / C++ / MFC
helpcomgraphicssecurityquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Florin Ochiana
    wrote on last edited by
    #1

    Hi, In my app I have to put some bitmamps in RichEditCtrls as Ole Objects. I load the bitmaps at the start of the application and I use OleCreateFromFile to create the object from the bitmap file. The problem that I have is there are too many images (over 25) and the loading process takes about 7 seconds. If I load them in the main thread, the applications seems dead. You can't move the window, can't minimize it... I tried to load the images in a separate thread but with the same code the OleCreateFromFile returns an error: "The system cannot find the specified file" altough if I make an fopen in the same thread I can read that file. Do you know something about this? Am I doing something wrong? Thanks ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

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