Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

Josef Schroettle

@Josef Schroettle
About
Posts
10
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • You ever produce code you know is stupid, but you don't know a better way to do it?
    J Josef Schroettle

    Hi, you wrote that you are already using a parameter pack in the function rgbpixel::channel. Where would that be? Please post the signature(s) of rgbpixel::channel. Is your code somewhere so I could have a look?

    Josef Schroettle

    The Lounge announcement c++ database com

  • Math symbology question
    J Josef Schroettle

    The rational exponents can only simplified if the symbol is a division. If you multiply 12/5 * 3/5 you get 36/25 which cannot be simplified. The other way around 12/5 / 3/5 = 4 makes a lot more sense. Same for the other expression.

    Josef Schroettle

    The Lounge question com tools

  • Radar Question
    J Josef Schroettle

    Hi Brad, this is an interference with WLAN in the 5 GHz band. This is known and WLAN access points in the 5 GHz range have to change the channel when they detect a radar in their range. The problem is getting worse as more and more access points use the 5 Ghz frequency. Josef

    Josef Schroettle

    The Lounge hosting cloud question

  • STL Question
    J Josef Schroettle

    Hello Jörgen, Scott Meyers answered very fast and I include his reponse below: -- Scott Meyers wrote --- Not in portable code. Section 17.4.3.6 of the Standard states that using an incomplete type to instantiate a library component (such as vector) yields undefined behavior. On this topic, I encourage you to read http://www.cuj.com/documents/s=7986/cujcexp2002austern/ -- End Scott Meyers --- Sometimes it's good to get an authoritative answer from an expert... Josef

    ATL / WTL / STL question c++ graphics

  • STL Question
    J Josef Schroettle

    Jörgen Sigvardsson wrote: I doubt it. MSVC doesn't allow you to instantiate all_t unless field_t is known at the point of instantiation. Since field_t is known, then also its size is known, and therefore the heap will be just fine The question is there, that clients which just include the header file don't know the size of 'T'. But I assume that the vector has always the same size and sizeof(T) is just needed when vector gets memory for a chunk of T's. But in my opinion this is highly depending on the STL implementation, one could e.g. cache the sizeof(T) in a local variable of vector<> which would then be not the real size which is only known to the implementation file. I'll try asking Scott Meyers which wrote the excellent book 'Effective STL'. Josef

    ATL / WTL / STL question c++ graphics

  • STL Question
    J Josef Schroettle

    Hello there, is it possible to instantiate a std::vector with an incomplete type? E.g. --Header-- struct field_t; class all_t { ... private: std::vector m_fields; }; --Implementation-- struct field_t { long val1; int val2; }; all_t::all_t() { ... m_fields.resize(10); ... } --End-- What size is assumed by the vector when resize(10) is called? It seems to work with VC7.1 but is it portable or will it overwrite the heap sometimes later? Regards Josef

    ATL / WTL / STL question c++ graphics

  • Eject of PCMCIA card
    J Josef Schroettle

    Hello there, I hope someone has a clue how to solve this problem. I want to 'stop' a PCMCIA card (IDE flash card) so that the user can remove it without a message popping up. You can 'stop' the device with the little icon in the taskbar but I want to provide this functionality in my software. Someone must have had this problem before... An extensive search on MSDN found nothing, maybe it is a Plug-and-Play problem, maybe it is a 'configuration manager' problem, but I found no sample or code. Thanks for you help in advance. Josef Josef Schroettle

    C / C++ / MFC help visual-studio adobe tutorial workspace

  • PGP
    J Josef Schroettle

    Hi Nish, try www.pgpi.org you will get executables and sources there. Regards Josef

    The Lounge c++ com security cryptography json

  • Simulate the XP activation thing
    J Josef Schroettle

    Hello Nish, it depends on what level of uniqueness you want to achieve and wether you have control over the hardware where your software is installed. The drawback by using hardware features is, that you will get flooded with 'update requests' from users which have (or at least claimed to have) upgraded the machine. There is no single unique feature which applies to all machines, processor serial numbers can be turned off in the BIOS, MAC addresses can be set in software (in some network cards). The best identification you can get is a dongle, but they are expensive... Microsoft is using the following features: - volume serial number string of system volume - network adapter MAC address string - CD-ROM drive hardware identification string - graphics adapter hardware identification string - CPU serial number string - harddrive hardware identification string - SCSI host adapter hardware identification string - IDE controller hardware identification string - processor model string - RAM size I guess to get at all that information takes some time to code and debug/test on a lot of different machines :eek: Sorry, I cannot provide a solution for you... Regards Josef Schroettle

    The Lounge c++ tutorial question

  • Documents and Settings
    J Josef Schroettle

    Try TweakUI from Microsoft, it is available free of charge for XP. With this tool you can change the folder for 'my documents' (I don't know the exact English name, in German it is 'Eigene Dateien' :-) This changes the registry key only, you still have to copy the files manually. I suggest the following sequence: 1) Create the new folder 2) Copy all files to the new folder (including subdirectories). Be careful to copy hidden files also ! 3) Change the setting with TweakUI, make sure you safe the current setting somewhere (e.g. copy and paste) 4) Test if the new setting is working (at least some days before performing the next step !) 5) Delete the old folder (optional) Regards Josef Schroettle

    The Lounge tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups