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

Software Development Network >> Bastiaan Molsbeck's Q&A profile

Bastiaan Molsbeck

Member List

M. Nicholas
Asday
JohnBGood
NagaB
goldstei
TianHon
Long Xue
Jeff-B
lucerias
tribal
Siggy01
g_politis
Nevor
HPEvju
vbmon
NPrinsloo
TaiChiMaster
JamesPMiller
Phil026
roadresident
Only Title

Bastiaan Molsbeck's Q&A profile

  • .NET Development GetChanges - Update - Merge result in redudant row

    I would like some assistance in the following situation. A table has 0 rows Row is added to table (table.rows.add) Table has 1 row GetChanges is called Update is called Merge is called Table has 2 rows (!) I suppose that this has to do with the primary key of table being autoincrement (both in database and in typed table). What's the procedure to do this right papadi wrote: I think I found the solution! http://msdn2.microsoft.com/en-us/library/ks9f57t0.aspx Search for "Merging" in this article. I haven't tried it yet but it describes this exact situation! Now the problem is that after performing the update, it does not return the correct number of affected records! ...Show All

  • Visual FoxPro How to disable Foxpro screen?

    I have a project with one screen form only. When I run the execute, the screen form is within the foxpro's screen. How do I make the screen form as the only window form shown on screen Thanks. Joe. Besides Doxcpro777's good answer (I fully recommend those books plus many more from hentzenwerke.com ), I would also recommend: Hackers Guide to VFP 7 (still works for versions after that) VFP Best Practices for the next 10 years and also the big repository of information in the VFP Wiki .   ...Show All

  • Visual Studio 2008 (Pre-release) WCF integration with GSOAP

    Hi, I’m trying to write a c++ client that talks to .net WCF server. For that aim I’m using the GSOAP application. I was successful in writing a c++ client that talks to an asp.net server, but when I tried to write c++ client and a WCF server they failed to interact. When the client sent a request to the server the following fault was received: Error 415 fault: SOAP-ENV:Server [no subcode] "HTTP Error" Detail: HTTP/1.1 415 Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'text/xml; charset=utf-8'. It looks like the WCF server doesn’t know how to deal with the format of the client requests. Does anybody know why this occurs Can I change the ...Show All

  • Visual C++ Depricated Functions

    Hello I have just now ported my VC 6.0 to Visual Studio 2005. I am facing with some crashes in my application. The place where i am finding this is the depricated functions,specifically now i am facing an error with strcpy. I dont know y it is crashing..can anyone please help me on how do i work with the depricated functions. Thanks & Regards, Ravi Kanth Your problem is most likely that pszText doesn't point to a buffer large enough to contain the string from TabTitle. Try something similar to this: size_t nStrSize = strlen(TabTitle); if(nStrSize > 0) { char* pszText = new char[nStrSize]; strncpy_s(pszText, nStrSize, TabTitle, nStrSize); // do something with the buffer delete[] pszText; } ...Show All

  • Smart Device Development VS 2005 vs. Platform Builder

    Is VS 2005 a complete replacement for Platform Builder i.e. what if anything do I need Platform Builder for No, It's not. Platform Builder is the tool you need to design and build your 'own' Windows CE OS for a custom hardware device. This includes tasks like selecting features you want in your OS design, writing device drivers and related thing. Read more about Platform Builder here ( http://msdn2.microsoft.com/en-us/library/ms905511.aspx ) and about Windows Embedded CE in gerneral here ( http://www.microsoft.com/windows/embedded/eval/wince/default.mspx ). Hope this helps Michael ...Show All

  • Visual Basic Iterating through a given component type in a VB form

    Hello all, I am looking for a way to iterate through a given component type in a VB form. For example, if I want to go through all the buttons found in a given form and change their text to "XYZ", is there perhaps a "For Each" technique to do that The alternative is an ugly hardcoding of the button names, in the above example, and changing their text one by one ... not what I want. Cheers all. N. Farr Hi, the following code runs through all controls, put directly on your form and sets new text of all controls that are buttons: For Each control As Control In Me .Controls Dim myButton As Button = TryCast (control, Button) If myButton IsNot Nothin ...Show All

  • .NET Development active directory System_com object

    hi when i run this code : public static void Main() { DirectoryEntry de = new DirectoryEntry( "LDAP://192.168.1.100/cn=a b, cn=Users, dc=soheila, dc=org"); PropertyCollection pc = de.Properties; foreach(string propName in pc.PropertyNames) { foreach(object value in de.Properties[propName]) Console.WriteLine(" property = {0} value = {1}", propName, value); } } some of the property value pair that it shows are: property = uSNCreated value = System.__ComObject property = uSNChanged value = System.__ComObject property = badPasswordTime value = System.__ComObject property = lastLogoff value = System.__ComObject property = lastLogon value = System.__ComObject property = ...Show All

  • SQL Server SSIS Data Mining Model Training Transform (Nested tables)

    I can't figure out how to put nested tables into the Data Mining Model Training Transform (SSIS). I can do a simple case table, but how do you get those nested tables with DM Training Transformation Any ideas Samples Thanks in advance, -Young K The SSIS training transform does not support nested tables. You can transform your data, stage it in a database and then create a "regular" model in an AS project and use the SSIS processing task to schedule processing. ...Show All

  • Visual C# simple string compare not so simple

    I am doing jsut a simple little string compare and the values are equal, however, I cannot get them to see that they are equal. Unless I am so Dyslexic I cannot read two simple strings. Here is the code: public bool test_ArPermHasPermission(string prefix, string action) { string permission = prefix + action; bool test = false; foreach (string p in arPerm) { //the values that fail: p = auth_update and permission = auth_update if (String.Equals(p.ToString(), permission.ToString())) { return true; } } return false; } I got so fed up with the string.equals I also tried the following: (p.ToString() == permission.ToString()); (p == permission.ToString()); (p.ToString() == permission); ...Show All

  • SQL Server Need Help !! RDA replication

    Hi Everyone: I am new to Mobile programming. I am now working on a mobile project. I encounter an issue when I sync the data: cause I can't modify the schema, so I have to use RDA instead of Merge replication on sql server 2005. However, There is an identiy column on each table I will pull them down to local mobile database. And I will use those identity columns to connect tables. Even worse, the photo's new name will combine the photoID which is an identity column. There would an issue, if i sync data, the photoID would be same on different local mobile databases. And there would be generate same identity value when users sync data. How can I avoid those issues If you have any good ideas, please help me out so that ...Show All

  • Windows Forms how to change focus on several editbox'es by pressing 'enter' key

    Good day! I made my own user control named MegaTextBox. It contains 1 label and 1 textbox. I described this class. In main form I place _myMegaTextBox'es by the cycle for (...), set the name on each _myMegaTextBox'es... But when I try to write this: _myMegaTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this._myMegaTextBox_Down); ... private void _myMegaTextBox_Down(object sender...   It don't work. I need to change the focus, when key "enter" was pressed on _myMegaTextBox, to next _myMegaTextBox on my form... Thanx everyone for help This does not seem to work if the edit boxes are on a page of a tab control. How can you go to the next control on a ...Show All

  • Visual Studio Custom Tool in VS2005

    Hi, have some troubles creating a "Custom Tool" like "MSDataGenerator": I read the article found at: http://msdn.microsoft.com/msdnmag/issues/06/02/CuttingEdge/   and some of the linked articles too. So here are the steps i made in hardly 15 mins: 1. Create new VS2005 C# ClassLibraryProject called "MyGenerator" 2. Add reference to Microsoft.VisualStudio.BaseCodeGeneratorWithSite.dll 3. Implemented: "MyGenerator.cs": using System; using System.Runtime.InteropServices; using Microsoft.CustomTool; namespace MyGenerator {    [ComVisible(true)]    [Guid("d1815bb9-ecce-4dbc-9b73-ce4ff234af7d")]    public class MyGenerator : BaseCodeGeneratorWithSite    {    &n ...Show All

  • Visual C# Uploading With Webservices!

    Hi, I have a web serivce to upload file. What will be the best way to upload file using web service . Convert file into Base64string and the pass it to web service or some thing else... Any help will be appreciated... There are a number of options you can use for transmitting large amounts of binary data. The solution you've listed (known as base-64-encoding) is an okay solution. Your data will be transmitted properly and it will be contained within your SOAP envelope (meaning that you can use things like WS-Security) if you want. It is a highly interoperable and composable solution. The downside is that it isn't a very efficient solution. Base 64 encoding of your binary data results in it bloating up anywhere from 33-100% during ...Show All

  • Visual Studio VSTudio installation - trial version

    I downloaded and burnt the image file to a DVD - the installation page: http://www.microsoft.com/downloads/details.aspx FamilyId=B2C27A7F-D875-47D5-B226-E2578A116E12&displaylang=en says (in additional info) that the file can be extracted by nero but I am unable to extract the file. Any input Thank take a look at this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=778624&SiteID=1 you can either extract the image using something like isobuster, or you can mount the image using a 3rd party CD/DVD mounting tool or you can burn the image (recorder > burn image) in nero ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Ann: A "Proper" Text Rendering Component

    Hi! I'm just in the process of writing a proper text rendering component for XNA. It fully integrates into the content pipeline and can import any TrueType font during compile time. Just like any other XNA framework content, an .xnb file is generated from the font which can at runtime be loaded by XNA's ContentManager, eg. BitmapFont myFont = this .content.load< BitmapFont >(   "Content/Fonts/Arial" ); // ... this . myFont.drawText(   new Vector2 (100.0f, 100.0f),   "Hello World" ,   Color .White ); The component is still in development and there will likely be some changes in its interface, but it's already fully usable. If you want to give it a go, you can find the component here: http://www.nuclex.org/fra ...Show All

©2008 Software Development Network