Thanks for responding.
My database design would be distributed to my customers with my Visual C++ program. The customers would enter their own application data in them with my program.
My problem is that I don't want them or competitors to see the design with Access or any other database...
I have created several databases with Access 97 that I use in my Visual C++ applications. How do I prevent a user or competitor from seeing the design of my database while still allowing the user to read and write their data to it?
I appreciate any help you can provide. Thanks in advance.
I've been programming and managing computers 43 years. In the sixty's we learned to hide and protect our data processing equipment from the nosey and sometimes angry employees and customers. One of the most critical resources in a company is its computers.
If a disgruntled employee or patient...
Easy to make mistakes when converting from one number base to another. Instead, if you have VS, DEBUG the program and set breakpoints where the value is calculated. In the watch window, you can right mouse click the field and select hex or non-hex formatting.
One note - you say SQL; however, you didn't say Microsoft SQL Server. The connection string can vary depending on the source of your SQL data.
For instance, I build my ADO database definitions with M/S Access 97 and use the M/S Jet engine to test my C++ code. The Jet engine even works fine in...
Instead of closing and reopening the file, can't you set the file data pointer back to the start of the file. I know you can - I just don't recall the correct file function to use.
There is another notorious problem with Visual Studio 6 -
After starting Windows, if a DLL is loaded for the first time while debugging, the DLL memory copy will be destroyed at the end of the execution; however, Windows address for the in-memory copy will still point to the destroyed location...
Probably a little late for this response; however, for the record -
1) Copy the Active X's OCX file onto the target hard disk in whatever directory you deem appropriate.
2) Run REGSVR32.EXE to register the active X component. The regsvr32.exe program is generally in the SYSTEM32 subdirectory...
OR .... You could pick up one of the free POP3 wra[[er classes from www.codeproject.com and let it do most of the work for you. Even if you don't use their classes in your C++ program, you can see how they do email with sockets in their source code.
You might want to use the free extended CXListCtrl class available at www.codeproject.com. Either it or one of the other similar packages should be able to handle this for you.
I like to use the CString class since the variables cannot overflow the allocated memory. Over the last twenty years, I have exceeded the defined length of a variable way too many times.
CString also has a function for obtaining the length of the string.
In Visual Studio 6.0, I found I needed the help files in the same directory as the executable module. As such, I had to copy the .HLP and the .CNT files into the DEBUG subdirectory and into the RELEASE subdirectory of the project. Also, I found that these files were often overwritten during a...
There are some good Serial I/O packages for Visual C++ 6 at the Code Project site - www.codeproject.com
I have successfully used the CSerialPort wrapper class by P.J. Naughter. This download include both source and demo code.
I may be wrong; however, can you use the UpdateWindow() function within the OnInitDialog function?
I often enter a value in a dialog box's control with the control's SetWindowText function and then call the UpdateWindow function to display the updated value.
I also recently came across the #pragma once command when I had a multiple function definition error. When I eventually replaced the pragma with the #ifndef syntax, it solved the compiler problem. There is a functional difference between the two and it looks as though the #ifndef approach is safer.
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.