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: *

  1. EarlAllen

    Protect Access database from customers/competitors

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

    Protect Access database from customers/competitors

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

    Everyone Please Respond

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

    how are ints chars and longs etc represented?

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

    Accessa SQL database using Visual C++

    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...
  6. EarlAllen

    read file problem, do not read at the second time

    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.
  7. EarlAllen

    C++ isn't executing anything!!

    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...
  8. EarlAllen

    WM_SETFOCUS message

    I had the same problem and used the same work-around. This could be a Microsoft bug.
  9. EarlAllen

    URGENT! Need a Step-by-step of how to register an ActiveX

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

    accesing email using sockets???

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

    Line-wrapping CListCtrl/CListBox

    I think I would use a Rich Text Edit box; however, it does depend on the circumstance.
  12. EarlAllen

    changing a var

    Of course, the old C technique would be - if (len==8) { password[8]=' '; password[9]=' '; password[10]='\0'; }
  13. EarlAllen

    Insert Button in a row of a ListControl VC++ 6

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

    c++ var length

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

    Adding Help in a Project

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

    C++ Serial I/O Comm Library

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

    How to include database support in MFC app

    There are several good ADO database examples at The Code Project site - www.codeproject.com ADO doesn't require can use, but doesn't require ODBC.
  18. EarlAllen

    Can't display text in a modeless dialog box when initially displayed

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

    converting a array of bytes to CString

    How about - CString hold; byte myArray[3]; hold=(CString) myArray;
  20. EarlAllen

    #ifndef or #pragma once?

    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.

Part and Inventory Search

Back
Top