Wow! I never even thought of that. There is actually a specific setting on the control itself, called "Use Tabstops". It works, Thanks!
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.
Ok, so I have been trying to get a tab in a CString of an edit control, but no matter what method I use, I get the little square character that appears instead. What's going on? How do I get a tab?
Of course I have tried using \t in my CString, and I have tried other things as well. I have...
That's true. Do you know know of another method that doesn't use sscanf_s?
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.
Would I not lose any data in the conversion from DWORD to WORD?
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.
Hello, I am attempting to convert a CString variable (strTemp, which is coming from an edit control) into a WORD (m_cmd, aka unsigned short). I have been trying to figure this out for over a week now and have come to nothing.
I am familiar with sscanf and was using:
sscanf_s(strTemp, "%x"...
Hello, I am attempting to convert a CString variable (strTemp, which is coming from an edit control) into a WORD (m_cmd, aka unsigned short). I have been trying to figure this out for over a week now and have come to nothing.
I am familiar with sscanf and was using:
sscanf_s(strTemp, "%x"...
Thank you, I got it figured out, those worked well!
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.
you were right. Thank you. "stdafx.h" has "windows.h" included in it, btw.
Thanks for the help!
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.
Ok, here's the code hopefully a little easier to read:
My includes:
#pragma comment(lib, "Winmm")
#include <Mmsystem.h>
#include "stdafx.h"
#include "ThreadWatcher.h"
#include "ThreadWatcherDlg.h"
#include <cstdlib>
My sound calling block:
if (!PlaySound("C:\\Documents and Settings\\My...
Hello, I would like to play a wav file whenever I press a button in a dialog-based MFC Application. So, I have used this code in my include block:
#pragma comment(lib, "Winmm.lib")
#include <Mmsystem.h>
...
and this code to play the file:
if (!PlaySound("C:\\...filename...\\song.wav, NULL...
I'm trying to run another application(app1) I have written from inside app2. how do I do that using MFC in C++???
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.
Hi, I'm programming with C++ using a dialog-based MFC application. I need to create a program with a button that when pressed, will tell me if another application is currently running. I'm not sure if there is a function to use to figure this out or not. But, I was reading something that said...
Hi there. I want to create a page that when the user inputs values into the text boxes and hits submits, the results go straight into a table in a database, so that I can read them later. If anyone could help me with this, that would be great. Thanks in advance.
One Ring to Rule Them All, One...
You three seem to know quite a bit about SQL Server. Can i use IIF(...) in it? or is there another format i have to use?
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.
thanks hecktic, that worked, i was going for the 'month' format. Thanks for the help.
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.
This is what i want to use in a SQL Server Query:
Format([p.date_start],"mmmm")
But, it says that 'Format' is an invalid function, i have used this function in Access Queries before, and it works fine, what function do i use instead of 'Format'? ? ? anyone know? Thanks alot.
-Ryan...
Correction:
It has an IIF statement in it, and if the statement is true then it will print a column from another query, if it is false, then it will print a column from a table
thanks
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.
alright, here is my problem. I have a fairly large query that i am running. It has an IIF statement in it, and if the statement is true then it will print a column from another query, if it is false, then it will print a column from a query. The problem is that whenever i print the column from...
I just want to keep it on one query. I managed to get it working. Thanks for the help tho. What i did was i put this in the Select statement:'
IIF(pm.pm_billing_method_id = "F", max(pm.billing_amount), Sum((b.hourly_rate*e.hours_actual))) AS [Revenue]
' Then i put this in the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.