|
i have a web service and when it get the ID it talks to Db and get the relevent infrmation, my application also need to get this information at the same time, (infomation relevent to the ID got by the web service)can any one suggest a way for this problem
|
|
|
|
|
What application ? What's the relationship here ? You can't do what you want to, unless you create a network connection between your webservice and your application, or your app exposes a webservice somehow.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
both are in the same system but they are not interacting with each other,the web service is used by the mobile device and it talks to Db through web service,once it get the id as an input,
my desktop application wants to monitor the user who enterd the id to mobile device and keep records about the user.
|
|
|
|
|
actually what i want is ,when the mobile device call the web service the web service should send the information to ny desktop application as well as the mobile device
|
|
|
|
|
You have a design problem, your desktop app has no association with your service. I would add another interface to the service to be used by the DT app that sends the monitored information.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Yep, and like I said, you need something listening on the desktop side to do that. Do you REALLY need that, or would it suffice for the desktop app to show data from it's own calls to the webservice ? If you need it to update itself, what if it called the webservice every minute to find out about any new data ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
thanx,as you says i have to create an interface to the web service isn't it? i don't want to call the web service diectly, instead i just wnat to get the infromation which got by mobile device,
i tried to achieve this by creating a tcp client in web service and creating a server scoket in my DT app. when the service is called it writes data to the socket in the DT app, do you think this is possible and is there any disadvantages?
|
|
|
|
|
If your app can call the webservice to announce it's IP address, then you could set up a TCP/IP connection directly. I still think polling a webservice is a better idea.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
Is there any open source SMTP server written in C# with the below functionalities:
1. Receive mails from SMTP clients
2. Queue in any medium (DB or filesystem)
2. Delivering of mails (mentioned in to address)
It would be great if you can help me to find one . Most the open sources i came across does not support delivering of mails.
|
|
|
|
|
Tiger456 wrote: Most the open sources i came across does not support delivering of mails.
Why do you need this ? You can just send mail with 3 lines of code using your ISPs mail server ( and any server you find, is going to need to do the same ).
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: Why do you need this ? You can just send mail with 3 lines of code using your ISPs mail server
Yes i agree with you. But my reporting person need in this way. As we are are sending bulk mails to customers
|
|
|
|
|
i use to be a java , j2ee , csp , php programmer
currently start using c sharp
i know that asp is a server scripting language.
currently im building a standalone program
and i need to build a olap grid
c sharp datagridview bring a lot restriction
however html grid view give me the full functionality of it.
with asp integration my grid will be more interactive
somehow i find it a bit difficult to integrate that asp in the c sharp
without put it in iis server.
how can i solve it ?
if that is impossible ....or too hard since it is a sever scripting language
should wpf be the another solution for this?
|
|
|
|
|
1 - we have an ASP.NET forum
2 - ASP and ASP.NET are two different things
3 - No, you can't run ASP.NET without IIS, in the same way that you couldn't run PHP or J2EE without a web server, surely ? However, you must be very confused, b/c the C# grid is at least as powerful as the ASP.NET one. I'd say the problem is that you're looking at the wrong class.
WPF has next to no grid support, I am just struggling with that, myself.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
em... thanks for your guidance
your reply have been very helpful to me.
it would be great if scripting language can mix with standalone program.
so other code can combine to stronger combination since every language have their own weakness.
|
|
|
|
|
IN one project they used appsettings 4 Msn live search.In my project they asked to use MSN but it's settings
so how to define appidsearch in settings.They didn't use the add key
Thanks
|
|
|
|
|
mkalantri wrote: In my project they asked to use MSN but it's settings
Is ur question is complete?
Cheers!!
Brij
|
|
|
|
|
Dear all,
I had been using serial communication for my device to talk to the PC. But these days, I have decided to replace the serial com with usb and I have bought a serial to usb converter for that. But I don't actually know how to interface that converter with my C# code. Previously I worked with C# code for interfacing with HID class device, but the present device I am using seems not to be configured as HID. I tried with it's product and vendor ID to communicate with it from my previous hid software but failed.
Please provide me some suggestions regarding this. If you have any code samples or link, please share
with Thanks....
|
|
|
|
|
If your USB to serial converter is properly installed it will appear to your application as a serial port (that's exactly what it's for). You shouldn't need to change anything in your code except the COM port number.
A serial port is not an HID.
Phil
The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.
|
|
|
|
|
Hi guys,
I am doing a per thread singleton, I want to know if the objects are the same or not by comparing the addresses of the references. How do I print the address of a reference?
Thank you in advance!
|
|
|
|
|
I'm not sure that you can, although C# does support pointers in general, you're better off making sure your objects have a unique Id you can compare.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I guess I'll just implement the GetHashCode method for my class. Thank you for your reply!
|
|
|
|
|
If you just want to check if two objects refer to same location in memory, then use the Object.Equals method.
C isn't that hard: void (*(*f[])())() defines f as an array of unspecified size, of pointers to functions that return pointers to functions that return void
"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live." - Martin Golding
|
|
|
|
|
Hi, thanks for your answer! I dun think I can use Object.Equals . Because I want to know the object deleted in the Uninitialize() is not the same; I do not have 2 objects to compare in the Uninitialize() , Uninitialize() can be called multiple times, each time for each thread for my per thread singleton. Your answer is useful to me in the future, anyway. Thanks again!
|
|
|
|
|
Wong Shao Voon wrote: I want to know if the objects are the same or not by comparing the addresses of the references.
if (object.ReferenceEquals(object1, object2)) ...
Wong Shao Voon wrote: How do I print the address of a reference?
You could get a pointer to the object, convert the pointer to an IntPtr, which you can convert to an Int64, and display the value. However, you either would have to keep the object pinned (which is bad for memory management), or continuously update the display to show any changes, as the garbage collector can move the object at any time.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thanks for reminding me that the addresses do change, due to GC.
|
|
|
|