|
Ahh, right, I see what you are trying to do.
Yes, this is going to be a more client side thing rather than a traditional style "web analytics".
Simon
|
|
|
|
|
so you are saying that addin is a better way?
|
|
|
|
|
It's a way. It'll do.
Simon
|
|
|
|
|
ok, thanks for your help
now I just need to find out how to create addin using C#
|
|
|
|
|
Hello everyone,
I am trying to find ways to draw a run time changeable string over a DirectX 8 game. I tried almost everything search engines could provide me with, and i came up only with the "proxy" solution. Since i am familiar only with C#, and C++ is not an option it is very difficult for me to build the expected .dll. I am wondering if you know other possibility of rendering this text over the directx game. The most annoying problems i found were:
1. The directX app is fullscreen.
2. The app is using directx 8 . Barely finding resources.
3. I need to have my application to control when to draw, when to stop, what to draw over the DirectX.
4. I need to use C#.
If i used wrong terms like "drawing over" i am sorry, but i'm not too familiar with the Drawing part of coding.
Thank you very much.
|
|
|
|
|
Try the graphics forum dude
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
If you didn't write the game, I suspect you're dreaming. If there's a supported way that requires a C++ dll, then you'll need to write it in C++.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Actually i have seen it done in several applications and even with more complex drawings (images, transparency etc). I can live with using a c++ dll and importing its functions in c# but i need a dll with exposed (and if possible explained) functions.... I only found code for directx 9 proxies, but my recent searches led to me to believe that this is possible by using somehow GDI/GDI+.
Thank you for your prompt answers.
|
|
|
|
|
i need to create custom reort 4 customers
mean client specific paper type & size
labels & fields in report user specififc it's size font color .......
md_refay
|
|
|
|
|
I hope your question is about C# 'cause other then that your post goes against about every rule of the forum.
Please edit your post to be:
-> in full sentences and without typing errors (no sms language).
-> clear and specific
--1-> I have to do something in this context (that you did)
--2-> I'm having a specific problem here: eg I'm using word templated, but I'm stuck there, Crystal Reports does not pass my parameter or even why not: I'm not sure where to start, can you give me advice.
-> I did a, b, c as a solution and searched here and there, but...
then you'll find people more reactive towards what you're trying to accomplish.
good luck.
|
|
|
|
|
OK - have fun. Did you have a question ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hey Everybody,
I'm havin' a bit of trouble trying to solve a problem here and I've googled for quite a while now and I am tryng to search files on my computer for any URL and get thos URL's into a string... The URL could be anywhere inside the file and I keep getting 1 error when I TRY to debug:
Error 1 The name 'word' does not exist in the current context
Here's the code that I have:
private void SearchButton_Click(object sender, EventArgs e)
{
string FilePath = "C:\\Users\\Jase\\Documents\\dumpFile.txt";
StreamReader ReadFile = new StreamReader(FilePath);
string ReadAll = ReadFile.ReadToEnd();
ReadFile.Close();
string regMatch = "ht|f" + "tp://" <word> ".com" | ".net" | ".org";
if (Regex.IsMatch(ReadAll, regMatch))
{
StatusLabel.Text = (regMatch + " was found.");
}
else
{
StatusLabel.Text = (regMatch + " was not found.");
}
}
j.t.
|
|
|
|
|
plz see if this is added the namespace....
using System.Text.RegularExpressions;
Thanks
tony
|
|
|
|
|
thanks tony,
i did originally add:
using System.Text.RegularExpressions;
I dunno what to do... None of the code I've found on Google so far works either.
j.t.
|
|
|
|
|
jay_t55 wrote: string regMatch = "ht|f" + "tp://" <word> ".com" | ".net" | ".org";
I am not sure what are trying to do here.
As far as your requirement is concerned, I would have used following code:
Regex reg = new Regex(regMatch);
Match oMatch = reg.Match(ReadAll);
Google will easily provide you a regular expression(regMatch) to find a URL in text.
Loading signature. Please wait...
|
|
|
|
|
jay_t55 wrote: string regMatch = "ht|f" + "tp://" <word> ".com" | ".net" | ".org";
Didn't try, but this looks very weird. I'm quite sure this is lacking some blanks and/or brackets.
Tip: Use String.Format instead of + to concat strings. It's much faster (which is not that relevant here) and much more readable.
Regards
Thomas
www.thomas-weller.de
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Programmer - an organism that turns coffee into software.
|
|
|
|
|
hello all,
i was looking for a better answer from some one who could give answer for my question
i want to get file path of the file csc.exe from the system.
a system may contain one drive c, or many depending on how it is configured.the drives arenot know to me and i want to serch these drives to get the file path HOW??
finding how many drives in the system first... and make a search for the file (csc.exe)... plz HELP URGENT... on for project completion by this friday.....
TONY
|
|
|
|
|
You can enumerate all the drives on your system and then recurse through the directories until you find the file.
tonyjsebastian1 wrote: was looking for a better answer
So, you've been told this already then ?
tonyjsebastian1 wrote: plz HELP URGENT
You have no idea how much this annoys us...
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hello
sorry to disturb u. i am not an expert in coding C#... i just started only and facing real difficulties so i posted such a question
don't misunderstand me
i was looking for a better answer .. ie i got the answer from Mikro1980
see below code snippet. it really targeted on me for what i was exactly looking for
string csc = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory().ToString();
Thanks & Regards
Tony
|
|
|
|
|
Hi,
I'm afraid there isn't a simple answer to your question; here are some facts:
1. csc.exe belongs to a specific version of the .NET Framework i.e. for each version you install you get another csc.exe file
2. you should use the one that goes with your running .NET application (check Environment.Version) or that fits the framework you want to target
3. the .NET versions reside under the Windows folder, in the Microsoft.NET subfolder
4. The current Windows folder is specified by the environment variable "windir" (which typically contains C:\Windows); check Environment.GetEnvironmentVariables()
5. the different versions of .NET inside the "Microsoft.NET" each have their own subfolder, but the naming conventions of these have changed over time.
6. the following links might be useful:
http://msdn.microsoft.com/en-us/library/dc98ytx2.aspx[^]
http://support.microsoft.com/kb/318785[^]
Hope this is sufficient.
|
|
|
|
|
hello, Luc Pattyn
thanks for u r reply to my question
the problem what i faced is in my c# application is i want to make a file to be get executed by calling the cse.exe.
for this what i did is in the code below
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.FileName = "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\csc.exe";
the pproblem is i shfted the application to a new system and the code does not worked thr.
i came to know that the cse.exe was not in that systems C drive...
so want to find how to get the path for the csc.exe fie ...
i think u understood what i exactly mean???
Mikro1980 helped me now with a code
string csc = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()+"csc.exe".ToString();
i think this would help in my case... i am trying on that
any way
Thanks & Regards
Tony
|
|
|
|
|
Sorry, I was not aware of that method. It seems to be exactly what you need, and
I'm glad to have learned this today.
Cheers.
|
|
|
|
|
Hi,
In my application I am reading an image and storing in the byte[], this value is added in the hashtable for accessing in another class, now i need to access the byte[] present in the hashtable and display the image back,
Can any one give me an idea how this can be done,
I tried doing with the following code
byte[] myByteArray = (byte[])htnew["CoalMill1"];
MemoryStream ms = new MemoryStream(myByteArray,0,myByteArray.Length);
Bitmap bmp = (Bitmap)Bitmap.FromStream(ms);
bmp.Save(context.Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
here htnew is the hashtable which has a byte value of the image.
but i get "Parameter not valid" error.
any other ways to fetch the image back from hashtable
Thanks,
|
|
|
|
|
Why do you need to cast the result as byte[] ? Shouldn't it be that already ?
There's no other way to get data from a hash table, the odds are, your data is broken.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
since my appplication requirement is to create a window service and store the image , I am using the hashtable to maintain the image data, but while fetching using the above given code i get error,
I have a doubt like while storing the image in hashtabel i am initailizing the byte to 1024 , will that create any error of this type.
the code is given here:
ie reading from stream and storing as byte[]
Stream remoteStream = response.GetResponseStream();
byte[] buffer = new byte[1024];
int bytesRead;
do
{
readerWriter.AcquireWriterLock(5000);
bytesRead = remoteStream.Read(buffer, 0, buffer.Length);
readerWriter.ReleaseWriterLock();
} while (bytesRead > 0);
now adding the byte[] value in the hashtable present in another class.
ImageServer.ht.Add(strCameraName, img);
Thanks,
|
|
|
|