|
If read through these forums you will see that re-asking the same question, even if it is re-phrased, doesn't help.
|
|
|
|
|
hi Mark,
actually, i has searched lots of forums, but i got nothing, i believe it is a quite common question, but i really canot find its answer.
if you know any relevant URL resources, plz tell me.
many thanks
|
|
|
|
|
Bluebamboo wrote: retrieve the images along with html
Mark is correct, besides HTTP does not work that way. Perhaps you should do some studying on the subject prior to attempting development?
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
sorry about the re-ask. but i really need help, and i am fastened on this problem long time~~
A question is really confusing me , how does a proxy program work that way when it responses the content of webpage with images to client explorer
|
|
|
|
|
I am not trying to be rude but HTTP is a fairly large protocol and using a forum is not the way to learn it. Go and study the HTTP protocol so that you "know" what you need to develop before you start writing code.
try Google: HTTP protocol tutorial
good luck
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
good suggetion for me
thank a lot
|
|
|
|
|
how to read tiff file content.
Roopesh Singh Gangwar
|
|
|
|
|
Have you tried FreeImage? It comes with a nice C# wrapper and seems to handle every TIFF type I've tried except JPEG 6.0 compression. If you need low-level stuff, you could write a wrapper for libtiff.
|
|
|
|
|
No i have not tried FreeImage. If you have code for that can u share it with me.
Roopesh Singh Gangwar
|
|
|
|
|
I guess this is pretty stupid question but ...
If I know the Tag (full path of the node), how can I use it in order of Checking the node.
Thanks
-- modified at 9:49 Thursday 6th July, 2006
|
|
|
|
|
Hello
Try to parse your tag & select them node by node, until you reach your target node.
Slow, but sure
Don't forget to put in mind that the tag may be in incorrect format
eg. -NOT A REAL CODE-
try
{
string MyTag = TheTag
Get firstNode Name
Select it from the root
remove its name from MyTag
while(MyTag.Length > 0)
{
Get NextNode Name
Select NextNode from the SelectedNode.Nodes
Remove its name from MyTag
}
}
catch
{
//error
}
//Now We got our node
Regards
|
|
|
|
|
I have a function in c++ returning array as:
int * funcArg(int *a ) {
int * DLLArg;
DLLArg=a;
return DLLArg;
};
I exported this function in dll( I checked with dumpbin.exe)
I declared this function in c# client as:
[DllImport("DenemeNonMfcDll.dll")]
public extern static int [] funcArg(int [] a);
And I called this function in c# client as:
int [] intArray;
intArray = new int[3] {0, 1, 2};
foreach (int num in funcArg(intArray))
{
System.Console.WriteLine(num.ToString());
}
But I got System.Runtime.InteropServices.MarshalDirectiveException and it says it can not marshal return value.
What should I do?
URGENT HELP!!!
|
|
|
|
|
Try changing the declaration to:
public extern static IntPtr funcArg(int[] a);
and use Marshal.Copy to copy the returned pointer into an array.
|
|
|
|
|
I could not resolve the issue. still does not work!!!
class Class1
{
[DllImport("DenemeNonMfcDll.dll",EntryPoint="?Sub@DLLclass@@QAEHHH@Z")]
public extern static int Sub(int a, int b);
[DllImport("DenemeNonMfcDll.dll")]
[return: MarshalAs(UnmanagedType.SafeArray)]
public extern static IntPtr funcArg(int [] a);
public static int [] intArray = new int [3] {0,1,2};
static void Main(string[] args)
{
int [] array2={};
IntPtr ipr= funcArg(intArray);
Marshal.Copy(ipr,array2,0,3);
foreach (int num in array2 )
{
System.Console.WriteLine(num.ToString());
}
//Console.WriteLine("sonuc"+);
Console.WriteLine("Press any key to continue...");
Console.ReadLine();
}
}
|
|
|
|
|
I have been looking for several hours now trying to figure out how to display a transparent back-color label over other controls. I have a user-control with tons of controls in it such as text-boxes, combo-boxes, etc. I want to display a BIG RED LABEL titled "VOID" over this user-control sometimes when the control is displayed. But I want the user to still be able to read the data in the controls behind the label.
When I set the back-color property of the label to transparent, it doesn't seem to work. I have also tried creating a custom label and over-riding the CreateParams property.
I have also now tried making a graphics and using the drawstring method. However, I once again cannot figure out a way to make the graphic the top most control over the other controls. I even changed the other controls z-order.
PLEASE HELP AS I AM BECOMING DESPERATE!!
|
|
|
|
|
I believe the only way you're are going to accomplish this would be to override the control's OnPaint method and draw your text.
|
|
|
|
|
By drawing it in the OnPaint method, I still have not figured out how to make the Graphics object the top most control.
|
|
|
|
|
You can't make the graphics object the top most control because it isn't a control. The graphics object is the representation of the control, or image, or print page, etc. The control is painted on the screen using the graphics object so in your case you would do something like
public void OnPaint(...)
{
base.OnPaint()
Graphics.DrawString(...)
}
Caution: Not actual working code.
|
|
|
|
|
Thank you so much for your help. Your explanation is helping me to better understand the problem. I now believe that it must be an ordering problem.
I have tried drawing the strings in the OnPaint method but the strings still appear behind the controls. I believe that the controls are being drawn after the onPaint method is called. I tried overriding the onPaint method exactly as you suggested (calling base.OnPaint() first and then Graphics.DrawString()) - however, the string is still painted behind the controls.
How can I ensure that my Graphic is drawn last on the control?
|
|
|
|
|
To anyone who has this same problem, I finally found a good solution. Please visit the following link:
http://www.codeproject.com/cs/miscctrl/SimpleLine.asp
|
|
|
|
|
Hi,
I installed the Enterprise Library January 2006 on my PC and it compiled and built the project. Now when I rebuild the solution, it still says to me that the date on the dll or of 2 days ago (the date when I installed Enterprise Library).
I'm referring to adding a reference to the Data Application Block dll. Why is it that when I add it to my bin folder in my Web Project using Add Reference, then it goes and adds about 6 files, namely:
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.Common.xml
Microsoft.Practices.EnterpriseLibrary.Data.dll
Microsoft.Practices.EnterpriseLibrary.Data.xml
Microsoft.Practices.ObjectBuilder.dll
Microsoft.Practices.ObjectBuilder.xml
I read at that I must add the following 2 DLL files:
Microsoft.Practices.EnterpriseLibrary.Common.dll and,
Microsoft.Practices.EnterpriseLibrary.Data.dll
When I check at the SDK of the PayPal Starter Kit, then the DAAB dll that they reference is called something like Microsoft.ApplicationBlocks.Data.dll.
Why is this?
Please can someone explain.
Regards,
ma se
|
|
|
|
|
...Common.dll is, well, for common pieces of the EntLib
...Data.dll is of course for the data access block (previously called Data Access Application Block, PayPal must be using an older version)
..ObjectBuilder.dll is used to create the objects necessary for the Data block
The xml files are the compiled documentation files and should not be included in your application
|
|
|
|
|
"previously called Data Access Application Block", what do you mean by this and what is it used for now?
So if I remove the xml files nothing will crash?
Are all 3 dll files required?
Have you got extensive knowledge about the new application blocks? Just curious.
|
|
|
|
|
|
I just want to ask something. I usually had my classes broken up into BLL classes and my DAL classes. Would I still make use of the DAL classes?? I'm assuming so because you would have different method calls, like GetOrders(), or GetCustomers(), and each method would do it own thing with the results returned.
|
|
|
|