-
- Exposing .Net dll to com client (VC 6.0)
by Selvaakumar
- 3 Replies
- Last post
by Feng Chen - MSFT
- Hi,
I am using two dlls.
//Interfacesdll using System; using System.Runtime.InteropServices;
namespace Interfacesdll { [Guid("E41D6D79-EC67-49a6-8531-D527A644F561")] [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public interface Iinterfaces { int method(int x, int y); } }
//classesdll using System; using Interfacesdll; using System.Runtime.Inter
-
- DateTime.Parse
by jones6
- 7 Replies
- Last post
by jones6
- Hi I was wondering if there was a way to get Dates such as 10/31/08 to parse as 10/31/1908 instead of 10/31/2008 My application takes user input for birthdates and parses it to a DateTime and I often end up with future dates. I thought I would check if there was already something for birthdates and parsing since this seems it should be fairly common before I did all the checks myself.
Than
-
- Best way to display large datasets
by Ron L
- 4 Replies
- Last post
by Ron L
- I have an application (VB.Net, SQL Server) in which users routinely need to display large amounts of data. We are currently getting the data from the database via stored procedures. The data is then loaded into ADO.Net data tables and data sets. The data is displayed using a DataGridView class which uses a DataView as a binding source. We are finding that when we load large amounts of data into th
-
- Microsoft .Net Framework v1.1.4322 Update-service
by Speirs
- 14 Replies
- Last post
by Hapfairy
- Hello,
Until recently my laptop went into stand-by mode whenever i closed the screen (like chosen through properties, energy). But when i close my screen now or want to get my laptop into stand-by mode, i receive the message that Microsoft .Net Framework v1.1.4322 Update-service prevents going into stand-by and that i should shut down this service and then try again. Can you tell me how to
-
- InvalidCastException on a dynamically loaded type to base class
by Steve1999
- 3 Replies
- Last post
by Stephen Fisher - MSFT
- Hello everyone, I'm having some confusing casting exception on a dynamically loaded type. Does anyone see the problem WindowsService (references pluginB): Plugin=Assembly.LoadFrom(¡°PluginA¡±) object obj = plugin.CreateInstance(¡°DerivedClass¡±) AbstractClass ac = (AbstractClass) obj //this throws an invalidcastexception. However, the debugger shows me that obj¡¯s base is AbstractClass. Plug
-
- Bug report for Update KB928365 / XmlSerializer
by Andreas Tanner
- 2 Replies
- Last post
by Erica Mohler - MSFT
- With this update, the code below throws a runtime exception. Without it, it works fine. Can anyone confirm this
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
using System.ComponentModel;
namespace ConsoleApplication1
{
class Program
{
static void Main( string [] args)
{
XmlSerializer ser =
-
- Communication between two webservices
by RWF
- 2 Replies
- Last post
by RWF
- I have two webservices in this layout:
MobileDevice --communicates with--> SOAP Webservice --communicates with-->TCP Webservice
In the MobileDevice, when I call a method in the SOAP WebService, the SOAP method in turns makes a remoting call to the TCP Webservice. Unfortunately I get a "Could not establish connection to network." WebException. I try to trace out right befo
-
- Whats wrong with this Generic Queue?
by Traps
- 1 Replies
- Last post
by Traps
- Whats wrong here When the foreach executes, textBox1 simply displays the current value for txt.key repeated the number of times that MsgQueue.count equals
Example: Each time I push a key on my keyboard I call LogWrite, where txt = the key pushed. If I type "123" then my text box displays this....
1
[txtBox1 is cleared]
22
[txtBox1 is cleared]
333
Where ac
-
- cant save to the db but to the dataset only
by yaniv123
- 1 Replies
- Last post
by William Vaughn
- Hello I am a beginner C# win
I got a bind DataGridView that I have dreg from the Data Explorer My problem is that - when i trying to save the changing the data being saved to the memory (dataset) only and not to the database as well. (On the db property I set the Copy The Output directory: "Copy if newer")
thanks:
-
- Adding and removing event handling dynamically
by aphrodisiac
- 3 Replies
- Last post
by nobugz
- I'm having trouble getting AddHandler and RemoveHandler to work in VB... more specifically, I'm having trouble with the AddHandler half.
Here's the declaration of the handler:
Public Sub Sheet1_Change( ByVal Target As Microsoft.Office.Interop.Excel.Range) Handles Me .Change
As is, it works -- it's just that when I'm initially populating things, the repeated calls to
-
- System.Timer advice
by Steve Jackson
- 7 Replies
- Last post
by Inbar Gazit - MSFT
- Hello all;
I'm using a dll that makes a blocking call. Not that it matters, but it is a Modbus control that goes out to a physical hardware device to read inputs and outputs. In order to deal with this, I put the call to the dll in a system.timer, and have it polling every 50ms (or at least as close as non-deterministic timers can get).
I wan't to notify other objects in my project w
-
- Multiple machine.config files
by CFreeman
- 1 Replies
- Last post
by nobugz
- I need to alter my machine.config file. The problem is there are a bunch of files with that name on my machine. Which one should I edit The .Net documentation just says to edit the one in the runtime install path, but, I'm not sure what path this is. Any help out there
Thanks,
-
- how to return datareader
by San569634
- 4 Replies
- Last post
by San569634
- hi
i am creating a web service for encapsulating my biz logic . I want to return datareader to the application which calls the webmethod (in my webservice). Is it possible to do so
-
- Can someone help me how to load DLL through interface in VB.NET 2005?
by rattlesnake316
- 6 Replies
- Last post
by rattlesnake316
- Can someone help me how to load DLL through interface in VB.NET 2005 Some forums gave references thorugh C# and also a lower VB.NET Version,i don't know to convert in to VB.NET 2005 and some of the syntax from lower version of VB.NET does not work on VB.NET 2005,please help me with this,thanks in advance..
-
- Application domains - out of memory exception
by Vladimir Kovalenko
- 6 Replies
- Last post
by nobugz
- Hi. I have been developing an application that measures performance on concurrent runtime compilation in single and multiple domains. I have a problem with creating necessary number of application domains. As far as I know there is no limit in the number of application domains created. But practically this number is limited by virtual memory allocated. When I execute the following code: static voi
-
- SortedDictionary with custom IComparer weirdness
by ctemplin
- 6 Replies
- Last post
by ctemplin
- Hello, I'm trying to quickly modify some existing code that uses a SortedDictionary. Essentially I want to make sorting optional. So, based on some input, I either instantiate a SortedDictionary with the default IComparer class or one with a custom IComparer class. When using my custom IComparer, I'm getting some weird results with dictionary keys quasi-existing; the dictionary will enumerate thro
-
- web service status
by Lars1346
- 6 Replies
- Last post
by Erica Mohler - MSFT
- Hi,
Been able to create a web reference within my vs2005 project and connect to an external web service. However, I was wondering, does .NET have any means to check the status of the web service I'd like to, before performing a time-consuming, verify that the web service is in fact up and running.
Appreciate any help.
-
- Tcp Listener with low CPU usage
by Andrew McNab
- 3 Replies
- Last post
by Andrew McNab
- I have written an application to be deployed on a machine to run all the time. The component that chews quite a bit of processing power is a thread that reponds to incoming TCP socket requests. It's a simple while loop checking if TcpListener.Pending() is true. I tried putting in a Thread.Sleep(10000) and this basically made no increase in performance. I observe other applications using some means
-
- RDPclient minimize maximize problem
by Moon3000
- 3 Replies
- Last post
by Moon3000
- When I create a RDPClient in fullscreen mode from c#, and then hit the RDP minimize button. I am unable to restore it as all buttons except 'close' are unabled in the taskbar.
Any help appreciated,
Moon
-
- BadImageFormatException with IBM.Data.DB2.dll on 64 bit windows
by tsdora
- 4 Replies
- Last post
by tsdora
- My project is a ASP.NET 2.0 application that connects to DB2 on mainframe using IBM DB2.NET Data Provider (IBM.Data.DB2.dll) Version=8.1.2.1. It works great when run on 32-bit windows. But when I recently hosted the application on 64 bit windows,the DB2 connection just failed with below error: BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from
-
- XML serialization is slower than Binary. Can anyone explain why ?
by Navdeep
- 3 Replies
- Last post
by Sowmy Srinivasan
- I am looking for reasons why XML serialization is slower than Binary Thanks.
-
- Soap Toolkit on Vista : Please help
by lukef01
- 4 Replies
- Last post
by lukef01
- Hi, I am trying to call a web service from classic asp and thought soap toolkit would help. But so far I have not been able to call web service as I get an error "An error occurred on the server when processing the URL" . But the URL is correct. I can type the url (local host) on ie and I can see the web methods. I have a very simple web service for testing purpose that takes tw
-
- Shared configuration file between 2 apps
by ADeveloperNamedTim
- 2 Replies
- Last post
by Feng Chen - MSFT
- I have two applications (one WinForm one WindowsService) that need to share some common settings. Right now we are using the registry to save these settings but would like to move these to an xml file that both can read/write to. From what I have read it looks like the app.config won't work because it is per application. So is my only choice reading/writing from a XML that both apps know about, or
-
- diffrence b/w .net 2.0 and .net 3.0?
by Bhupendra_Singh_4c7760
- 4 Replies
- Last post
by RajasekharCh
- what is .net 3.0 frame work hw it is diffrent from .net 2.0 can we install it on windows xp service pack 2
-
- Attributes in a List<T>, how can i create a new list based on the type?
by sapo
- 3 Replies
- Last post
by sapo
- Hi all, I don't think it would be easy to understand what I'm trying to do, but I'll try my best. I'm trying to write a simple object persistence framework, so far a got good results with single property values, but now I'm stuck with a One-Many relationship. What I want to do is, imagine my class is the following: class Order : SimpleObjects { public Order() : base() { } public Order(string ID)