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

Don Guy

@Don Guy
About
Posts
61
Topics
34
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ShowDialog doesn't make form modal
    D Don Guy

    Hello there, I have a C# application and with in a thread am popping open another form using the ShowDialog() function. For some reason the form is not displayed as MODAL. I tried passing "this" and obviously that causes a problem as it cannot be used within a thread. The main C# application is a MDI and has multiple forms embedded in it. How can i make this form MODAL? Thanks!

    C# question csharp hardware help

  • CDHtmlDialog: Changing HTML File Dynamically
    D Don Guy

    Hello there, I am using CDHtmlDialog in my MFC application to create a UI with HTML, CSS & JavaScript. In my project there's one dialog created from CDHtmlDialog and a corresponding HTML file for that dialog. Now during run time i want to change the contents of the HTML file. Not just the HTML part, i want to change the CSS & JavaScript too. So basically what am trying to do is, change the entire content of the default HTML file. Is this possible? If yes, how can i do that? Thanks in advance!

    C / C++ / MFC question c++ javascript html css

  • Low-Level Keyboard Input Detection
    D Don Guy

    Thanks for the code! Does this work if it's a on-screen/software key board?

    C / C++ / MFC android ios linux hardware question

  • Low-Level Keyboard Input Detection
    D Don Guy

    Hey there, I am writing an software that should be able to detect all keyboard inputs by the user. i.e., both hardware and software/on-screen keyboard. This software is going to be written in a platform independent way and supposed to run on Windows, Linux, Android & iOS. The idea is to capture the keyboard inputs from a low level, there by making sure that it doesn't miss any inputs even if it's a on-screen keyboard like in a mobile device. I am looking at possible open source libraries that can be used. Anyone got any good ideas on what to use? Thanks in advance!

    C / C++ / MFC android ios linux hardware question

  • MFC App & Physical Memory
    D Don Guy

    Yes, i don't see any memory leak messages in the Output window.

    C / C++ / MFC help question c++ visual-studio performance

  • MFC App & Physical Memory
    D Don Guy

    Hello there, I have a MFC app developed in VS 2012. Inside couple of worker threads it's constantly doing bunch of things. Now if i start the app and then open the Task Manager and look at the Physical Memory for my app, it's constantly incriminating until i close the app. I didn't try to run the app for more than an hour yet, as i am not sure whether that will screw up other app's in the system. What does this increase in Physical Memory mean? Is this a problem? If yes, how can i fix that? Thanks in advance.

    C / C++ / MFC help question c++ visual-studio performance

  • CDHtmlDialog : Memory Management
    D Don Guy

    Hey there, I have a MFC app that has a CDHtmlDialog embedded in it. During run time i update the HTML content from the C++ code. There's a IMAGE tag in the content and the SRC for the tag is updated multiple times in a second to show different images. Basically i go over a WHILE loop in the C++ and call a JavaScript function to update the "src" for the "img" tag. The issue am seeing is that, after running this code for a while the application kinda hangs and the system takes up lot's of memory. I have no idea how to solve this, as all the code that's in the browser side of app is HTML & JavaScript. I looked through the C++ code plugged all memory leaks there. Any suggestions on how to fix this? Thanks in advance.

    C / C++ / MFC c++ help javascript html hardware

  • CDHtmlDialog not working with CSS Media Queries
    D Don Guy

    Did the trick for me! :-) Thanks SoMad!

    C / C++ / MFC csharp html css database visual-studio

  • CDHtmlDialog not working with CSS Media Queries
    D Don Guy

    Hello there, I have a CDHtmlDialog app in which am trying to add a CSS media query in the HTML file as shown below, but it doesn't work. @media(max-width:20em) { table, thead, tbody, tfoot, th, td, tr { display:block; } tr + tr { margin-top:1em; } } The same CSS works fine if i open in a browser like IE, FireFox, Chrome. But inside the CDHtmlDialog app this doesn't work. I am using Visual Studio 2012 for development and have IE 11 installed in my machine. Any ideas? THanks in advance.

    C / C++ / MFC csharp html css database visual-studio

  • Adding XML file to Win32 Project and Dynamically Load Data
    D Don Guy

    Hello there, I have statically linked OpenCV libs to a Win32 console application in Visual Studio 2012. I got the webcam and face detection working awesome. I am using the "haarcascade_frontalface_alt.xml" for face detection purpose and this file is currently placed in the folder where the exe is present. I want to link in this xml to project i.e., compile into the project and then use it at run time. i.e., extract xml data from the compiled in xml file and load it to the corresponding OpenCV function. Does anyone has suggestions on how to do this? Any sample code will be helpful. Thanks in advance.

    C / C++ / MFC csharp visual-studio xml tutorial question

  • OpenCV in MFC App
    D Don Guy

    I created a WIN32 console application and statically linked the OpenCV. The final exe is little less than 4 MB. This kinda proves that there's a overhead when using MFC with statically linked lib's. For my purpose this works fine, as the OpenCV will ultimately be running in a WIN32 DLL. Thanks SoMad for your suggestions! Now the next part am working on is adding an XML file to the project and compiling it into the project.

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

  • OpenCV in MFC App
    D Don Guy

    If i am right, /MD = Dynamic and /MT = Static. If i build OpenCV as /MD and then link to the MFC app, during run time it will ask for OpenCV dll's.

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

  • OpenCV in MFC App
    D Don Guy

    Well, am getting linker errors now, that too plenty of them. error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' The OpenCV library am trying to link is build as Static Release, but the MFC is now Dynamic. Any ideas?

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

  • OpenCV in MFC App
    D Don Guy

    How to link statically to OpenCV? For dynamically linking to MFC, do i select, "Use of MFC = Use MFC in a Shared DLL"? Right now for statically linking OpenCV i got, Linker --> General --> Additional Library Directories = C:\opencv\install\x64\vc11\staticlib Linker --> Input --> Additional Dependencies = "List all Lib's" Am i missing something here?

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

  • OpenCV in MFC App
    D Don Guy

    With Static Linking options in, i.e., in Configuration Properties --> General --> Use of MFC = Use MFC in a Static Library, and then comment out all OpenCV code in the app, the total exe size is 4 MB. So basically it reduced 2 MB, but no significant difference. I added the #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS to stdafx.h file and that didn't make any difference. Btw, i am using Visual Studio 2012.

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

  • OpenCV in MFC App
    D Don Guy

    If i remove the Static Link option from the Project Properties and build, then the exe is 100 KB. With the Static Link option in, it's about 6.1 MB. If i leave the Static Option in and just comment out the code, i.e., #include's and other OpenCV references, then am not sure how much it's going to be. I will check that out later. Does that test tells anything?

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

  • OpenCV in MFC App
    D Don Guy

    I have double checked to make sure all the path's and lib's setup in the Project Properties are correct. I am not sure whether the size of the final exe is because it's linking all lib's. Like Richard in his response said, maybe the Visual Studio compiler links in all lib's that it deems necessary to run the exe.

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

  • OpenCV in MFC App
    D Don Guy

    Release

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

  • OpenCV in MFC App
    D Don Guy

    Hello there, I have a C++ app that uses OpenCV. Currently i am statically linking the OpenCV libs into my app. This is adding an extra overhead of 6+ MB. Ideally i would like to remove some of the features that i am not using in OpenCV. The features am using are, Capture frames from Webcam. Face detection. Image formats (JPEG, PNG). Image rotation & resizing. Is it possible to remove other features and trim down the libs? My C++ app is developed in Visual Studio 2012. Thanks in advance.

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

  • Proper array memory management in C++
    D Don Guy

    I have an application that randomly displays images on a screen. There's a capture button, and when user clicks on that button, the image that is currently displayed is stored into a buffer. User can click the button 5 times. i.e., the buffer should be storing upto 5 image data. I have code like this, .h File: unsigned char* m_ImageBuffer[5]; .cpp File: while (1) { ---------- ---------- m_ImageBuffer[counter] = new unsigned char[size]; memcpy(m_ImageBuffer[counter], pImageData, size); ---------- ---------- } The variable "counter" goes from 0 to 4. Inside the WHILE loop a bunch of images are constantly displayed in the screen. The purpose of m_ImageBuffer is that, i will store the user selected image data in this buffer, so that it could be later used for display. i.e., in a different screen. The problem with the code in WHILE loop is that, i am not able to use DELETE properly. So the code logic basically ends up eating so much memory. I am looking for a better logic, by which i can store the image data, but still does better memory management. Not sure the problem is explained properly. I am expecting some suggestions on how to manage this situation. Thanks in advance.

    C / C++ / MFC c++ data-structures performance help 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