Software Development Network Logo
  • Windows Forms
  • IE Development
  • Visual C#
  • .NET Development
  • Visual Basic
  • Visual C++
  • Audio and Video
  • Smart Devicet
  • Windows Vista
  • Microsoft ISV
  • VS Team System
  • Game Technologies
  • Visual FoxPro
  • Visual Studio
  • SharePoint Products

Software Development Network >> James_Steven's Q&A profile

James_Steven

Member List

Joos
kcdclan
Nyasha
Peter Aspect
A.Kahn
Zeeina
Bruno N. Souza
Dan Rooney
Bhavitavya B
Natalie276398
jzfredricks
AlexBB
TaiKun
aschaeffer
RMS
WayneW
Buddy Funny
davidMartin
Steve1999
Alexandra5
Only Title

James_Steven's Q&A profile

  • Visual Basic VB.Net Designer Errors when loading

    Hello All, I installed VS 2005 and when I run VB and create a new project, it errors when trying to load the designer for the form I'm trying to view. The error is this: Microsoft (R) Visual Basic Compiler has encountered a problem and needs to close. We are sorry for the inconvenience. This is becoming a pain in the backside! I can't even use it. Any help would be great. Thanks. jb This is a known bug with VB.NET (actually known about before the release last year) along with many...many others.. The lastest set of VB hotfixs reduces but does not fix the problem.. ...Show All

  • SQL Server I need SQL Query Help

    Sir, We are try to insert query like this Insert into Table_1 (smDate,Description) Values ('Thu, Feb 15, 2007 03:00 PM', ' Hai, It's Just for Testing') This is Exact Query about this... We know about MS ACCESS it has Built in function like Format('Thu, Feb 15, 2007 03:00 PM','mm/dd/yyyy HH:MM') But I am new to SQL. I dont know the The Date Format built in function in SQL Server. How can i Insert this Quesry to SQL Table and also How can insert "it's " this type of words into SQL.. Can you help me this is very helpful for my project Thanks With Regards S.Senthil Nathan Senthil: look up CAST AND CONVERT under CONVERT in books online to get a look at date and time formats. The ISO format is f ...Show All

  • Smart Device Development How to get the values from an unmanaged arrays of strings (c++ DLL) in a C# app. using DLLImport.

    Hi everyone. I have been looking to find out for a solution but to no avail. So, I have a c++ DLL (MFC Smart Device DLL) which will export some functions. Some of those functions will return CList lists. Since C# does not understand the CList type/class, my idea is to return an array of strings, actually an array of LPWSTR. Here's the code of my function: __declspec ( dllexport ) BOOL prueba1(LPWSTR msgList[]) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); wcscpy(msgList[0], _T( "blabla1" )); wcscpy(msgList[1], _T( "blabla2" )); return false ; } Under C#, I call this function like this: [ DllImport ( "test3.dll" , CharSet = CharSet .Auto)] public static ext ...Show All

  • SQL Server measure's name can not be same in different cube?

    BY using the SSAS ,I find much problem,can someboby help me. The problem : 1,why measure in different cube can not have the same name 2,where I can modify the partition's ID? 3,where is the profile >2) Why do you want to modify partition ID (it is possible, but I wonder why) BI Studio generates from AN_IMPORTANT_FIELD or AnImportantField the ID "An Important Field". It is total uncomfortable to have spaces in the IDs. Why BI Studio thoughts that it is wiseacre that knows better as the rest Why it doesn't leave ID untouched or doesn't ask for ID of the new being created item It is possible in the AMO to spesify ID at the time of an item creation, but it isn't in BI Studio. What a pity! I want and I s ...Show All

  • Visual Studio Express Editions How to put table inside an RTFBox

    Dear VB Experts, Please help me on my code for putting a table (let's say 4 columns, and rows are dynamically added) inside a richtextbox and also please show how to add data onto it. thanks so much :-)     YaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaY !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! In the beginning HTML looks hard and as you program it becomes easier and easier as the code acquires an HTML vocabulary. Way to go.   Consider using the string builder and "Predicate"  Methods. StartDoument()  StartTable For I as integer = 0 to Row-1 StartRow FillinCell0( YourCell0StringHere) FillinCell1( YourCell1StringHere) FillinCell2( YourCell2StringHere) FillinCe ...Show All

  • Visual Studio 2008 (Pre-release) sample service doesn't work on Windows XP 64

    Hello, I tried to make a windows service that hosts a WCF service. Naturally, I've tried the sample first. It crushes raising an error: System.ServiceModel:Incorrect function at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen() at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener) at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback) at System.ServiceModel.Channels.HttpChannelListener.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.Channels.DatagramChannelDemuxer`2.OnOuterListenerOpen(ChannelDemuxerFilter filter, IChannelLi ...Show All

  • Visual C# What's the appropriate exception with an input string is empty

    I'm working on an API level component (logging) and I want to throw an exception if someone calls a logging method with an empty string (""). I nomally throw an ArgumentException with an appropriate message in this case, but I've began to wonder recently if ArgumentOutOfRangeException wouldn't be a more appropriate choice since the string length is 0 which for my use would not be an valid range. Any thoughts on this For application exceptions, I think you should create your own exception class that inherit from ApplicationException. I don't know if there's "official" guidance but it's my preference to be able to distinguish exceptions caused my application vs. other exceptions. ...Show All

  • Visual Studio Team System Can't execute Team Build - TF30063 error

    Hi, I'm trying to execute a Build on my local machine, but I am getting the following error: TF42056: The build service could not connect to the Team Foundation Server: TF30063: You are not authorized to access http://buildServerName:8080/ I have Team Foundation for Testers installed on my machine. I know that I actually can access port 8080 on the build server because that's where our code lives, and I can access and modify the code. I'm really stuck as to how to get builds working. Can builds only be done on machines that have Team Foundation for Developers on it I hope not, because it wouldn't make any sense that a tester couldn't launch a build so they could run their tests. Any help would be greatly appreciated!! I am at a ...Show All

  • SQL Server How Can i Create a new Custom report item? the report item is extends matrix.

    hi everyone what the matrix's class name where is the matrix's dll Can i create a new class extends the matrix I want to override the matrix's onpaint method. Can i do this why the table not have the column group Hello Younger, I have the same problem and also started a thread regarding customization of existing controls as CRI. Have u gone through the ProgressTracker and PolygonsCRI samples available on net. ...Show All

  • Software Development for Windows Vista Consistent set of components

    Please consider this as a plea for help - not a complaint I just downloaded and installed the newly released .NET 3.0 RC (Release Candidate) as well as the Update for Windows Communication Foundation (KB912817) which has likely nothing to do with WWF, so I am mentioning it here for the completeness sake. In addition, I installed the Visual Studio Extensions for Windows Workflow Foundation RC4, after the RC5 failed to install. Finally, I installed the Hands On Labs from http://wf.netfx3.com/files/folders/documentation/entry4919.aspx Then, I tried to re-create the Lab1 and found that everything behaves as it should, I was able to compile the application with no errors. However, setting the break point does not cause the appli ...Show All

  • .NET Development Search, create or update a record

    Hello, I'm trying to do a search on a dataset and if I find a record matching a value, I want to update the record; If i don't find any record, I want to insert a new. I've the following code: Imports System.Data.OleDb Dim cmd As OleDbCommand Dim dsNR As DataRow Dim cb = New OleDb.OleDbCommandBuilder(da) con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & DbSource & ";" sSQL = "SELECT * FROM [Numeros_Dia] WHERE (Data= '" & DataRelatorio & "')" da = New OleDb.OleDbDataAdapter(sSQL, con) ds.Clear() da.Fill(ds, "Numeros_Dia") If ds.Tables(0).Rows.Count = 0 Then dsNR = ds.Tables(&q ...Show All

  • SQL Server Using Views/Stored Procs in one Db, Data in Another

    I am moving an app from Access 2003 to C#/SQL Server 2005. The Access app has one front end exe and two back end databases. One back end db is for UK users, one for US users. The tables and structures are identical, but the data is different. UK users link to the UK back end, US users to the US backend. (The queries are in the front end) In SQL Server, the view and stored procs will be in one database (KCom), the US data tables in another database (KUS), and the UK data tables in another (KUK). All databases are on the same server. My question is how to let the views and stored procs in KCom know whether to pull the data from KUK or KUS. In the front end app, I use ADO.Net to deal with the SQL Server databases. I have not been able to fi ...Show All

  • .NET Development Connection to SQL Server 2000 fails

    Hi, I get the following exception on the client when I try to connect to the SQL Server: System.Exception: Connection konnte nicht geoffnet werden. ---> System.IndexOutOfRangeException: Index out of range bei System.Data.SqlClient.TdsParser.ConsumePreLoginHandshake(Boolean encrypt, Boolean trustServerCert, Boolean& marsCapable) bei System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner, Boolean& failoverDemandDone, String host, String failoverPartner, String protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean aliasLookup) bei System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlis ...Show All

  • Visual Studio How to get an application instance defined by the method OnConnection of an Addin towards an VS Application ?

    Hi all, I have a problem to get the application instance defined in my addin ex : Public Sub OnConnection( ByVal application As Object , ByVal _ connectMode As ext_ConnectMode, ByVal addInInst As Object , _ ByRef custom As Array) Implements IDTExtensibility2.OnConnection _applicationObject = CType (application, DTE2) _addInInstance = CType (addInInst, AddIn) End Sub I want to get this attribute in an other VS application (ex : Windows Application). In my addin (EVA_CAT) I defined a shared property to get this attribut ex: Shared _applicationObject As DTE2 Public Shared ReadOnly Property AppObjt() As DTE2 Get Return _applicationObject ...Show All

  • .NET Development Just first access, SerializationException: Unable to find assembly

    Hello, I have seen different flavour of this problem in different places, but as far as I concern none of them has a solution for it. I am using Remoting, .Net2.0, and C#. The server components are running as Windows Service. Whenever the service gets started (restart or install) Only the first access to the service throws the following exception. SerializationException: Unable to find assembly The subsequents access are working fine. Any idea why this happens Many thanks, I am not quite sure if I understand you correctly. I am accessing the server component by marshaling the argument of the server methods, this way I only need the proxy object of the server in the client side, not the ...Show All

©2008 Software Development Network