Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Rmck87
  • Order by date
  1. Rmck87

    How to get tab character (\t) to work in MFC?

    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.
  2. Rmck87

    How to get tab character (\t) to work in MFC?

    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...
  3. Rmck87

    Convert CString to unsigned short in MFC?

    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.
  4. Rmck87

    Convert CString to unsigned short in MFC?

    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.
  5. Rmck87

    Convert CString to unsigned short in MFC?

    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"...
  6. Rmck87

    Convert CString to unsigned short in MFC?

    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"...
  7. Rmck87

    Run an application from inside another in MFC

    Thanks, that worked! One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.
  8. Rmck87

    Determine if external application is running in MFC

    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.
  9. Rmck87

    Using PlaySound in MFC? Possible???

    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.
  10. Rmck87

    Using PlaySound in MFC? Possible???

    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...
  11. Rmck87

    Using PlaySound in MFC? Possible???

    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...
  12. Rmck87

    Run an application from inside another in MFC

    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.
  13. Rmck87

    Determine if external application is running in MFC

    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...
  14. Rmck87

    Submitting results from text boxes to table in Database

    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...
  15. Rmck87

    Using 'Format' in a query....

    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.
  16. Rmck87

    Using 'Format' in a query....

    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.
  17. Rmck87

    Using 'Format' in a query....

    This is what i want to use in a SQL Server Query: Format([p.date_start],&quot;mmmm&quot;) 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...
  18. Rmck87

    alright, here is my problem. I have

    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.
  19. Rmck87

    alright, here is my problem. I have

    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...
  20. Rmck87

    Using IIF function without aggregates. . . Possible?

    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 = &quot;F&quot;, max(pm.billing_amount), Sum((b.hourly_rate*e.hours_actual))) AS [Revenue] ' Then i put this in the...

Part and Inventory Search

Back
Top