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

Software Development Network >> Jean-Pierre Fouche's Q&A profile

Jean-Pierre Fouche

Member List

Steven Gilissen
Pivot35
davidhov
binod m paul
buckenn
manasia
MCP_SS
AndyPham
vannielou
DevDiver
RELJR
Chazcon
giddy
SanthaMind
ToddKitta
EDV Gradl
toadvine
jsedlak
Jebat
Mario M.
Only Title

Jean-Pierre Fouche's Q&A profile

  • Visual Studio 2008 (Pre-release) Default value?

    I have the below contract but it does not seem to work. When the client calls this api without specifying the optional argument instead of setting the value to the default it is always null. I have included the datacontract and a portion of the service reference from the client. The client service reference code seems to "know" that this parameter is optional but it does not seem to "know" about the default value. What am I doing wrong Kevin < xsd:element name =" Culture " type =" xsd:string " default =" en-US " minOccurs =" 0 "/> [ DataContract ()] public class GetPaymentTypesRequestType { private string cultureField; public GetPa ...Show All

  • SQL Server how to extract a sequence number from the group by count?

    Hi, I have a situation where I have to write a SQL to generate a sequence number from the count of the group by. Example: I have src data : --------------------------------------------------------------------------------------------------------------- SUBSCRID col1 col2 col 3 col4 1001 val1 val2 val3 val4 1002 vala valb valc valc 1001 ................ 1002 .......... 1001 ........... 1003 ................ --------------------------------------------------------------------------------------------------------------- So my result should be : -------------------------------------------------------------------------------------- ...Show All

  • .NET Development How to retry last statement in try{}catch{} block?

    Hi, I have following code try{ Someobject.Execute() } catch (SomeException) { } I'd like to retry Someobject.Execute in case SomeException is thrown, how can I do that Put it inside a loop. Something like: for (int ix=0;;++ix) { try { Someobject.Execute(); break; } catch (SomeException) { if (ix > MAXTRIES) throw Exception("I give up"); DoSomethingToMakeExecuteWork(); } } ...Show All

  • Visual Studio Team System Add objects to project ?

    Hi There I have created a new DB project. All i want to do now is add a couple of tables to the project from an existing database. I cannot find a way to do this All the help files mention is importing an existing DB schema , i do not want to import the whole schema as it is really huge , i simply want to add a few tables etc, but cannot find a way to do it I am having the same problem with compares, all i want to do is compare 2 tables in one database to the same tables in another database but it seems my only choice is to do a full compare between the databases, as mentioned their schema are huge all i want to do is 1 or 2 objects not the whole database, is this not possible Thanx Pleas ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Rectangle, but no RectangleF?

    Hi, I've started work on 'porting' my game over to XNA and have up until now been using Rectangle and RectangleF in System.Drawing. I notice now though that Microsoft.XNA.Framework has it's own Rectangle class, but no floating point equivalent. If I'm to (eventually) get this game onto the 360, am I right in thinking I can't be using anything from System.Drawing (or even System.*) It seemed strange to have a Rectangle but no RectangleF, unless it's just because this is a beta and it's not there yet, if so, then that's fine. :) (Same goes for Point/PointF) Many thanks, Adam Miles My game has a window manager, and allows arbitrary amounts of scaling on the windows, so storing their location a ...Show All

  • Visual C++ Weird problem about running the same app on different PCs

    Hi! I have a very strange problem: i wrote a common application which uses both MSDOS prompt (with "cout" and "cin" commands) and then shows a form. The strange thing is that this exe file works on various PCs, but in rare cases the program doesn't start and an error window appears saying: Impossible to start the application. The configuration of the application is not correct. A new installation could solve the problem. What problem is this How can I solve it Consider that the program doesn't require an installation, because it's simply an exe file. Thanks Your application may appear to you to only be a simple executable but if it is using cin and cout then in needs the C++ runtime to be inst ...Show All

  • Visual Studio Drillthrough event with C++

    I know I'm missing something simple. I'm currently getting the "datasource is not supplied" errors when using a drillthrough report. I know I need to do the following: LocalReport localReport = (LocalReport)e.Report; localReport.DataSources.Add( new ReportDataSource("Employees", LoadEmployeesData())) However, I am using C++ and am struggling in getting it correct. I've tried: LocalReport^ localReport = e->Report; This will get me cast type errors: Can't convert Report to LocalReport. Any help is appreciated. I know I'm missing something simple. ...Show All

  • Visual Studio Express Editions Clear ComboBox Items "VbExpress 2005"

    Hi How Can I clear ComboBox collection clicking on the button My ComboBox contain some values from DataBase and I have tried this code ComboBox1.Items.Clear() but display this error  "Items collection cannot be modified when the DataSource property is set." Someone can help to resolve this problem Thanks Shady   I want to refresh. But when i refresh that add the existing collection again. For example: In my combobox I have "Test1" and "Test2", when I'm clickng on refresh button that will add "Test1"and "Test2" again. I would like to clear the comboBox Collection and then add the dataBase values. ...Show All

  • Visual Studio Express Editions oranisation suggestion request

    In C, at least in my micro controller programming environment, it is easy to have a header file, with various routines contained therein, which is placed ahead of the main program. What do you do for c# do you add a raft of classes into Form1, or do it some other way I am concerned about reuseability, I guess (both within the specific program, and in other future programs), hoping that I can cut down on the number of keystrokes I need, in order to create a useful piece of software. Is there an on-line tutorial that is easily understandable that covers this sort of question Thanks, Best Wishes, Ray Thanks, I was looking on it more as marking it as answered as sort of preventing others from answering ...Show All

  • Visual Studio Tools for Office Excel scrollbars get really small.

    Hi there, another ListObject woe I'm afraid. I've a listobject, I bind it to a System.Windows.Forms.BindingSource which has an array of objects as its datasource. I have a test setup so that when I click a button it changes the array the bindingSource is bound to. So it alternates between an array of size 5, and an array of size 1000 (so if I keep clicking the button the listobject alternates between having 5 rows of data and 1000 rows of data). However, when it binds to the 1000 rows the scrollbar at the side gets smaller, as you'd expect. When it binds on the next button click to 5 rows the scrollbar stays the same size, thus making it hard to scroll precisely. If I bind to 1000 rows again (another button click) the scrollbar gets ...Show All

  • Software Development for Windows Vista Persistence Service with Remote SQL Server connection

    Is there anyone out there that is successfully persisting and tracking workflow data on a remote server I've had no problems doing this on my local machine. I'm attempting to point to another database server and am getting this error message: System.InvalidOperationException: Workflow with id "9ff9b8b7-2243-4dfd-b606-a7daa88d9b16" not found in state persistence store. I've checked all of the obvious things, remote connections being allowed, DTC turned on and running, etc. I've even opened port 135 through windows firewall and added dtc as an exception. What am I missing ! Well, I ran everything with a fresh copy of the database with the exact same result. And I haven ...Show All

  • Visual Studio Express Editions open new outlook email window in program

    Can anyone point me in the right direction on how to click a button and open and MSOutlook new email window. I would also like to program to add an attachment as well. Thanks For some reason I get an error message: ')' expected when i use the could given two posts ago. theStringBuilder.Append("&attach=" + C:\myfile.ext) They want me to insert a ) after the c ...Show All

  • Visual Studio 2008 (Pre-release) Resources bug?

    I have a Controls Library I've built. The generic.xaml file has the visual part of my controls. Since it is getting rather large, I've tried to extract the several controls styles to some corresponding xaml files, then I included the files in the generic.xaml resources by merging the resource dictionaries. Unfortunatly, it doesn't seem to work, and I've rolled everything back. Here is the xaml I've included in the generic.xaml file. Any ideas Thanks. :) < ResourceDictionary xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns:local = " clr-namespace:ComponentsLibrary " > < Resourc ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Losing Background Surface

    Hiya, I'm working on a simple 2d shooter game in VS 2003 using managed DX. Problem: my backgrounds (LPDIRECT3DSURFACE9) start disappearing after x levels Computer 1 has a Radeon Mobility 7500 that has 32 meg of VRAM and starts losing backgrounds after 7 levels. Computer 2 has an integrated graphics card with 64 meg of VRAM and starts losing backgrounds after 11 levels. So it seems that I'm not releasing somthing properly but I have thoroughly checked this. The way it works is as follows: 1. Load Menu and associated textures and surfaces 2. User clicks 'play' and all Menu textures and surfaces are released 3. The Game is initialized loading all textures and surfaces from scripts 4. player completes ...Show All

  • Visual C++ Linker Error: Unresolved Token __ehvec_dtor

    I am receiving the following linker error when I try to compile: error LNK2020: unresolved token (0A0000014) __ehvec_dtor I am trying to convert some old VC++6 code into a managed application. I'm very much a C++ beginner, so for ease of conversion reasons I want to keep the old code as unmanaged. I have created a C++.NET Class Library project and I am "converting" the classes of the old application by creating new generic C++ classes and copying the essence of the code across from the old app. The line of code that seems to be causing the problem (the error goes away if I comment it out) is an attempt to declare an array of another (unmanaged) class. It looks something like the following, which is part of a class in ...Show All

©2008 Software Development Network