Rob,
The example you give does not compile.
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\MyProjects\Test\test.cpp(30) : error C2664: 'sprintf' : cannot convert parameter 1 from 'const char *' to 'char *'
Conversion loses qualifiers
C:\PROGRAM FILES\MICROSOFT VISUAL...
Let's change this line:
cout << p << endl;
To this:
cout << c << " : " << strlen(c) << endl;
Here is the result:
Hello world!-²²²²²²² : 20
The statement (strlen(str1)+strlen(str2)+1) should result in 13 (and it does if I check it on a different line), which would be the correct...
Hello. Newbie working self through TC++PL.
Ex: 6.6.3: Write a function cat that concatenates 2 C-style strings. Use new to find store for the result.
My code:
#include <iostream>
using namespace std;
char* cat(const char* str1, const char* str2){
char *catstr = new char[(strlen(str1) +...
Thank you for the pointers, the article you linked to is also the same as Ch. 10 in the Access 97 Developer's Handbook - which I have been referencing, I'll re-read it.
Perhaps I was just giving up too early?
In any case, thanks again for the help, and I'll get back to work on it!
I'd like to add this functionality into my project, but it seems impossible.
It's a split database (DB_FRONT.mdb & DB_DATA.mdb)
1. End-user printer selection:
There are 3 categories of reports. I would like the user to be able to view a list of printers, and select a printer for each...
Thanks dumdum, I looked it up in the ADH. I actually broke down and just used a global to hold the calling form name.
My shame is great, but the code runs.
It only looks hard. Off the top of my head, the basics were:
0. Get HTML Help Workshop if you don't have it yet.
1. Download the DLL, install and include in the Access module.
2. Cut n paste the example code into the module.
3. Add buttons and event handlers to forms.
To add help to the menu...
HTMLHelp? Look here: http://www.mvps.org/htmlhelpcenter/access.htm
I have an Access application that uses a HTMLHelp file, the above link was my starting point to get it working.
I have a button on one form that, when clicked, closes the current form and opens a second form.
When that second form is closed, I want to reopen the first form. (When I was leaving the first form open I was getting strange results, since the 2nd form will be editing information on the first...
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.