Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Really not sure what your problem is with this I think VolteFace and Squirm explained it clearly but here you go: using System; namespace ConsoleApplication1 { abstract class item { public float getprice() {return price; } public int getquantity() { return quantity; } public abstract int getounces(); public abstract void setounces(int oz); private float price; private int quantity; }; class pepsi: item { public override int getounces() { return ounces; } public override void setounces(int oz) { ounces=oz;} private int ounces; }; /// /// Summary description for Class1. /// class Class1 { /// /// The main entry point for the application. /// [sTAThread] static void Main(string[] args) { item someitem; someitem = new pepsi(); someitem.setounces(20); Console.WriteLine(someitem.getounces()); } } }
  2. If it's a .Net application you will need the runtime installed for your application to run at all.
  3. MFC Applications are not .Net applications and do not use the .Net framework. However a .Net application can link to the MFC libraries - however this means you are potentially coding against two class libraries with overlapping areas of functionality.
  4. If the client and server are both on the same network then then you should be able to communicate via sockets without any problems. If the firewall supports NAT then it should work without any code changes. If you are using HTTP requests search in the help for the WebProxy class - this will make things pretty easy. If the proxy is either SOCKS 4 or SOCKS 5 then I suggest having a look at http://www.mentalis.org/soft/class.qpx?id=9 as they have a nice SOCKS class you can use.
  5. Could you show us the code in question?
  6. Is Label1 displaying anything at all? If not you will get the error because an empty string canot be converted to an integer. Use the Try / Catch suggestions already given.
  7. what callback function?
  8. in that case use public const int C = 0x0F;
  9. Looks like the server doesn't have the framework installed (or it isn't registered properly) If you look on the webserver is there a folder \Microsoft.NET\Framework\ ? if so run the aspnet_regiis.exe /I utility from that folder - if not you will need to install the framework on the server.
  10. In that case you would need to speak to him about opening the relevant ports to allow you application to comunicate through the proxy.
  11. Does the web server have the .Net framework installed? If you open the page in IE and do a view source does the source contain lots of tags?
  12. IIRC the dll will use the default config file name for the calling application - if from an exe the app.exe.config , from asp.net web.config
  13. The class file is compiled to a DLL that is being accessed from a Web application?
  14. You could just use arrays. private void CopyArray(byte[] pData) { byte ix = 0; byte[] buffer = new byte[100]; for (int i=0;ibuffer[ix++] = pData[i]; } any reason why you need pointers? If so you can mark the code as being unsafe and pointers can be used.
  15. C# doesn't have macros. You could declare that as a constant though. i.e. private const int C = 0x0F;
  16. Have you tried running ICQ from behind a firewall? Most games will require the firewall to have specific ports opened to allow this. IF the only connection to the internet is a Web Proxy ICQ, IRC, and just about every game will fail to connect. Who installed / manages the proxy on the network?
  17. If the webservice is going to be located on a remote machine then every method call will involve a network round trip - this most definately will incur performance overheads. What kind of functionality is going into this webservice and does it require access to server side resources? If not it may be more sensible to put some of these functions into a DLL that can be shared between the applications.
  18. Works with either classes or structures
  19. What is the config file named. For web apps it should be web.config
  20. It's not going to be easy using raw sockets unless the proxy will support port forwarding. It may be worth looking at web services as an alternate method.
  21. What kind of server are you attempting to talk to? The problem is that if the Proxy is required to access the internet you will only be able to use protocols it supports.
  22. The client is behind a proxy, but the server is not. That correct? Is the proxy just proxying web access or does it do NAT / SOCKS proxy as well?
  23. Depends on what you are converting ;) e.g. sum = CDbl(TxtListNumBooks.Text) * 0.1 * CDbl(TxtListNumDaysLate.Text) would be better written as sum = Double.Parse(TxtListNumBooks.Text) * 0.1 * Double.Parse(TxtListNumDaysLate.Text) while CStr can usually be replaced with the .ToString method. also DirectCast can often be used as a more type-safe version of CType. Also try and avoid advertising Warez
  24. You need the VB6 controls installed (pretty much means VB6 installed). The upgrade wizard is pretty much useless though - search this forum for phrases like 'menace' and you will see what I mean ;)
  25. What language was the console app written in?
×
×
  • Create New...