|
Hmph ok....
What happen if is another C#.EXE programme that using the dll file.
The DLL edit and compile is 100% success
But in Another programme i copy the new dll over can't seem to work as well
KaKaShi HaTaKe
|
|
|
|
|
Hi,
I am working on ISO 8583-1987 standard. The problem is that my client is sending an XML file and I have to parse it in ISO 8583-1987 standard. Can anyone help me in this regard coz I have only theoritical knowledge of ISO 8583 and don't know how to practically implement it. Basically I have problrem while using bitmaps. I am not able to understand how to implemnt them and how they work.
Thanks in advance.
modified on Wednesday, February 25, 2009 1:06 AM
|
|
|
|
|
If you know the standard, what is the issue in parsing the XML file? You use classes in System.XML[^] to work with XML data.
|
|
|
|
|
Well, may be a bit very late, but i just came accross a project on sourceforge: niso8583
It contains sources fro building iso 8583 messages from xml
Have no idea whether it will help you,
Greetings
astrovirgin wrote: I am working on ISO 8583-1987 standard. The problem is that my client is sending an XML file and I have to parse it in ISO 8583-1987 standard
Where is the glue that glues together all the code snippets on The CodeProject to the ultimate solution, so I never have to work anymore?
|
|
|
|
|
Hi,
I have used the following code for Tcp client server communication ..
It works well...
I want to do the same for the Udp also...so i replaced Udp instead of Tcp...
It gives me the error:
The type or namespace name UdpListener could not be found(are you missing a using directive or a assembly reference)
Code for tcp server
using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Diagnostics;
using System.Runtime;
using System.Text;
public class Server
{
public Server()
{
}
public static void Main()
{
try
{
IPAddress ipAd = IPAddress.Parse("192.168.1.32");
TcpListener myList = new TcpListener(ipAd, 8006);
myList.Start();
Console.WriteLine("The server is running at port 8006...");
Console.WriteLine("The local End point is :" + myList.LocalEndpoint);
Console.WriteLine("Waiting for a connection.....");
Socket s = myList.AcceptSocket();
Console.WriteLine("Connection accepted from " + s.RemoteEndPoint);
byte[] b = new byte[100];
int k = s.Receive(b);
Console.WriteLine("Recieved...");
for (int i = 0; i < k; i++)
Console.Write(Convert.ToChar(b[i]));
ASCIIEncoding asen = new ASCIIEncoding();
s.Send(asen.GetBytes("The string was recieved by the server."));
Console.WriteLine("\nSent Acknowledgement");
s.Close();
myList.Stop();
}
catch (Exception e)
{
Console.WriteLine("Error..... " + e.StackTrace);
}
}
}
I replaced UdpListener instead of TcpListener...
Is that right?
Code for Tcp client
using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Diagnostics;
using System.Text;
public class Client
{
public Client()
{
}
public static void Main()
{
try
{
TcpClient tcpclnt = new TcpClient();
Console.WriteLine("Connecting.....");
tcpclnt.Connect("192.168.1.32", 8006);
Console.WriteLine("Connected");
Console.Write("Enter the string to be transmitted : ");
String str = Console.ReadLine();
Stream stm = tcpclnt.GetStream();
ASCIIEncoding asen = new ASCIIEncoding();
byte[] ba = asen.GetBytes(str);
Console.WriteLine("Transmitting.....");
stm.Write(ba, 0, ba.Length);
byte[] bb = new byte[100];
int k = stm.Read(bb, 0, 100);
for (int i = 0; i < k; i++)
Console.Write(Convert.ToChar(bb[i]));
tcpclnt.Close();
}
catch (Exception e)
{
Console.WriteLine("Error..... " + e.StackTrace);
}
}
}
What changes should i do to make it work for Udp ?
Please help with this....
|
|
|
|
|
Like TcpListener , there is no class called UdpListener in framework. You have to use Socket class with ProtocolType.Udp set. See here[^] if it helps.
|
|
|
|
|
Hi,
I am trying to convert XML to HTML using XSLT2 transformation. As I need some regular expression I used XSLT version 2. But my C# application through following exception:
“Cannot find the script or external object that implements prefix 'http://www.w3.org/2005/xpath-functions'..”
Please advice...
Thanks,
HH
|
|
|
|
|
Best way is to search with the error message. See here[^]
|
|
|
|
|
The reason you're hitting this is because .NET doesn't support XSLT2.
|
|
|
|
|
Do we have any alternate...
|
|
|
|
|
|
Thanks..
|
|
|
|
|
hi.I had a question about using vb and c# in one solution. assume i have 2 projects in one solution one in vb and the other one in c# and i want to call one of these projects in another one is it possible?
thanks.
|
|
|
|
|
yes thats why Microsoft developed CLR
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
i know why Microsoft developed CLR.my question was another thing , i want to know what should i write in my project which is in vb to call a function in another project which is in c#?
if u help me that is very kind of u.
|
|
|
|
|
just use as normal, add reference of c# project in the vb project and all goes same
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
Hi all,
I am looking to process images (acquired from video) in C#, and am in need for "set of tools" to let me do it. I need to process image - basically to some contrast and smoothing operations, edge detection, blob analysis, etc. I looked at AForge, and while it's nice and easy to use in C#, it doesn't necessarily fit the bill.
What else is out there? It needs to be comprehensive, well documented, preferably there is some kind of support for it, and does not need to be freeware.
While it would be nice that solution is C# library, it doesn't have to be - as long as I can interface it with C# (API, etc.) it will do.
Thanks a lot!
|
|
|
|
|
|
I wrote a series of image processing articles to create a C# library, it's right here on code project. There's at least one other image processing article, that seeks to teach less, but does more than mine did, so you should check both.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi all,
How could I transform
\"C:\\Documents and Settings\\Administrator\\Local Settings\\Temp\\image0.jpg\" to
"C:\Documents and Settings\Administrator\Local Settings\Temp\image0.jpg"
P.S This is a string inside of tag. The \\ in file path made it failed to locate the .jpg file.
Thanks,
modified on Wednesday, February 25, 2009 12:12 AM
|
|
|
|
|
If its a string then you can use replace command.
1. Replace \\ with \
2. Replace \" with "
i hope it will work in most of the cases.
|
|
|
|
|
Thanks for the reply.
aaCog wrote: 1. Replace \\ with \
The question is how should I represent
\\ in
string.replace("\\", '\' )
without escape sequence? Same thing with \"
|
|
|
|
|
LiYS wrote: string.replace("\\", '\' )
it wont work, either both params are type of string or char. No way for one string and another char
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
string saves \ as \\, so I dont think you can change it in a string variable however if you gonna write in text file or displaying in textbox or anyother control then you can try with string.Replace("\\\\", "\\")
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|