CDHtmlDialog: Changing HTML File Dynamically
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...
View ArticleCannot find the function DlgProc?
The code is bulit for the x64 platform with unicode enabled. Thanks Jack Code: class CameraExporter : public UtilityObj { static INT_PTR CALLBACK DlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM...
View ArticleShellExecute with x86asm
Hi.I tried to use ShellExecute with inline x86asm in VC++. My code is here: Code: #include "stdafx.h" #include <windows.h> int Run(char * filename) { __asm{ PUSH 5...
View ArticleAbout Setting Print Options ..
Hi .. I am using PDF Creator printer to print my files. I have set it as default printer. It displays two dialogs .. "Printer Setup Dialog" and "Dialog asking filename and other details to save to...
View ArticleCMFCToolBarEditBoxButton problem
I am having a problem with the CMFCToolBarEditBox control. I have added the below code: MyMFCToolBar.h Code: #pragma once #include "resource.h" class CMyMFCToolBar : public CMFCToolBar { public:...
View ArticleGetStdHandle() (Windows 8 / 8.1)
A few years ago I asked a question about how to attach a DOS console to a Windows app (i.e. so that if the app was launched from a DOS console, the user would be able to see printf output etc). In a...
View Articlemultiple dialogs supported in one derived CDialog class?
Hello, In my class: Code: class SettingsDialog : public CDialogEx I have: Code: enum { IDD = IDD_SETTINGS_DIALOG }; I have a very similar dialog called IDD_SETTINGS2_DIALOG with all the exact same...
View Article[RESOLVED] multiple dialogs supported in one derived CDialog class?
Hello, In my class: Code: class SettingsDialog : public CDialogEx I have: Code: enum { IDD = IDD_SETTINGS_DIALOG }; I have a very similar dialog called IDD_SETTINGS2_DIALOG with all the exact same...
View Articlesimple issue on function overloading in c++
I'm really confused and hence putting this very simple on function overloading. Below is the sample code struct X { }; struct Y { } struct Z { }; X x1; Y y1; Z z1; set_data(X *m) { // need to...
View Articlecode stuck at getline...
my code is not moving past the line below...actually i am making a quiz and this piece of code id checking whether the entered answer is correct, from a file. please tell me the possible reason for the...
View ArticleDifficulty in compiling a sample project
The project has the following directory structure Code: ogrerecast.vcproj |-Samples |- include |- src The header files originally didn't compile because of its path I then...
View ArticleMFC Application UI develop idea
I'm on a process to build a new application which will have left menu and corresponding screens for each button. You can say a Vertical tab like interface. For a more clear picture I have prepared a...
View ArticleWM_INPUT Failing to Detect Arrow Keys
Hi guys, I'm not getting the response I expect from WM_INPUT detecting the arrow keys: Code: #define key_right 0x27 USHORT key=raw->data.keyboard.VKey; if(key == key_right){...
View Article[RESOLVED] MFC Application UI develop idea
I'm on a process to build a new application which will have left menu and corresponding screens for each button. You can say a Vertical tab like interface. For a more clear picture I have prepared a...
View ArticleSlow performances using Bitmap/GDI
Hi. I am trying to do this: while(1) { CaptureScreenshot (as BMP) Convert screenshot to 24 bit instead of 32 bit Resize screenshot size Get the BMP bits array of the resized screenshot } I have it...
View Articlewinsock bind error
I have created a class which uses threads and sockets but I am having trouble as the bind function works fine if I do not include the <threads> package however when I do it wrongly references...
View ArticleSyntax in class defination while inherriting another class
#include "IMyIntData.h" class MyIntData : public CPMUnknown<IMyIntData> { I need to know what this syntax means (including MyIntData in angular brackets after parent class name) where IMyIntData...
View Articlewhat is the use of PUBLIC_DECL here and what is it?
class PUBLIC_DECL CAlert { //member functions }; //what does the PUBLIC_DECL means here???
View ArticleHow to start process without loading global hook?
Hi, everyone, I had created a global hook by SetWindowsHookEx with WH_CALLWNDPROC. It is used to create a new toolbar button in specific window in the specific (3rd party) program (named HOOKEE.exe for...
View Article[RESOLVED] CreateProcessAsUser for proc with UIAccess=true" results in...
I'm trying to use the following code to run a user-mode process from my service application (running as a local system.) The requirement for the user-mode process is to run without elevation, but to...
View Article