|
I'm sorry, is your i.q. = -53?
There are thousands of them here.
|
|
|
|
|
In codeproject.com where can i find
|
|
|
|
|
|
If u want to give exact information,then give,not do like this.
|
|
|
|
|
Actually the way Paul reacted wasn't much off of what most people would. Codeproject is not a site ment for people coming and telling what they need and just getting it point blankly. It is ment to give a nudge and let you solve the problem on your own.
GOOGLE is your friend. Use it!
|
|
|
|
|
HI everyone,
I'm new to C#. I'm having problems in connecting to a remote machine that is not part of my network but our company can connect remotely to the machine. I was wondering, how can i code my web app in retrieving the datasource for that machine? Someone told me to use messaging for the 2 machines to communicate to one another. I'm not sure how this is really done. Also we are using a product call Citrix to remotely connect to the other server.
I greatly appreciate this.
sopheap
|
|
|
|
|
This is probably not the right board for this question.
What do you mean by "your network"? Do you mean that it's not on your subnet, or that there is no physical connection between the two? Likely, you mean the first (subnet), because it's rare in this day that your computer isn't connected to the Internet.
Can you connect to the remote machine by Citrix? Try the Remote Desktop application to connect to the machine (it does exactly the same thing as some versions of Citrix). If you can connect, there's a physical route, and all you should need to do is ensure an open port, correct credentials and the right connection information.
If you can't connect (i.e. -- ping, traceroute, telnet, etc.) from your machine to the server by Citrix, you're either not physically connected (rare), or some network hardware between where you are and the destination is not bridging/switching/routing your packets. Talk to your network people.
|
|
|
|
|
Thanks Stephan,
But I'm working on a C# web application. I can not remotely connect to the server I need to access only by login into Citrix will allow me access. My application calls the database that Citrix has access to by giving the datasource, userid and pw to oracle. I know how to to call my development database but the production has to go through Citrix. If I can tnsping my datasource, i wouldn't really care but since I can't and the only way to connect to the production is through citrix.
Sopheap
|
|
|
|
|
Sopheap,
If I understand what you're saying, and it's all true, it means that there's a firewall between development and production. This is normal, especially if you work in finance or health care. If you can RDP from your desktop to production with Citrix, there's obviously a connection, but your Oracle access is blocked. I don't know what protocol or ports Oracle uses, but I'm sure that's easy enough to find.
It sounds like you have 3 options:
1. Get the network people to open your ports. If they set up a firewall, they may not want to do that.
2. Tunnel through RDP. I haven't looked at the protocol, but based on what it's transporting, it's gotta have a huge payload. Stuff your Oracle access packets into the payload space. You'll need a tunnel endpoint application running on the production server for this to work.
3. Run your application on the server.
Option 1 is really the only good one. If someone blocked your access to the Oracle server in production, it's probably for a good reason. If you can't convince them that your application is worthwhile a hole in their firewall, they probably won't take kindly to any other means you use to access their data.
|
|
|
|
|
Thanks again for your response Stephan.
well in order for me to access production with citrix, i have to login to a webpage to get access to the citrix portal. once i click it, it opens a connection to a desktop. once i'm on that desktop, i can remote desktop to my production database.
lets say my production web server has my .net application and using the ip address for the production database for the datasource. If my web server is connected to citrix which has access to my production database remotely, will my application work?
Someone told me, that I would have to write a program using msgbuff.dll to dispatch the listener. I'm not sure how that would work. I'm new to this Citrix enviroment. I never heard of it until here. Everything we support here is all at a secure remote location.
Thanks for your help. I greatly appreciate.
|
|
|
|
|
Yikes! There's no easy solution to this.
It sounds like msgbuff.dll is essentially your RDP tunnel endpoint. I've never used Citrix to this extent; you need a real Citrix expert for this.
From what I understand of Citrix and RDP, here's what happens:
When you go to that page and login to something, a component on that page spawns a local RDP client after authentication. You get the remote window, and the RDP connection ferries your mouse moves over and the resulting screen paints back. There's a lot of optimization and such to make it manageable.
The web server doesn't act as much other than an auth provider. It's unlikely that any connection to the web server is going to do you any good other than maybe authenticating your requests. A good API will have a nice .NET web service set up for this, so you should be able to mount a SOAP wrapper locally to authenticate. In any case, the web part of this is probably the least of your worries.
If my view of this is correct, this DLL (msgbuff) is esentially going to wrap all your requests, ferry them over some secure protocol (I'd be surprised if it wasn't RDP or a derivative thereof), and provide you with a listener hook for responses. Depending on how that's written, it'll make it easier or harder to mangle your Oracle packets to match the API. What you're going to end up with is an Oracle endpoint that looks like a database to your application, but really just slurps the incoming packets, ferries them over the secure tunnel, and pumps back anything it gets from its listener.
The good news is that it's not a horrible application to write. The bad news is that you're going to need to know both the msgbuff.dll API and the Oracle protocol pretty well in order to get it to work. If you have any competency in Win32 C (not MFC or ATL or anything), write yourself a good, small driver to do this. I'd assume that msgbuff.dll isn't a .NET DLL, and both marshalling data to that and packet rearranging are so much easier and neater in C than in any managed language I've ever seen. If you pull it off, your job security is nearly guaranteed.
I'd show this thread to the person who referred you to msgbuff.dll and ask them if it sounds reasonable. Short of that, find someone who knows Citrix.
|
|
|
|
|
http://msdn.microsoft.com/netframework/downloads/samples/bclsamples/[^]
I can't get these sample to compile... is this an issue with my install or are these guys just screwed up?
.............................
There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life.
Fiat justitia, et ruat cælum
|
|
|
|
|
Why can't you get those samples to compile?
Are you using a compiler of some sort?
Is it giving you errors?
Are you sure they're not compiling secretly behind your back?
--
I've killed again, haven't I?
|
|
|
|
|
The project's won't compile VS 2005 or VS 2003 (professional versions...) anyone tried?
Specifically the Managed Explorer in Visual Basic.
If they have on in C# that would be more better...
.............................
There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life.
Fiat justitia, et ruat cælum
|
|
|
|
|
These samples were written for the early betas of VS 2005.
Get the up-to-date version from MSDN[^].
--
I've killed again, haven't I?
|
|
|
|
|
Hi everyone,
I am trying to create a single instance application. What I have been able to do so far is to prevent more than one instance of the application to run (I have used a Mutex). However, what I would like to do is to bring the already running application to the foreground whenever someone is trying to run another instance of the application. In other words, if I already have an instance of the application running, and I try to run the executable again, I would like to see the running application pop up in front of me.
Here is the code that I have so far:
static class Program
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main()
{
// These variables will be used to provide single instance functionality
bool blnExclusive = false; // must be initialized
Mutex SingleInstanceMutex = null; // must be initialized
// Try to create mutex
try
{
SingleInstanceMutex = new Mutex(true, "My Mutex", out blnExclusive);
}
// Catch exception and exit application
catch
{
Application.Exit();
}
// If no other instances exist, start new application
if (blnExclusive)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new myFrm());
GC.KeepAlive(SingleInstanceMutex);
}
else
{
//TODO: try to bring existing instance to foreground
}
}
}
Any help is appreciated, thanks.
|
|
|
|
|
|
:-DI have been investigating Threads and their usage.
Is there anyplace (book or blog, etc.) where I can find basic information
about setting them up and controllng them.
I tried the C# examples at Microsoft, I would like something that gives more examples of usage-from basic to intermediate.
Thanks for any help.
Al
adolph.evangelista@ge.com
|
|
|
|
|
Try looking at the Articles on www.codeproject.com
|
|
|
|
|
|
Hi,
How could i highlight the selected row till i select the next row of the datagrid in c#
Thanks in advance
|
|
|
|
|
Hi All,
I have a requirement in which i need to make a web request and store the response in an excel file. I was able to do the whole thing, but the problem is that the thread which creates the Excel File(Excel.exe), stays alive.
Please help me, I create the Excel Application using, Excel Object Library Version 11.
Also I need to show a message in a label box stating the status, something "Processing request N of X...", but the label box doesn't show until the whole process completes...
Thanx in advance,
Joe.
|
|
|
|
|
Joe,
Are you closing the file and quitting Excel when you're done? Unless you do, the Excel process will stick around forever. There's also an option somewhere in the Excel API to let you scavenge an already-running excel.exe process. Just be careful using that -- if you have a UI open, you run that, then you forcibly exit through code, the UI you opened will magically disappear.
As far as the status message, how are you updating it? What's the event that's causing the update? How are you writing it? Are you being careful not to update the UI from anywhere other than the UI thread (you should never do that)? Is your Excel thread blocking?
Show us some code, maybe we can help.
|
|
|
|
|
Hi YoungJoe,
Try using following for quitting excel and cleaning up.
You need to call this method for all your excel objects (worksheet, workbook, etc...)
System.Runtime.InteropServices.Marshal.ReleaseComObject (yourObj);
Hope, this helps
Sincerely,
Elina
Life is great!!!
Enjoy every moment of it!
|
|
|
|
|
Hello,
I have an application where i need to select a data from and XML file and assign this data to a variable. I would like to create a kinda .ini or .cfg file where the next time the user uses the application it automatically load the previous choice so that the user doesn't need to reselect that same data. of course if a different data is needed then it should overwrite the xml.ini file which only contains the selected XML data.
Any suggestion? Thank you
Donkaiser
|
|
|
|