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
D

Damir Valiulin

@Damir Valiulin
About
Posts
24
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Images are not loading
    D Damir Valiulin

    Nothing. And that's why it is strange

    Site Bugs / Suggestions help csharp question learning

  • Images are not loading
    D Damir Valiulin

    Hi Chris, Hmm. I do have couple of plugins installed in Firefox but no ad blockers. However this issue is happening in Private mode as well which does not load plugins. It also happens on Edge which has no plugins at all. Actually, I just tried browsing from another Windows laptop and experienced no such issue on it. So this must be some problem with my primary machine. Strange. I don't know what it can be caused by and why only Codeproject. I haven't noticed issues with other sites.

    Site Bugs / Suggestions help csharp question learning

  • Images are not loading
    D Damir Valiulin

    Win 10 Latest of both: Firefox 87.0, Edge 90.0.818.42 No problems with internet. Adequate speed 100Mb+ Haven't had such issues with other sites - just Codeproject

    Site Bugs / Suggestions help csharp question learning

  • Images are not loading
    D Damir Valiulin

    For last few months I have a problem with viewing the site where images are not loading. The problem is intermittent and persists on both my go-to browser Firefox and Edge. No blockers are installed in both browsers. Here are couple quick examples from both browsers: Firefox Edge Here's what Edge's error console is showing:

    net::ERR_HTTP2_COMPRESSION_ERROR
    star-fill-lg.png:1 Failed to load resource: net::ERR_HTTP2_COMPRESSION_ERROR
    CA.gif:1 Failed to load resource: net::ERR_HTTP2_COMPRESSION_ERROR
    star-empty-lg.png:1 Failed to load resource: net::ERR_HTTP2_COMPRESSION_ERROR
    msg_general.gif:1 Failed to load resource: net::ERR_HTTP2_COMPRESSION_ERROR
    msg_news.gif:1 Failed to load resource: net::ERR_HTTP2_COMPRESSION_ERROR
    msg_idea.gif:1 Failed to load resource: net::ERR_HTTP2_COMPRESSION_ERROR
    msg_question.gif:1 Failed to load resource: net::ERR_HTTP2_COMPRESSION_ERROR
    msg_bug.gif:1 Failed to load resource: net::ERR_HTTP2_COMPRESSION_ERROR
    msg_answer.gif:1 Failed to load resource: net::ERR_HTTP2_COMPRESSION_ERROR
    msg_joke.gif:1 Failed to load resource: net::ERR_HTTP2_COMPRESSION_ERROR
    msg_kudos.gif:1 Failed to load resource: net::ERR_HTTP2_COMPRESSION_ERROR
    msg_rant.gif:1 Failed to load resource: net::ERR_HTTP2_COMPRESSION_ERROR
    msg_admin.gif:1 Failed to load resource: net::ERR_HTTP2_COMPRESSION_ERROR
    ToolBoxCtrl:1 Tracking Prevention blocked access to storage for https://pubads.g.doubleclick.net/activity;dc\_iu=/6839/DFPAudiencePixel;ord='637546028329485385';dc\_seg=33705250?.
    16Tracking Prevention blocked access to storage for .
    image-r-400.png:1 Failed to load resource: net::ERR_HTTP2_COMPRESSION_ERROR
    6Tracking Prevention blocked access to storage for ..

    Site Bugs / Suggestions help csharp question learning

  • Set default layout for Comments and Discussions for articles
    D Damir Valiulin

    After a little bit of experimenting I came to conclusion that this setting is stored locally in the browser's cookie. My Firefox blocks most cookies and I also set the browser to wipe out all cookies after each session. That's why this is never remembered for me. Suggestion: make this setting remembered on the server somewhere in user's global settings. Thanks.

    Site Bugs / Suggestions question

  • Set default layout for Comments and Discussions for articles
    D Damir Valiulin

    May I suggest having morning coffee first, answering forums after? :) I put the word "default" in both subject and the body.

    Site Bugs / Suggestions question

  • Set default layout for Comments and Discussions for articles
    D Damir Valiulin

    Is it possible to set default layout for "Comments and Discussions" for article view? Personally I find the default "Open All" layout very annoying. I'd like to set it to "Normal" like it used to be before. Is it possible? Thanks, Damir

    Site Bugs / Suggestions question

  • Images are broken in some old articles
    D Damir Valiulin

    I was browsing Toolbar section and a few articles have their images broken. Possibly it was broken during transition to new URL system. For example Sizing TabControlBar[^] doesn't show image. I did a test and Googled the title of the article to see if image shows up in Google's site Preview. There were two links that I got as a search result. The second (old-style) link to article's comment shows the article with the main image: Sizing TabControlBar[^] Thanks, Damir

    Site Bugs / Suggestions com tutorial question

  • How to determine the control under cursor
    D Damir Valiulin

    Try adding the wm_mousewheel handler in the dialog class. This message is always sent to parent first and then passed down to children

    C / C++ / MFC help tutorial

  • Microsoft geek humor
    D Damir Valiulin

    While going through a list of file errors that I need to handle, came across this one: ERROR_ARENA_TRASHED

    //
    // MessageId: ERROR_ARENA_TRASHED
    //
    // MessageText:
    //
    // The storage control blocks were destroyed.
    //
    #define ERROR_ARENA_TRASHED 7L

    Was somebody smoking weed when naming this error? :)

    The Lounge help question

  • Terminating OpenMP loop early
    D Damir Valiulin

    David, thanks for the quick answer. This was helpful.

    C / C++ / MFC question com data-structures performance

  • Terminating OpenMP loop early
    D Damir Valiulin

    Another poster already asked similar question already (http://www.codeproject.com/Messages/3644795/What-is-the-best-way-to-break-return-from-OpenMP-l.aspx[^]), but I'll ask anyway. I have a function that checks if a point belongs to an object in array. The loop looks like this:

    for (int i=0; i<N; i++)
    {
    if (point_is_in_object(obj[i], pt){
    return true;
    }
    }
    return false;

    I parallelized it with OpenMP by adding shared boolean flag found.

    bool found = false;
    #pragma omp parallel for
    for (int i=0; i<N; i++)
    {
    if (!found)
    {
    if (point_is_in_object(obj[i], pt){
    found = true;
    #pragma omp flush (found)
    }
    }
    }

    return found;

    Is this a good way to do this? Could this cause access violation when one thread is writing and the other thread is reading memory contents of found flag? I'm new to OpenMP and don't know much how it operates under the hood. With standard Win32 I would isolate access to found with critical section. Should I do the same here as well and add critical clause? Thanks

    C / C++ / MFC question com data-structures performance

  • Problems with OnNcCreate()
    D Damir Valiulin

    That's weird... Try calling: // pWnd -> handle to edit control pWnd->SendMessage(WM_THEMECHANGED, 0, 0); pWnd->SendMessage(WM_NCPAINT, 0, 0); after you create those edit controls dinamically

    C / C++ / MFC c++ help question learning

  • New S.T.A.L.K.E.R. game on the way soon...
    D Damir Valiulin

    Hopefully it won't be as disappointing as Clear Sky. Don't get me wrong - it had its good parts, but there was no WOW factor like in Shadow of Chernobyl. I didn't even bother finishing it after hospital fight... They should also get rid of that bad Russian accent - it makes me cringe. It felt like it was much worse in the second game too.

    The Lounge com game-dev question

  • Is IE8 the Vista of web browsers?
    D Damir Valiulin

    I have been dual booting to Windows 7 for a while now on my development machine and I've used IE8 quite a lot. It seems like every 3rd website needs "Compatibility View" turned on to display correctly in IE8. Are they seriously thinking everyone is going jump at it to fix their sites for IE8? How about fixing your browser to work right out of the box with every site!

    The Lounge question com security help career

  • VS 2008, MFC, Drag & Drop resources from another project's .rc file
    D Damir Valiulin

    Never mind :) Apparently you can't drag resources onto a Resource View tab anymore. You have to right-click on Myproject.rc file in Solution Explorer tab and select "Open With..." option. Then choose "Resource Editor" from presented selections. This will open your resource file in "editing mode" and you can drop resources from another .rc file here. Cheers, Damir

    Visual Studio c++ visual-studio question

  • VS 2008, MFC, Drag & Drop resources from another project's .rc file
    D Damir Valiulin

    In VC 6 if I need to add resources from project A to B, I just open A.rc in project B and drag and drop required resources. I can't do it in VS 2008! :confused: Am I missing something obvious? How does one copy a bunch of dialog (and other) resources from existing project in VS 2008?

    Visual Studio c++ visual-studio question

  • E-mail notification when an article gets updated
    D Damir Valiulin

    Someone must have mentioned it before already, but it would be nice to receive notifications if an article of interest gets updated. It could be added as a checkbox for every bookmarked article in the "My Bookmarks" page or it could be an option on its own. Thanks Damir

    Site Bugs / Suggestions

  • Considering move from MFC/C++ to Winforms/C# ??? looking for advice
    D Damir Valiulin

    Hi, Warren! Sorry to bring up this 6 month old post :), but about the time of your post I was working on certain ...Prop application (you might recall that old project). It is a desktop app and was written initially in .NET Managed C++ by someone else. My task was to "fix it up" and I had two month (with lots of overtime) to do it. Well, it wasn't well written to begin with, so I ended up almost rewriting the whole thing. The experience was very unpleasant. 1. Working with WinForms resources VS2003 is horrible. And why aren't the sizes and coordinates relative like with MFC/Win32? Absolute pixel coordinates is a horrible idea! I pulled lots of hair trying to get some of the controls to look properly on different monitor resolution. 2. With MFC you got all the source code so you can get down and dirty and customize some controls to behave and look just the way you want it. Not with .NET controls! Customizing certain controls was also a great pain. 3. If you use Interop, browser control, and third party controls (which you would in most professional desktop apps) you end up with gazillion dlls that have to be shipped with your executable. 4. Cannot run .NET app off the network. There are workarounds, but they are so complicated and all have to be done on client side by the person installing your app. Just reading these workarounds I got a feeling that you ahve to be an IT pro to do it. 5. Code protection. Basically you are giving awya your source code with every app that you ship to your customer. Sure you can try obfuscating, but that doesn't solve the problem 100%. 6. And why did they have to use exceptions for any kind of error mechanism? What's wrong with returning true/false and maybe add another way of retrieving details of error at my own peril? All these exceptions drove me nuts! Sometimes I don't want to be concerned if something very insignicant fails! Maybe I just check for a final result and that's good enough. But not in .NET - you can't leave anything unchecked! You have to add ugly try/catch block to every .NET framework call if you want to make sure that your app doesn't pop-up a very confusing message box to your end user. These are just a few issues that come to my memory. I still recall that experience as big and very long nightmare. I like MFC and I'm still sticking to it, until an app written in it just won't run on some new version of Windows...

    C# csharp c++ css wpf winforms

  • Compiler generated assignment operator= question
    D Damir Valiulin

    Thank you. This is exactly the answer I was looking for! I derived a class from CArray and added operator= to it. Now compiler has no trouble generating default assignment. Everything works perfectly! :-D

    C / C++ / MFC 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