Menu
  • HOME
  • TAGS

VB6 to VB.NET graphics panel Conversion 2010

.net,vb.net,panel,vb6-migration

There is no direct equivalent for the AutoRedraw property. In .NET you should do all of the drawing in the Paint event. You my try [Form Name].DoubleBuffered = True as an alternative...

What is the proper usage of RpcMgmtEnableIdleCleanup in managed code?

vb.net,vb6,destructor,vb6-migration

Looks like voodoo programming. One imagines you do this at the beginning of a program not the end. It can only be turned on not off. It may be on or off as the system determines. The system will turn it on when necessary. I'd say this is nothing to...

Trying to port old encryption algorithm to C#

c#,vb6-migration,encryption-symmetric,3des

There's actually a very simple solution, although it's not at all obvious. You have a block of code which says "If this data isn't exactly a multiple of 8, pad it." However, this is changing the value you're encrypting, so you get a different result. Simply remove the whole if(streamToEncrypt.Length.Dump("Length")...

How to overload operator + for const char* and int

c++,c++11,vb6-migration

What you are asking for is illegal To legally overload an operator at least one of the operands involved has to be a user-defined type. Since neither char* nor int is user-defined, what you are trying to accomplish isn't possible. This, what you are trying to do, is intentionally, and...