|
Yadav Pramod wrote: just change the format from .Tiff to .bmp or jpeg
Well, maybe, but I have to save it in tiff format....
|
|
|
|
|
There are various compressions in use in the TIFF format. Make sure your other apps are NOT using JPG compression in the TIFF.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
That's what I thought also. How do I specify which compression to use, and (probably a dumb question) what kind of compressions are there?
-- modified at 9:26 Wednesday 25th January, 2006
|
|
|
|
|
Whoops! I got your question backwards. I thought you were saving these images in other apps and your application wouldn't open them. Sorry!
The TIFF format support built into the .NET Framework pretty much sucks. I'd seriously consider using a 3rd party library for image handling or saving to a full, no compression, format like .BMP and converting the image using an outside utility.
Google search for "TIFF .NET[^]".
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yeah, I solved it. The .NET default compression iz LZW - I need to use the CCITT compression, and with it, it works just fine.
Thanks anyway
Best regards,
Aleksandra
|
|
|
|
|
Ya learn somethin' new everyday! Thanks!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I have written a windows application in .net 2.0
Do you know how I can have an install setup so that I can email the required files to another person to instal?
Thanks
|
|
|
|
|
Why not just attatch the deployment folder as a zipped file?
|
|
|
|
|
How and where do I get to this deployment folder please?
Thanks
|
|
|
|
|
What he's saying is that there's nothing magic about .NET executables and components. Just copy the .exe file and any .dll files out of the bin/Release or bin/Debug directory, zip them up, and send them to your friend.
|
|
|
|
|
hoe do these dll and .exe files get created. Are they created as you compile the program?
Thanks
|
|
|
|
|
u can create an installer/deployment project in .Net and give
the applications exe path to the installer so when the installer is run
ur application is installed on the users machine.
Regards,
Pramod
|
|
|
|
|
I am looking a way to find out the LDAP path of a computer object. I found an example in vbs, but I don't figure out to translate this in c#. Does anyone got an idea how to do this?
Thanks.
I post you the vbs code for your info.
<br />
Public Const ADS_NAME_INITTYPE_GC = 3<br />
Public Const ADS_NAME_TYPE_1779 = 1<br />
Public const ADS_NAME_TYPE_NT4 = 3<br />
<br />
sSAMAccountName = "domain\computername$" 'replace with the computer account with $ on the end<br />
<br />
Set oNTr = WScript.CreateObject("NameTranslate")<br />
oNTr.Init ADS_NAME_INITTYPE_GC, ""<br />
oNTr.Set ADS_NAME_TYPE_NT4, sSAMAccountName<br />
GetDNFromSAM = oNTr.Get(ADS_NAME_TYPE_1779)<br />
<br />
Set oUser = GetObject("GC://" & GetDNFromSAM)<br />
sUserContainerDN = Replace(lcase(oUser.distinguishedName), lcase("cn=" & oUser.cn) & ",", "")<br />
WScript.Echo sUserContainerDN
|
|
|
|
|
found it. With the help of... Marc Scheuner
http://www.techietwo.com/detail-6060651.html
Ok, the solution:
Add a COM reference ActiveDs (Active DS Type Library)
On top of the document add using ActiveDs;
Private void GetPath()
{
string sComputerName = "Hostname";
ActiveDs.IADsADSystemInfo oSysInfo = new ActiveDs.ADSystemInfoClass();
ActiveDs.IADsNameTranslate oNameTranslate = new ActiveDs.NameTranslateClass();
oNameTranslate.Init((int)ActiveDs.ADS_NAME_INITTYPE_ENUM.ADS_NAME_INITTYPE_DOMAIN,"EUROPE");
oNameTranslate.Set((int)ActiveDs.ADS_NAME_TYPE_ENUM.ADS_NAME_TYPE_NT4,("EUROPE\\" + sComputerName + "$"));
string sTemp = oNameTranslate.Get((int)ActiveDs.ADS_NAME_TYPE_ENUM.ADS_NAME_TYPE_1779);
MessageBox.Show("Path=" + sTemp);
}
Note the $ sign, that is needed in order to get the path = the Netbios name of the computer object.
Thanks all, hopefully you have something on it.
|
|
|
|
|
Does anyone know of a way to build a self extracting executable in C#?
I have written an encryption class and I would like to be able to add my encrypted files to an executable which, when opened, would prompt for a password and then decrypt the file.
I've been having a look at dynamic assemblies and adding resources, but as yet I haven't discovered a way to embed the resource (or in this case the encrypted file) into the executable.
I would really appreciate it if anyone has some suggestions or could point me in the direction of a useful article on this as its doing my head in!
Thanks in advance
Paul
|
|
|
|
|
Hi all,
i know win98 dont have low level hooking just like said in :
http://support.microsoft.com/kb/318804/[^]
how can i do Global hooking for (at least) keyboard so i can work on 98 also?
Thanks in advance.
Ran.
R.Z
|
|
|
|
|
Why post this in a ntoerh thread? What was wrong with the first one you had going?
You can either try the normal Keyboard and Mouse hooks in a .DLL, or you can try the WH_CALLWNDPROC hook and filter for the Keyboard and Mouse messages yourself.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi I am having some trouble trying to pass a dropdownlist into a function that is executed each time the date is changed on the date selector, there are 2 separate dropdownlists so I need to tell them apart anyone got any ideas
Thanks in advance Tim
date.DateChanged += new System.EventHandler(this.Squad_Club_SelectedIndexChanged);<br />
<br />
<br />
private void Squad_Club_SelectedIndexChanged(object sender, System.EventArgs e)<br />
{<br />
string prefix = "";<br />
DropDownList ddl = sender as DropDownList;<br />
if (ddl != null)<br />
{<br />
if (ddl.ID == "clubASquad") prefix = "home";<br />
else if (ddl.ID == "clubBSquad") prefix = "away";<br />
else return;<br />
<br />
InitializeSquad(ddl.SelectedValue,prefix);<br />
}<br />
}
|
|
|
|
|
Hi all,
I was working as a COM developer and new to .NET platform and C#. Please someone help me clarifying my doubts regarding garbage collection.
I have used an Excel Application object inside my C# code. Do I need to explicitly call System.GC.Collect on the application, worksheet and workbook objects?
JJ
|
|
|
|
|
Hi,
You should never call the GC.Collect explicitly... Just let the Framework handle it
Do Dispose() your IDisposable objects when possible and clear all unneeded references to make the collection quicker...
Cheers
Damian
|
|
|
|
|
Hi Damian,
Thanks for the suggestions.
Regards,
JJ
|
|
|
|
|
hi to all,
i am working with c# win application.
i want to copy a file from a server on the local machine.
the path to my file is "http://server/Dir1/myfile.doc".
before doing the copy, i need to verify if the file on the server has recent date than the file on the local machine. if yes i want to make the copy and if not i do nothing
any suggestions or code sample
best regards and thanks in advance
fady
|
|
|
|
|
If you convert each segment of the date into a string, and check each segment in order, so:
if (server.year > local.year)
if (server.month > local.month)
if (server.day > local.day)
etc
- I am not sure on the datetime conversion functions, but there will be a way to split it up into segments with normal string functions and then convert them to int32's
Regards
James
|
|
|
|
|
Hey howzit,
I got a project off the net and I am trying to compile it. It gives me this error message:
"Visual Studio cannot start debugging because the debug target 'C:\.....\bin\Debug\xxx.exe' is missing. Please build the project and retry, or set the OutputPath and AssemblyName properties appropriately to point at the correct location for the target assembly."
So I built it first and then ran it. Can someone explain why one has to built and then run some apps and others work when you press run right away?
|
|
|
|
|
can i ask a favor about our project proposal in the internet connection.We
need to make a code in c# editor or in c programming that will ask a user
to input his/her name and a password, then when the user already consumed
1 hour, her/his connection in the internet will be blocked.
So, please help me in this project....... thank you!!! i wait for you're
reply.....please send me a code at shazzney@message.com
-- modified at 3:05 Wednesday 25th January, 2006
|
|
|
|