44 Topics

Member Avatar for
Member Avatar for Dervish1

I'm trying to learn how to do some simple things with MFC - I'm not used to the toolkit. I want to load a png image from disk and display it at a chosen location in the program's window, but am getting a debug assertion error: atlimage.h Line: 1624 Expression: …

Member Avatar for rproffitt
0
206
Member Avatar for efe.ozyer

Hi, I want to show/hide my MFC Dialog from another class; Main App : HomeWorkApp Main Dlg : HomeWorkDlg #include "HomeWorkDlg.h" #include "HomeWorkApp.h" CWorkUser::CWorkUser() { // Initialize MFC Dialog here.. // How ?? MainDlg->ShowWindow(SW_SHOW); } CWorkUser::~CWorkUser() { // Finalize MFC Dialog here.. } Thanks..

Member Avatar for tinstaafl
0
135
Member Avatar for karthick_pmk

Hi i am new to VC++, iam trying to implement the encoding of password **In Java ,** **byte[] saltedPassword = (password + getSalt()).getBytes();** **output :** ** SaltedPassword :[B@3eca90** in Java, saltedPassword get encoded value in the same way **i want to implement in VC++** How to do **Encoding in VC++**..? …

Member Avatar for Ancient Dragon
0
205
Member Avatar for bluejamesbond

I am trying to create a simple transparent window where I can draw with Direct2D. So far what I have done: 1. Created window 2. Set style to **WS_EX_LAYERED** 3. Set alpha color key as #FFF 4. Draw using Windows Graphics a white rectangle 5. Now window is transparent with …

0
179
Member Avatar for PatMcC

Hi Everyone I have been programming on Linux for about 8 years part time. I have learned many languages and I am not afraid of using them. However I have learned to fear build systems, operating systems and IDEs. I have been going around in circles for years with Gui …

Member Avatar for PatMcC
0
228
Member Avatar for efe.ozyer
Member Avatar for RonalBertogi
0
2K
Member Avatar for RonalBertogi

Observe this code: TOOLBARINFO tbi = { 0 }; BUTTONINFO bi, *xBI; tbi.pTOI = pTOI; int x = 0, xSearchBox = 0, s = 0; BYTE xType = btNone; BOOL bAdd; for( ;*pszInfo; ) { bAdd = TRUE; memset(&bi, 0, sizeof bi); switch( *pszInfo ) { case bfButton: s++; bi.L …

Member Avatar for RonalBertogi
0
192
Member Avatar for ralph.d.abernathy.1

Hello everyone! So I wrote a program that simulates a dice game, almost like the game of Craps. I want to turn this normal console app into a dialogue based MFC. So I would create a button labeled "Roll" and the window would show two die being rolled. Here is …

Member Avatar for ktsangop
0
447
Member Avatar for vikuseth

For getting the share folder name i have been used the following code , here i am able to get the folder names . But the problem what i am facing is along with the share folder created by the user it gives some extra folder also , i don't …

Member Avatar for ktsangop
0
323
Member Avatar for greatman05

This is homework. I have been tasked with creating a new dialog in WinMerge that provides line stats for every open file. It should show total lines, lines modified and lines deleted. I am working on implementing the total lines part. I have already created the dialog, a class for …

Member Avatar for Ancient Dragon
0
265
Member Avatar for beginner91

so i created a client server program using tcp that works fine. but now i want to use broadcasting (which uses udp) so i'm changing to change my code but i keep running into problems. when i run my code the error message "ERROR binding: 10047" and that error means …

Member Avatar for beginner91
0
332
Member Avatar for greatman05

First off, this is a homework assignment. I am in a Software Engineering class and we're learning how to work with MFC. We're editing a basic calculator app. I don't know how to implement the backspace button (delete a single character from the edit box when the Backspace button is …

Member Avatar for Ancient Dragon
0
316
Member Avatar for ktsangop

Hello i'd like to ask a quick one. -Mfc VC++ 6 application. -NO Unicode support by design. -Greek characters appear fine in all dialogs since OS is Windows Greek version (?) -Greek text is both hard coded in c++ source files and retrieved from mysql database. -ONE specific Edit Box …

0
101
Member Avatar for ktsangop

Hello everyone! I have a rather mysterious problem. I have a mfc dialog based application (running on win xp sp3), and at the same time another mfc app that installs a global keyboard hook capturing the ESC key (this one is always hidden). SOMETIMES when i press ESC key (with …

0
143
Member Avatar for Kerry W

We might all imagine how many reams of paper HP must go through testing their printers before they hit the market, and how they must pass certain tests and get tweaked along the way. If you envision rooms full of printers and the smell of heated toner hitting the paper, …

0
195
Member Avatar for ktsangop

Hello everyone! I am building a mfc dialog based application in visual c++ 6 and using mysql c api to connect to a database. What i need is a simple type of data grid to show mysql query results in a dialog. I do not need to edit, update, save …

Member Avatar for ktsangop
0
1,000
Member Avatar for JDoggieIII

Hi, I am using C++ MFC and I wouldn't exactly call myself an expert :-). What I have is a thread drawMonitor which monitors when to draw and I would like it to call DrawLines() (which is a member function in the class) to do the drawing. void drawMonitor(void *); …

Member Avatar for Ancient Dragon
0
266
Member Avatar for Abhineet.Ayan

Hi All, I am implementing a recursive registry delete using RegOpenKeyEx, RegDeleteKey and RegEnumKey. **Problem::** Though the code works perfectly fine for Vista x86/x64 and Win 7 x86/x64 but fails on XP for some keys in HKCR **Problem Area::** HKCR\Installer\SomeKey **Error Code::** 87 (INVALID_PARAMETER) **Weird Behaviour::** Deletes the key the …

Member Avatar for Abhineet.Ayan
0
1K
Member Avatar for sharath27

In my project I've 8 edit boxes and i need to set each box with different font. But my code is setting all the boxes single font.. So how can i modify it?? void CTrail3Dlg::OnBnClickedButton1() { UpdateData(TRUE); CFontDialog dlg; // get font for current dialog, just to fill in LOGFONT …

Member Avatar for Ancient Dragon
0
255
Member Avatar for Div Intellect

Any pointers on how accented characters are implemented in Windows would be helpful. Goal - Ability to add accented characters(áéíóú) using keystrokes like ctrl + ' followed by a vowel and all other combinations that work on standard applications like MS Word, Text pad etc. My Findings till date - …

0
95
Member Avatar for cent91

hello everyone. i am at such a stage where i need to make a decision. i have gained enough basic programming skills withn c++ and now i want to start with something a little professional. i dont like web programming and i would love to do system programming or game …

Member Avatar for thines01
0
611
Member Avatar for Z33shan

hello :) i'm using MFC SDI, & i'm less familiar to it. i need to know, 1: i have found a way of printing a string as [CODE]pDC->DrawText( " Task still pending!!! ", &rect , DT_PATH_ELLIPSIS );[/CODE] but i want to know, how can i print a 2D-Array in MFC …

Member Avatar for Ancient Dragon
0
388
Member Avatar for Z33shan

hello :) i've Two questions to ask. i'm working on MFC SDI, i'm less familiar to MFC. i found that a way to print a string in MFC SDI is: [CODE]pDC->DrawText( " mc Test Ellipse ", &rect , DT_PATH_ELLIPSIS );[/CODE] but i have to print a 2D array in MFC …

0
125
Member Avatar for Z33shan

Hello :) i'm looking for a proper way of drawing points in MFC. or Drawing those point on a Drawn Eclipse. then i actually have to join them. i had been working on .NET, so i'm less fimiliar to visual C++ 6.0, but i have to use it for this. …

Member Avatar for Ancient Dragon
0
549
Member Avatar for Abhineet.Ayan

Hi All, Why my QueueUserWorkItem is not at all working. My code is here: [CODE] typedef struct { PCHAR URL[MAX_URL] ; PCHAR DestinationPath ; }MAINDATA, *PMAINDATA ; int main(int argc, char * argv[]) { PMAINDATA pData ; BOOL bQuwi ; DWORD dwIndex ; PCHAR pURL ; pData = (PMAINDATA)malloc(sizeof(MAINDATA)) ; …

Member Avatar for DeanMSands3
0
634
Member Avatar for PreyaticIntent

Okay, I'm still a fresh out of college programmer (only been doing it for 4 years), so I will try to be as descriptive as possible. I apologize now for anything that doesn't make sense. I've got a C++ project that using MFC to create forms. I have my main …

Member Avatar for Ancient Dragon
0
172
Member Avatar for cent91

i have a code that uploads a file to ftp. i want it to add an exception in firewall when it executes so that the firewall doesnot request the user for permissions. i know how to add a registry entry but i dont know how to add a firewall exception …

Member Avatar for Satyrn
0
461
Member Avatar for l1nuxuser

hello c++ dev team!!! i need lilibit help from you. like i write in my prevois thread i bulding now lab mangement, and tks to you i passt the SQL lavel, (tks lot)!!! so i'am stuck now in the view step, that meen when the seller well open the software …

0
133
Member Avatar for bensewards

Hey everyone, I'm new at visual c++ and MFC Applications, and so I am going through Ivor Horton's Beginning Visual C++ 2010 to make a drawing application through Microsoft Foundation Class. I added menu bars for options, such as shape(rectangle, line, and ellipse) and select colors (black, red, blue green). …

Member Avatar for bensewards
0
279
Member Avatar for mahendra maurya
Member Avatar for L7Sqr
0
139

The End.