Joppe Pelarn's Q&A profile
Visual C++ A problem of CComUnkArray::Add() in the atlcom.h
Hi all, The excerpts of the function look like this : DWORD dwCookie = 1; for loop () { if (condition match) { return dwCookie; } aiwdwCookie ++; } Look! What is aiwdwCookie I think this is a bug of atlcom.h. Could you help me to identify this issue Ah! I forgot to add the product version. I am using Visual Studio 2005 Professional. (Visual C++ 8) ...Show All
Visual Studio Express Editions Starter Kit won´t start
Hi all, I still enjoy my first steps in Visual Basic 2005 Express. Now I’ve tried to run the Starter Kit "WebLogAnalyzer" with F5 after opening it with NewProject but it won’t start. Whenever I tried it there comes the message: "There where build errors. ...". Does anybody have an idea thanks’n greets, VBFan ReneeC wrote: I don't believe you installed the original kit properly, or if you did, part of it have been deleted or modifed... Hi ReneeC, thanks for your answer. I’ve read that one should find ReportViewer.exe at the following location: C:\Program Files ...Show All
.NET Development Accessing generics from all over the application
Hello, My application has got a generic list in the service.vb in the web service with following code: <WebService(Namespace:="http://howto.com/")> _ <WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Public Class Service Inherits System.Web.Services.WebService Dim Customer As New System.Collections.Generic.SortedList(Of String, Customer) Dim CusKey As String ---- The Customer class in the Customer.vb looks like: Private mName As String Public Sub New (ByVal mName As String) Me.Name = mName Public Property Name() As String Ge ...Show All
.NET Development How do I retrieve new primary keys after inserts?
Hi, I am relatively new at ADO 2.0, so please forgive the simple question. I add some rows to my datatable in memory, but without trying to assign primary keys in the rowid column. In the datatable, the rowid column is null for all the new rows that I add. Eventually, I use a dataAdapter.Update(table) call to update the database, which is successfully updated. But now the problem arises... I don't know how---for those new rows that were just inserted into the database---to read the new primary keys (generated by the database) back into the correct rows in my datatable (using a dataAdaper if possible, using plain SQL if not). I don't wa ...Show All
Visual C# My code editor
I'm trying to make a html/javascript/css... CODE editor. I tried to use rtf control, but it is too poor and hard-to-customize (scroll bars bugs and too much...). I want know if there are a better option to do it. Some samples Thanks a lot! www.codeproject.com has a syntax highlighting text box in c++, I used it in a Python IDE years and years ago. That's probably a good place to look for a C# alternative, but I don't know for sure that there is one. ...Show All
Visual Studio Express Editions debugging not working
i'm using VC++ express edition. I was trying to debug one of the examples that come with the help system. but even after setting breakpoints the program doesn't break at the particular break points. it was working fine a couple of hours ago. i tried debugging the same program that i debugged a couple of hours ago. even tht wouldn't work. i don't know if this is a bug in the vc++ .. but its really bugging me. i've been trying for the last hour to debug the program and its not working. thanks in advance... hello; am trying to port an application wich works on Mingw compiler version to win32 on VC++ I'm trying to build a GTK ...Show All
.NET Development Performance question
Lets say I need to retrieve around 3000 records from a server database (LAN). Now, on the form there are some record filtering options. My question is: do I fetch all the records at once, and filter data based on user selection, or should I pull data from database whenever the user changes filtering options And another question: since these are read-only data, then the choice for returning data should be datareader. But if I choose the first option (fetch all data at once), then how can I filter data, since when I retrieve data with datareader, I always put data in arraylist, and as far as I know, arraylist data cant be filtered Thank ...Show All
.NET Development could any one help in sovling a default key for button
my question is that when we click on "enter key" the first button in the form executes.how to over come this.i want the default "enter key" to 2nd button. The answer to your question depends on the kind of application you are building. If it's a Web app using ASP.NET, you should post you question in that forum. If it's a WebForms application, then the question should be asked in that forum. .a ...Show All
SQL Server Using stylehseets on reports
Hi, Is there a way i can use class and stylehseets on "reports" not the report viewer or report manager It is very tedious to provide entire formatting for each textbox field on the report. Thanks. Goto report server folder and modify the CSS file according to your requirement. <<ReportServerFolder>>/Styles/{HtmlViewer,SP_Full,SP_Small} ...Show All
Visual C# c# colordialog custom colors save
Hello, Is there some way to save and restore the custom colors in a colorDialog in a Windows Forms project When I look in the ApplicationSettings's PropertyBinding pop-up for the colorDialog, those custom colors are not there. Thanks. The ColorDialog class exposes a property called CustomColors which is an array of integers that represent the colors in question in an ARGB format. Worst case you could save these values manually after use of the ColorDialog and then reload them later. ...Show All
Windows Forms Newbie staff VB.NET
Hello, I am quite new in the .NET world and have some general questions for you guys: 1) Can i program Office 2003 with VB.NET If so , what is the tool that i need to use Can you please refer me to samples 2) Can i perform operations on Filesystem objects, create icons and other staff (that i used to do in VBscript) IN vb.net 3) Can&nb ...Show All
.NET Development Creating a REAL Object
Hi all, I've a question on Object creation. object obj = new object(); Will there be any sort of heap memory allocation for the above statment If yes what will be the contents of the object Thanks, Suresh. The answer is yes. This is the IL for the instruction: .entrypoint .maxstack 8 L_0000: newobj instance void object :: .ctor () newobj creates the object on the garbage collected heap. ...Show All
Visual J# java (J2EE 1.4) convert to J#
Hi, I want to convert my application in java (J2EE 1.4) to J# with minimum changes. Where can I get the script Thank's Alexei (I have tryed JLCA 2.0, 3.0 and it gives me about 100,000 errors becouse it convert to C#. I don't have a time for working on errors. I read that Java can be converted to J# with minimum errors.) Generally my experience doing this always leads me to running the J2EE code under Object Web or JBoss's free J2EE server and building either a webservice or RMI invocation layer to bridge the .NET code. This does assume that you have a good MVC design where you can easily seperate the backend J2EE components from t ...Show All
.NET Development getting at the connection string
Hi I have added an app.config file and put my connection string into it. below is the content of the app.config file. < xml version ="1.0" encoding ="utf-8" > < configuration > < connectionStrings > < add name ="DatabaseConnection" connectionString ="Data Source=ICWSQL2K;Initial Catalog= HACardio;user id=username;password=password;" providerName ="System.Data.SqlClient" /> </ connectionStrings > </ configuration > I have also added the following to the top of my form; Imports System.Configuration.ConfigurationSettings I now need to cal ...Show All
SQL Server Server Name problem
Hi, I have chart on a report. If i access a report from the Reportserver by the IP address of the machine, the chart shows up otherwise( i.e if i invoke it with the machine name) it does'nt show What may be the problem Have you tried it with http://localhost from the server Sometimes underlines ( _ ) in servernames have strange effects, whats your servername ...Show All
