|
Hello,
If I call a (pure) C++ function from C# (using P/Invoke), and that function throws an exception, how will it be received in C#? Would it be wrapped into an object of Exception or one of its descendants?
Thank you.
|
|
|
|
|
I doubt it would be in a form that you'd hope, unless it's a COM exception. But yes, I imagine you'd get an exception that includes any message
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I tried it real quick. On the C# side I get a
System.Runtime.InteropServices.SEHException
Message == "External component has thrown an exception."
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
hello all
How to call another compiler(ttxp compiler for TTCN3) from within c#
and pass the arguments to that compiler from c# for it's execution
thanks
|
|
|
|
|
Process.Start.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
My console program use Marshal.GetActiveObject to get MS Outlook instance that I run with Method Process.Start. (Because I need to add some command-line parameters).
This program works correctly when I run at server. But when I try to use ASP page to run this program, GetActiveObject doesn't work.
In my program, I try to deactive Outlook window so I can use GetActiveObject. But all window handle that I got from my program at server is Null. I think this may be the cause of problem.
What should I do to solve this problem ?
|
|
|
|
|
ASP, or ASP.NET ? We have forums for either.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
ASP.NET just a caller to my console program. (Using Process.Start) But the problem is in my C# console program.
|
|
|
|
|
Hello,
I have done remoting on lan only, now i need to update this on web.
I want to connect the remote computer on web but i dont know how to make connection.
I have the mac address of the remote computer, is it useful to make the connection?
Will you please help me out or can you give me some idea about it?
It is desktop application.
Thank you.
|
|
|
|
|
hello krinaljariwala
window aplication and Webapplication is as a whole diffeent concepts.
window aplication are standalone applications....
Webapplication needs the server and at different threads the pages are on the destop of clients.......
mac address of the remote computer ??? how will u be sure that address
on loging we get an address which is temporary and after some time if congestion happens the n/w address is changed....
Thanks
Tony
|
|
|
|
|
See What i need to do is from my pc i want to connect to the another pc which is on web and i want to access that pc remotely.
Now i dont have any idea abt the connection of these two computers.
And which address is needed either mac address or ip address to make the connection.
|
|
|
|
|
A MAC address wont help you on the internet...
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
their kung-fu is weak
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
|
|
|
|
|
Hi,
I need to develop a online whiteboard application. I have only little knowledge about networking. Please give me the concept and coding technics. Will remoting is useful or socket.
Regards,
yp
|
|
|
|
|
hello ypki
on which language u r going to develop the application
C# ???? if so see the link below
http://www.webtropy.com
Thanks
Tony
|
|
|
|
|
hi Tony,
Can you please explain some more deeply about the whiteboard application?
It require lot of complicated process like serilisation, network streaming..etc..
regards,
yp
|
|
|
|
|
hello ypki
see the link below
http://rilw.itim-cj.ro/98/Rado-pap.html
Thanks
Tony
|
|
|
|
|
see also this
http://www.codeproject.com/KB/dotnet/csharpwhiteboard.aspx
|
|
|
|
|
using System.IO;
using System.Net;
HttpWebRequest webrequest = (HttpWebRequest)WebRequest.Create("address here");
HttpWebResponse webresponse;
webresponse = (HttpWebResponse)webrequest.GetResponse();
StreamReader streamr = new StreamReader(webresponse.GetResponseStream());
string WebPageStr = streamr.ReadLine();
streamr.Close();
webresponse.Close();
Using "Traffic interceptor" I can see that webresponse.GetResponseStream() captures the whole page. But I need a part of it.
|
|
|
|
|
You'd have to parse and chop up the page, pages are only ever served complete, AJAX notwithstanding.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I know nothing about AJAX and etc.
It's just a "C# Windows Application" which should download about 20% of one web-page for further data parsing. It already works via GPRS, and it is too expensive to download the whole page.
For example: if you are using Internet Explorer, you can push the button "Stop" when the web-page is loading. And what we have? A piece of this web-page, of course.
I need something similar.
|
|
|
|
|
How to crate OPEN & CLOSE for NEW Programer.cs. I cannot how to get for new Program.cs. What/How to get for New Projent ---> Open Project --> Open File from Recent Project --> get new code ???.Is easy but I cannot to get this !!!Cannot how to work from Recent Project
Thanks!!!!!
|
|
|
|
|
i think u can implement this by a queue/stack like data structure////
with some search performed in the windows registry (if ur OS is Windows)
|
|
|
|
|
Hello, I need help with ToUnicodeEx function from user32.dll.I'm working on keyboard hook and I want to get char from virtual key code. For this issue I'm using ToUnicodeEx function from user32.dll. But I'm having a problem with dead keys. I'm using Czech keyboard layout and when I want to write some of the czech char which is composed by "line mark" which is clasified as dead key and some regular letter. And when I write "line mark", use ToUnicodeEx in my hooks, it automaticly writes two "line marks" instead of waiting for next input. I really don't know why. Also I tried to use MapVirtualKeyEx instead of ToUnicodeEx and it was fine, but it returns me wrong char for special chars. Thanks!
|
|
|
|