|
OK - well, that's how you set it. Do you set the thread model to something else, elsewhere in your code ? I don't even know if you can, but that attribute is what it's telling you to set. Have you googled the error message text ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Ya i have googled but itz saying to set entry point as what u said. but i cant figure out the exception
|
|
|
|
|
Are you trying to access your object from a background thread?
|
|
|
|
|
M trying to access Clipboard.GetDataObject();
it is throwing exception when accesing clipboard
|
|
|
|
|
hello
how can i save state of a controls in an xml file ??...later I need to load and generate in my form...anyway to do that..?? (those controls generated dynamically)
|
|
|
|
|
You need to write the code to save and reload your controls and their state, there's nothing built in that I know of
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I think you can use seralization and deseralization then solve your issue.
Continue...
|
|
|
|
|
i need to zip the files/folder. How can i use winzip32.exe in C# code to programatically zip the files or folder. If you could provide some sample code that would be great. Thanks
|
|
|
|
|
Process.Start will start winzip, so I guess if you can provide the files on the command line, that will do it for you. I thought zip support was built in now, I know for sure there are third party libraries you can use. WinZip is a commercial product, you need for your users to buy it if you use it for zipping.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
I found the class System.IO.Compression.GZipStream which might serve the purpose. I have never used it though.
Have you come across this class??
Until you realize this message has nothing to say, its too late to stop reading
|
|
|
|
|
I've not used it, but I had a feeling that such a class was in the newer versions of C#.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
It was introduced in .NET 2, and people who've used it have noticed some issues with it.
|
|
|
|
|
|
My requirement is to zip the files if i use System.IO.Compression class the files are compressed. again for decompression i have to write a program. I want to use WinZip utility only.
I used the Process.Start as shown below
System.Diagnostics.Process.Start("C:\\Program Files\\WinZip\\winzip32.exe -min -a D:zippy.zip D:\\1.txt");
but i get an error at run time "The system cannot find the file specified"
If i specify only the exe name System.Diagnostics.Process.Start("C:\\Program Files\\WinZip\\winzip32.exe");
then winzip exe is opened. How do i specify the parameters. Please help
|
|
|
|
|
I thought the compression classes used the same algorithm as winzip ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I tried to compress file using GZipStream but when i used WinZip32.exe to unzip the files it dint work. It gave an error message "Cannot open file. it does not appear to be a valid archive"
Does this mean that compressing class GZipStream does not use the same algorithm as Winzip?
If that is the case then i cannot use GZipStream to zip the files. Please let me know if you have any other suggestions. Thanks
|
|
|
|
|
When i was going thro the null types in C# i came across a statement which i had never met in my life
ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_csref/html/e473cb01-28ca-42be-9cea-f717055d72c6.htm
THe line is
static void Main()
{
int? num = null;
}
What does the int? mean..
Proud To Be an Indian
|
|
|
|
|
Check this[^]
Until you realize this message has nothing to say, its too late to stop reading
|
|
|
|
|
vivekphlp wrote: int? num = null;
The value gives the clue. int? is a shortcut for INullable<int>, which is to say, a wrapper class that wraps an int, or null, which allows you to store null for an int value. You can put the ? after any value type as in double? or Decimal?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks a lot. . .
Proud To Be an Indian
|
|
|
|
|
int? num = null;
The meaning of the int? is represent the num is nothing there no mermory alocatin for the num the space of the num is empty.It is mainy used for DATA Base activity.
Continue...
|
|
|
|
|
This is not true at all. The memory is allocated, and the memory for the wrapper generic class that int? is a shortcut to, is also allocated. It's simply set up so that the initial value is null, which means that whatever value the int has ( an int cannot be null ), the wrapper class will not expose it, because it regards the value to be null intead.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: The memory is allocated, and the memory for the wrapper generic class that int? is a shortcut to, is also allocated
SO you mean to say when we write
int?num; // allocates 4 bytes of memory but requires an initial assignment.
But "int?" is a "SHORTCUT to WHAT ???" is it System.Nullable<int> variable
Proud To Be an Indian
modified on Tuesday, April 8, 2008 4:32 AM
|
|
|
|
|
vivekphlp wrote: But Graus "int?" is a "SHORTCUT to WHAT ???" is it System.Nullable<int> variable
Yes.
BTW, referring to people by their surname is considered rude in the West. Just saying....
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|