Skip to content

IT & Infrastructure

General IT Discussions

This category can be followed from the open social web via the handle it-infrastructure@forum.codeproject.com

6.1k Topics 18.2k Posts
  • Licensing

    question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Access my computer at home

    question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • How can i use UDP on the web ?

    help question sysadmin tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Web site for building computers

    csharp question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Unicode

    question c++
    4
    0 Votes
    4 Posts
    5 Views
    S
    Hi Pascal, Terminology: there are two types of string, UNICODE (wide, 16-bit) and multi-byte (default 8-bit). In UNICODE CString can load a multi-byte, for example: char* pszMultiByte = "Simon is 8"; CString strUnicode(pszMultiByte); // Now held in UNICODE So if you have strings in a CByteArray you can load them into a CString, then just add the CStrings. CByteArray abyData; CString strFromArray((char*)abyData.GetData()); // Note use of cast. strUnicode += strFromArray; To answer the question about the cast (where you use LPTSTR). This solves the ambiguity because you are telling the CString m_csRecon what type of data you are supplying, (and in your case it's going to go wrong I think). Without this, the compiler had more than one possible option, and is asking you for help (provide a cast). Casts are useful and dangerous - you can cast incorrectly, so watch out. I very strongly suggest that you use casts as I did with strFromArray((char*)abyData.GetData()) because that way you can see exactly what you are trying to do, it's also your note to yourself. If you supply a cast it will only work the way you intend, no default behaviour at all. I never rely on default conversion to UNICODE - I always cast everything. Also, I suggest you set VC++ to warning level 4 - this will pick up lots of areas where things may be going wrong. Based on what I understand about what you are doing: * Convert all incoming strings (held in the CByteArray) from char* to UNICODE in a CString or CStringArray. * Work with UNICODE internally. * Convery all outgoing strings from UNICODE (wide, 16 bit) to char* (multibyte) just before the vanish down the wire to the other side. There are routines in MSDN to do this. Look for wide to multi-byte. If you want to e-mail me directly do so using simon.brown@kns.ch and I'll help as I can. I only had 100,000 lines in my previous project when I had to convert to UNICODE, toook two long days. My advice is to alsways start in UNICODE, I do that except for some DLLs which talk to non-UNICODE targets such as Lotus Notes. Good Luck :rolleyes: Old Simon HB9DRV
  • Fingerprint scanning

    json question
    4
    0 Votes
    4 Posts
    3 Views
    M
    We have fingerprint scanners as our office entry doors. They work well - though the software application supplied by the vendor to program the door units is a bit weak (the print identifiers are locally downloaded to the units). Authorize time is < 2 seconds. There are a couple of different single-PC fingerprint devices that will unlock a particular PC and type in your password to standard windows logons on the market - let me know if you have trouble finding them - at $100 or so for a single PC, its a pretty reasonably priced thing to try for yourself. --Mark Terrano www.ensemblestudios.com (Creators of the Age of Empires series)
  • REQ: VSS Plug-in for tracking

    com
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • How do you setup licencing

    csharp sysadmin business help workspace
    3
    0 Votes
    3 Posts
    5 Views
    M
    I recommend network hardware key with fixed number of maximum application instances. You can implement service on server which will inform application instance if it can be launched or not. During startup, application can contact service and get permission to start. Such process must be repeated, cause think about the situation when fe: application crashes. The number of currently running application instances must be decreased. I strongly do not recommend putting it to the file, as one good program is enough to track all disk or registry activity. See for instance: http://www.sysinternals.com/ to download such programs. Use hardware key/encypt (or better: both together) - these are the safest ways. You can hard code the number of maximum application instances into the service, but I do not recommend this too, cause it does not provide strong protection.
  • CVS clients for Visual Studio?

    csharp visual-studio question
    2
    0 Votes
    2 Posts
    3 Views
    B
    Never mind, I found it. http://CVSHome.org (Do these boards get very much traffic?) -- Bryan
  • Wizard page interaction

    help question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Test

    testing beta-testing
    2
    0 Votes
    2 Posts
    3 Views
    L
    Test
  • play multiple wave files on phone ....

    question
    3
    0 Votes
    3 Posts
    3 Views
    L
    I have been already using this method. But I am trying do this in another way. I want to copy data of all files in a single buffer (WAVEFORMAT Structure) and then play. I tried this second methos but had a problem. When I copy Second file in the buffer it overwrites the first one. I want to protect the first file data. How can I do this ????????? have a nice day pareek
  • Wanted: Code for Keyboard Macro Program

    c++ question
    2
    0 Votes
    2 Posts
    2 Views
    A
    hi Andrew Go to Codeguru.com..there's a Project On Keyboard..for win32 platform.
  • Help needed! connecting Oracle database with C

    database oracle help question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Documenting design and code

    c++ design
    2
    0 Votes
    2 Posts
    3 Views
    I
    I can recommend to look at doxygen or doc++ (I prefer the former). It gives you ability to document your classes in the source code and then just produce html documentation out of source code. Let me know if find anything better. proskig@hotmail.com Igor Proskuriakov
  • SourceSafe over the Net?

    sysadmin performance question
    3
    0 Votes
    3 Posts
    3 Views
    P
    Very quick reply here: Look into WebDAV. I hear it is good for this kind of thing. www.webdav.org/ regards, Paul Watson Cape Town, South Africa e: paulmwatson@email.com w: vergen.org
  • Disabling Tool Tips in WTL

    c++ question
    3
    0 Votes
    3 Posts
    5 Views
    L
    Thanks for your input ;)
  • Win-Dev

    question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • call file in computers net

    question tutorial
    5
    0 Votes
    5 Posts
    3 Views
    M
    //to open file for write: CFile file; CFileException e; if (!file.Open(strPathName, CFile::modeCreate | CFile::modeWrite , &e)) {} Search in help for more samples. Simply enter CFile/CreateFile in search tab, and look for cpp files. There will be sample for sure.
  • VC++/MFC Seminar

    c++ hardware question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied