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: DataJanitor
  • Order by date
  1. DataJanitor

    36 bit Comparison

    Check out the long long or __int64 type in VC++ 7. Before that you could use a structure (there was one defined in the Windows.h header already) to deal with the two 32-bit chunks. DJ
  2. DataJanitor

    Return only records that match a specifc date.

    Well, those are some interesting suggestions. But, in implementing the between clause, if you do, WHERE myDate between '5/7/2003 12:00 AM' and '5/7/2003 12:00 PM', you'll only get the rows where the times are in the morning hours (12pm is noon). What you really want, is something more like...
  3. DataJanitor

    Retrieving ProductVersion from stringtable

    I've created a little object wrapper for this; I hope it wraps correctly :-) First the Header file: // Declarations for Version from Version Resource class // Written by Frank Solomon 2000 // #ifndef __ver_h #define __ver_h #include <windows.h> namespace fss { class VersionResource {...
  4. DataJanitor

    Visual C++ .NET and Visio XP

    When correctly installed, you'll have a choice under the Visual Studio .NET &quot;Project&quot; menu called &quot;Visio UML&quot; and a submenu labelled &quot;Reverse Engineer&quot;. You might want to check with MS about their products, the version of Visio that I'm using came bundled with the...
  5. DataJanitor

    Problem with Output Parameter

    It could be because the return type of @@Identity is numeric rather than Integer. But, there could be other problems. . . DJ
  6. DataJanitor

    Slowdown in the middle of calculations

    Figuring something like this out with incomplete source and data is very difficult. My suggestion is that you use the VC++ profiler to find out where the program is spending most of its time. My first suspicion is that this has something to do with memory allocation for the CString, but that's...
  7. DataJanitor

    Do I need to Build a custom list box to make that work

    Although nearly anything is possible if you work at it hard enough, I don't think that there's an &quot;easy way&quot; to get multiple lines in a list box to be treated as a single line unless you take over drawing the listbox yourself. Usually, when things are hard to do, it means that you...
  8. DataJanitor

    newbie - vectors - tearing my hair out

    Modern C++ has a concept known as namespaces. In order to keep the names in the standard template library from conflicting with those that may already be in your program they are declared as belonging to the &quot;std&quot; namespace. To use such names you need to specify which namespace they...
  9. DataJanitor

    newbie - vectors - tearing my hair out

    Yes, your problem is that vector is in the namespace std:: Try changing the line vector<int> blob; to std::vector<int> blob; or you can do something like this: using std::vector; vector<int> blob;
  10. DataJanitor

    Finding Application Components

    Try looking at the &quot;Depends.exe&quot; utility. If you don't have it, I believe it's available as a free download from MS. It's DLL oriented instead of &quot;component&quot; oriented, but it does show you the entry points of each DLL. Since most COM programmers tend to package their...
  11. DataJanitor

    Telnet Program

    Look up the CreateProcess or CreateProcessAsUser function on the MSDN CD or MS site. Pay special attention to the structure: STARTUPINFO Described in the documentation as follows: The STARTUPINFO structure is used with the CreateProcess, CreateProcessAsUser, and CreateProcessWithLogonW...
  12. DataJanitor

    C++ Clear Screen Code- Please Help

    You might want to look at MS Knowledge base article: PSS ID Number: Q99261 Article Last Modified on 12-14-2001 MS furnishes some code for a clear screen that doesn't depend on the ANSI control codes being available. The console.h header is one of the things I miss from my old Borland compiler...
  13. DataJanitor

    Problem while compilation in VC++.

    It sounds like you don't have the stub library for the DLL's linked in. The libraries are included with the developer's tools for SQL Server. On my system they're in the path: C:\Program Files\Microsoft SQL Server\80\Tools\DevTools\Lib Find them on your system, then try adding that to the...
  14. DataJanitor

    On mfc42ud.lib

    This is one of the unicode libraries with debug symbols. It is included in the distribution of VS 6 but it's optional during the install. Go back and check that you installed the unicode libraries.
  15. DataJanitor

    WIN32: *.c *.cpp compilation difference ???

    C++ does much stricter type-checking that plain-old C. I recommend that you read Stroustrup's &quot;The C++ Programming Language&quot;.
  16. DataJanitor

    Changing 'char *' to string

    Try: printf(&quot;\n string_MyValue = %s&quot;,string_MyValue.c_str()); printf isn't std::string aware. . .and if it were, it probably wouldn't use &quot;%s&quot;. you really ought to consider moving to cout and cin; but, even then you may have to add an overloaded operator<<(const...
  17. DataJanitor

    I cann't find log file of sendmail

    &quot;sendmail&quot; usually logs via syslogd. So, if you check your syslog.conf file and look for lines having to do with the &quot;mail&quot; facility (they begin &quot;mail.&quot;) then look at the filename beside them, that will tell you where your logs are going.
  18. DataJanitor

    Versions

    If the version number is stored in a Version Resource you can get it from there. Here's a class I use to extract the current exe's version number from the resource: First the ver.h header file: // Declarations for Version from Version Resource class // Written by Frank Solomon 2000 // #ifndef...
  19. DataJanitor

    AIX 4.3.3 maintenance release 8 - Any known problems

    Thanks for the netscape heads-up. I hadn't checked that and didn't realize it wasn't working. Meanwhile, I found another peculiar thing. Although FTP appears to be working, I'm getting syslog error messages since the upgrade saying: ftpd[24254]: Failed dlopen: /usr/lib/libpag.a(shr.o): A...
  20. DataJanitor

    AIX 4.3.3 maintenance release 8 - Any known problems

    I installed it last weekend. The only nuisance I noticed is that for some reason, now I can't start Service Director from the X version of SMIT. I probably need to upgrade something else.

Part and Inventory Search

Back
Top