Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 13 of 13
Search took 0.01 seconds.
Search: Posts Made By: awhittaker
Forum: Visual C++ October 24th, 2003, 09:21 AM
Replies: 1
Views: 1,298
Posted By awhittaker
Use either Win32 Console Application for a DOS...

Use either Win32 Console Application for a DOS style console project or use MFC AppWizard (exe) for a Windows gui project...in the later you can choose to create a dialog based project, Single...
Forum: Visual C++ October 24th, 2003, 06:30 AM
Replies: 6
Views: 7,463
Posted By awhittaker
Larry, I forgot that in your original post you...

Larry, I forgot that in your original post you said that it is not GetCurrentDirectory...I really think you are looking to use the m_pszHelpFilePath variable. What you do is get the path it gives...
Forum: Visual C++ October 23rd, 2003, 03:06 PM
Replies: 6
Views: 7,463
Posted By awhittaker
Hey!!! It is there!!! Look up...

Hey!!! It is there!!! Look up CWinApp::m_pszHelpFilePath in Help. Or try somthing like this:

char buf[MAX_PATH];
GetCurrentDirectory(MAX_PATH, buf);
CString sCurrentDir = buf;

Have you...
Forum: Visual C++ October 23rd, 2003, 02:47 PM
Replies: 6
Views: 7,463
Posted By awhittaker
Actually, if you have an application class in...

Actually, if you have an application class in your project then the m_pszHelpFilePath variable is present. Try it out! I used it in my CabcApp::InitInstance() function that is added by class wizard.
Forum: Visual C++ October 22nd, 2003, 10:47 AM
Replies: 6
Views: 7,463
Posted By awhittaker
Try setting a CString equal to m_pszHelpFilePath ...

Try setting a CString equal to m_pszHelpFilePath

ie. CString sPath = m_pszHelpFilePath;
Forum: Visual C++ October 15th, 2003, 09:04 AM
Replies: 3
Views: 1,743
Posted By awhittaker
Can you see the class in the ClassView tab? If...

Can you see the class in the ClassView tab? If not try a couple of things. First go to the FileView tab and delete the header file and source file for that class. Then add them back in from the...
Forum: Visual C++ September 29th, 2003, 11:04 AM
Replies: 4
Views: 2,303
Posted By awhittaker
Try something like this, you might have to change...

Try something like this, you might have to change the classes to what you want.

BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// create splitter window
if...
Forum: Visual C++ September 22nd, 2003, 03:06 PM
Replies: 3
Views: 2,317
Posted By awhittaker
Usually I have seen this error when I have...

Usually I have seen this error when I have declared a class in the header file and have somehow deleted the semi-colon at the end of the class definition.

class CProjectTreeView : public CTreeView...
Forum: Visual C++ August 29th, 2003, 09:04 AM
Replies: 1
Views: 1,659
Posted By awhittaker
Editbox with Date format

Hi,

I have an editbox on a dialog in a SDI project that is a date field. Is there a way to create an input mask for the editbox so that only the mm/dd/yyyy format may be entered? Or will I just...
Forum: Visual C++ August 12th, 2003, 08:40 AM
Replies: 7
Views: 3,780
Posted By awhittaker
I don't use ADO so I do not know. -Andy

I don't use ADO so I do not know.
-Andy
Forum: Visual C++ August 12th, 2003, 07:28 AM
Replies: 7
Views: 3,780
Posted By awhittaker
Have you tried to catch any exceptions to make...

Have you tried to catch any exceptions to make sure the database is successfully opened? Have you tried using ODBC instead of ADO?

try
{
...
}
catch(CDBException* e)
{...
Forum: Visual C++ August 12th, 2003, 07:21 AM
Replies: 1
Views: 1,344
Posted By awhittaker
You should be able to use parts of the following...

You should be able to use parts of the following code. I was not sure I understood exactly what you wanted. To set the minimun and maximum number of pages call the SetMinPage() and SetMaxPage()...
Forum: Visual C++ August 12th, 2003, 07:11 AM
Replies: 2
Views: 1,084
Posted By awhittaker
FILE I/O

Hi,

I have a text file that I am trying to update. I want to open the file, change a couple of fields and write the rest of the file back as the same. I have tried to use:

FILE *fp;
if (fp =...
Showing results 1 to 13 of 13

 


All times are GMT -4. The time now is 07:46 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.