One quick solution is to use the MediaDetClass of Dexter Type Library. There is a sample in Code project see link below:
http://www.codeproject.com/KB/directx/picturesfrommovie.aspx
Here is an extract of code from their sample:
MediaDetClass md = new MediaDetClass();
md.Filename =...
DotNetGnat,
I had a look at the code you posted and thought that the following might be of help to you. (Especially if you come from a .Net background)
Stack vs Heap memory
The code of main function you posted allocates memory variables a,b,c and L1 from the stack. The destructor of each...
I think the short answer is yes. It may help to have a look at techniques and technologies that Java provides.
For a chat program i would imagine you may want to have a look at what Java has to offer on Networking. Have a look at java.net package in particular Socket and SocketServer classes...
Your problem is related to removing items from the MenuItemCollection inside your foreach loop. Microsoft does not advise using foreach statement when changing the contents of a collection.
"The foreach statement is used to iterate through the collection to get the information that you want...
I am not sure if it would fit well with your situation but I would define a User class and a set of "can" routines.
public class User
{
public bool CanRead(string record, string field)
{
//Here your code logic
}
public bool...
StefanWagner is right converting numbers to a higher base does not compress the number (which is held in a long [64 bits] in computer storage or memory). It does however provide a way for reducing the number of digits to required to represent the number when shown on screen or on paper. True...
You could try using the TableLayoutComponent with one row and then add the columns at run time. If you specify the column width as percentage then provided the TableLayoutComponenthas Align set to (Left+Right) the columns will resize proportionally.
/// <summary>
/// Function...
I assuming that your 16 digit numbers are in base 10 (i.e. decimal numbers) then as implied by MoreFeo, Bong and tom62 above you could use converting from base 10 to a higher base (e.g. 16,64,256,... 1000) as a method of reducing the number of digits required to represent your numbers.
I found...
Forgot to mention the splitContainer in the pnlMiddle would be your area 3 and 4. SplitContainer contains two panels and by default has the ability to split the available space into proportional size for its two panels. In your case if you size the splitContainer panels to have equal width on...
Hi Echilon. One way to achieve the layout you specified in the picture you attached could be by using a number of panels and one splitContainer and then setting the Dock or Anchor properties accordingly.
Here is what i tried and it worked:
* Added a panel on the user control and set its dock...
Hello regular dude. I had a look at the first link that you provided and was able to create a simple test program that worked based on instructions and code provided in Figure 4 and 5 in the link.
Below is the program code i tried.
using System;
using System.Collections.Generic;
using...
As chiph suggested one solution to your scenario is to use the ManualResetEvent. Chiph is right about using the boolean variables not being thread safe. This is because even statements like "stop=true" where stop is bool will consist of more than one instruction when compiled.
I tried a simple...
You may find it useful to use BackgroundWorker component. Some tips on how to use it would be:
1. Drop a BackgroundWorker component on your form
2. Add your large operation routine in the DoWork event of BackGroundWorker
3. Use ReportProgress routine of the background worker to report...
koymg I am glad that it helped. You can get the namespace and class name from the MethodBase obj
//Routine that does the logging
public void WriteLog(string message)
{
//Lets get the stack trace
StackTrace st = new StackTrace();
//Lets get the stack frame we are interested in...
Hello komyg, you may find it useful to look through the StackTrace and StackFrame classes provided in .NET because they should provide you with the solution you were looking for.
This statement contains the key information
"A StackFrame is created and pushed on the call stack for every...
Guess what !! This works too.
public class foo
{
public delegate T delegateMethodType<T>(string s);
//sorry can not have this
//public delegateMethodType MethodToExecute;
//You can have this if you want
public T...
I think I understand what you are trying to achieve. I do not think i deserve the 6 million dollars but anyway here are some comments:
The error you are getting is related to the fact that you are trying to define a variable of a generic type without specifying a specific type. As i...
I think Griffyn is right about calling the Create constructor instead of the inherited one. Also your problem may also be caused if you have overloaded TForm.Create(aOwner:TComponent)?
[code]
//This is NOT correct
constructor Create(aOwner:TComponent); overload;
[\code]
I have had similar...
Yes, I filled in the Delphi survey too recently. I must say I do not understand why CodeGear decided to prioritise .NET before Win64. Microsoft Visual Studio is cheaper then Delphi and I would imagine most people would use Visual Studio to program in .NET.
In my opinion Delphi is (or should i...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.