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
B

Blade DMS

@Blade DMS
About
Posts
73
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Polite spam
    B Blade DMS

    ColinDavies wrote: IMHO: There is a mass mailing worm circulating that is pumping out a lot of that crap. Yes... it started about a week ago, fortunatly it only seems to use about 4 different 'from' fields so it is very easy to filter. Stormblade www.torrentstorm.com

    The Lounge help

  • Happy All-Fools day
    B Blade DMS

    The RFC for IP over carrier-pigeon has been around for years... :) Stormblade www.torrentstorm.com

    The Lounge com linux architecture

  • Weird TV series
    B Blade DMS

    Not really, the series covers the effects of the death of the main character on her family... as well as to a lesser extent the familys of the people she is 'reaping' in quite a serious way. Although the cause of death is usually quite 'humourous'. Stormblade www.torrentstorm.com

    The Lounge question

  • Anachronisms
    B Blade DMS

    Just one question... 12/2/04 or 2/12/04? and WHY? Stormblade www.torrentstorm.com

    The Lounge question

  • 10 technologies that refuse to die
    B Blade DMS

    Because if you want to just print one label, you are left with an A4 sheet with 9 (for example) unused labels which will jam the printer if you try and put it through again... :mad: Stormblade www.torrentstorm.com

    The Lounge com

  • Never forget your roots...
    B Blade DMS

    That is exactly the problem I had with a DVD writer that was given to me a while ago... "Power Calibration Failure". Although every site I went to said the same thing (Even Pioneer Tech support said it)... the disks you are using are not compatible with the drive. Eventually I decided to try cleaning the lens like you did, and it work fine ever since... (with the same RW disks pioneer said were incompatible). Stormblade www.torrentstorm.com

    The Lounge help com hardware question

  • Bill Gates Knighthood
    B Blade DMS

    Do you think it would be possible to rig the sword so it releases sneezing powder at just the right moment? :-D Stormblade www.torrentstorm.com

    The Lounge

  • TWOTD
    B Blade DMS

    593.5 - I also have the screenshot ;P Blade[DMS]

    The Lounge csharp com linux question

  • Bandwidth Limiting
    B Blade DMS

    Thanks... Thats the word I was looking for :) So far my search has lead me to "Packet Filtering" with potential solutions here on codeproject[^] for Win XP and 2000. Not sure if this is the right direction to head yet tho... Blade[DMS]

    C / C++ / MFC csharp com tutorial question

  • Bandwidth Limiting
    B Blade DMS

    I'm looking for a way to limit the tcp/ip bandwidth of an application (or set of applications) from another application. Basically I need to provide the facility to limit the upload and download KBytes/Sec of a set of processes, with the limits set by the application I am writing. I know this is possible (as there are a number of applications out there that can do this, www.netlimiter.com is one example), however I need to be able to include the functionallity in my own program. Any suggestions of what approach to take, where to look for ideas etc...? Thanks... Blade[DMS]

    C / C++ / MFC csharp com tutorial question

  • Bandwidth Throttle?
    B Blade DMS

    I'm using NetLimiter at the moment... It has application level limiting, with separate up and down limits... http://www.netlimiter.com[^] Blade[DMS]

    The Lounge performance question

  • New spam justification
    B Blade DMS

    Because even when On, a processor which is idling is using less power than one that is hard at work... See the "Halt" instruction... Blade[DMS]

    The Lounge com question career

  • Rotation
    B Blade DMS

    I'm afraid that is the only solution I have found which does not involve stepping through the metafile and modifying each record manually. Blade[DMS]

    C / C++ / MFC tutorial question

  • Rotation
    B Blade DMS

    First off, You need to use GDI+... rect is a RectF containing the position of where to draw the metafile. RotationXY is the rotation around the center of that rectange (in hundeths of a degree I think).

    PointF destinationPoints[3];
    PointF Origin;
    
    destinationPoints[0].X = (float)rect->GetLeft();
    destinationPoints[0].Y = (float)rect->GetTop();
    
    destinationPoints[1].X = (float)rect->GetRight();
    destinationPoints[1].Y = (float)rect->GetTop();
    
    destinationPoints[2].X = (float)rect->GetLeft();
    destinationPoints[2].Y = (float)rect->GetBottom();
    
    destinationPoints[3].X = (float)rect->GetRight();
    destinationPoints[3].Y = (float)rect->GetBottom();
    
    Origin.X = (rect->GetLeft()) + ((rect->Width)/2.0f);
    Origin.Y = (rect->GetTop()) + ((rect->Height)/2.0f);
    
    RotatePoints( destinationPoints, Origin, RotationXY, 3 );
    
    graphics.DrawImage(&metafile, destinationPoints, 3); 
    

    and here is the RotatePoints function...

    RotatePoints(PointF *point, PointF origin, T_DWORD RotationXY, int count)
    {
    	double x, y, rad, crad, srad;
    	#define	PI (3.1415926535)
    			
    	//x' = (x * cos A) - (y * sin A) 
    	//y' = (x * sin A) + (y * cos A) 
    			
    	rad = RotationXY;	// in 0.01 degrees.
    	rad = (rad * 2.0 * 3.1415926535)/36000.0; // change to radians.
    
    	crad = cos( rad );
    	srad = sin( rad );
    
    	while( count > 0)
    	{
    		x = point->X - origin.X;
    		y = point->Y - origin.Y;
    
    		point->X = (float)(origin.X + ((x * crad) - (y * srad)));
    		point->Y = (float)(origin.Y + ((x  * srad) + (y * crad)));
    
    		count--;
    		point++;
    	}
    }
    

    Blade[DMS]

    C / C++ / MFC tutorial question

  • Assign a list of values to a class
    B Blade DMS

    How about using varargs..? define a member function in the class which loads the values from a vararg list... you loose type checking, and will have to indicate the number of arguments somehow... Blade[DMS]

    C / C++ / MFC question

  • TECH: Fixing a scratched DVD
    B Blade DMS

    These repair things normally work by polishing out the scratch in the clear plastic layer of the disk... It just depends where the scratch is... if you can see light through the scratch (more than the rest of the CD) then there is not going to be much you can do for it... But if it is a minor scratch in the bottom surface of the disk, then the repair tools may help you... Blade[DMS]

    The Lounge help question com

  • ADOX MSAccess, Allow Zero Length
    B Blade DMS

    Hi, I am creating an MSAccess DB using ADOX in C++/MFC. I don't seem to be able to set the "Allow Zero Length" field to "Yes" (as seen in Access design view) from my code. Does anyone know how to do this? I've tried the adColNullable and adColFixed Attributes, but they seem to have no effect on an adWChar field. Thanks.... Blade[DMS]

    Database c++ database design tutorial question

  • chasing creditors followup
    B Blade DMS

    And then you get stuck with a 12 month contract... which even says you are not allowed to move house! Blade[DMS]

    The Lounge com tutorial question

  • Geek-o-meter
    B Blade DMS

    WooHoo 82%!!!! :-D Blade[DMS]

    The Lounge java com

  • Installer Modules
    B Blade DMS

    Hi, I have been working on a suite of applications, All of these applications communicate with an interface application via tcp/ip which then talks to a serial interface device. I need the main applications to be separatly installable using MSI, in separate msi files, and each msi file needs to be able to install the interface tool, however I do not want to have multiple copies of the interface tool installed if multiple applications are installed. Is it suitable to create a merge module to install the interface application, and then use that merge module in each of the main application installers? will this ensure only one copy of the interface is installed, and that the latest version is installed (if a newer version is built into the installer of another application). Thanks... Blade[DMS]

    C / C++ / MFC question announcement
  • Login

  • Don't have an account? Register

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