Software Development Network Logo
  • Windows Forms
  • Windows Live
  • Microsoft ISV
  • Windows Vista
  • Visual C++
  • Visual J#
  • Visual Studio
  • Visual Basic
  • Visual FoxPro
  • Visual C#
  • Game Technologies
  • Smart Device
  • SQL Server
  • VS Express Editions
  • Architecture

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

jcwishart

Member List

zainshah
KirillA
sumana
BillMcC
yishyuan
sinisterguy
Eli Cohen
MeNewtoSql
Bhavin B - MSFT
Ralley
SCISYS DBA
Todd Hobdey
Marlon Chen
gholam ali
Roop
StanStandard
Ukryu
ekekakos
agjevik
AiricD
Only Title

jcwishart's Q&A profile

  • Windows Forms Tab Alignment

    I am using the TabControl with the Alignment set to Top. The Tabs appear at the top of the control, from Left to Right as intended. However, I would like the Tabs to appear from Right to Left. Any ideas how to do so without creating a control from scratch ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Dynamic for-loop in HLSL Pixel Shader

    Hi there, does somebody know if (how) it is possible to use a for loop in a HLSL pixel shader with a dynamic count For example: int count = 5 / a; for (int i = 0; i < count; i++)     ... I didn't manage, whatever I tried the effect creation fails. Even with shader model 3. Nico Suddenly it works! I don't know what I made wrong before. Anyway, when compiling a shader with a dynamic for loop there is a lot of preprocessing. Does anybody know what is going on The more I limit the dynamic count, the shorter the preprocessing. I just waited about 5 minutes for a loop with a count limit of 80 to compile (!). So my sha ...Show All

  • Visual C++ How to Copy form CDC dcMem1 to CDC dcMem2?

    Hi! I defined a public CDC member(dcMem1) and I Have 2 Function that must used this member.but when I compiled show this error : Debug Assertion Failed! what should I do I think that must to define another member(dcMem2) and Copy from dcMem1 to dcMem2! is this allRight (maybe I'm stupid) I have no problem now! that was very simple(I was so Stupid!!!!!) in my print's function.. void CDatabaseDisplay::OnPrcurpic() {  CPaintDC dc(this);  memDC.CreateCompatibleDC(&dc);  oldBitmap=(CBitmap*)memDC.SelectObject(& m_bmpBitmap );  dc.BitBlt(0,0,myRect.Width(),bm.bmHeight,&memDC,   b ...Show All

  • .NET Development Using crypto api (NET app/win32 app)

    Hello, I'm using the RSACryptoServiceProvider from the .NET framework, and setting a key like this: RSAParameters rsaParams = new RSAParameters(); rsaParams.Modulus = K_MODULUS; rsaParams.Exponent = K_PUBLIC_EXPONENT; with those constants arrays generated with the crypto api call CryptExportKey from other application (win32 - who also has all the PRIVATEKEYBLOB) and knows the private exponent to do decryption... But when I encrypt some chain from .NET and decrypting with an API call to CryptDecrypt from a win32 application the process fail with code: { Bad Data. } NTE_BAD_DATA = DWORD($80090005); {$EXTERNALSYM NT ...Show All

  • .NET Development How do I programatically set the DataConnection if using Visual Basic 2005 Express?

    I'm using Visual Basic 2005 Express Edition and have created a project and statically linked it to existing data in an Access 2000 database. VB 2005 Express opens the database (visible in Data Sources pane) when I start the project explorer. That's fine while developing, but once the app moves into production, it needs to find the database location from a registry key and then open the db from the appropriate location. I know how to read registry keys within the app, but I don't see any code pertaining to opening the database within my current app. Under Solution Explorer, I see an app.config file containing XML code. That code cont ...Show All

  • Visual Studio Express Editions Controlling The Startup Position Of Owned Forms

    Hello All, I am having a bit of a problem with handling the positioning of several of my forms in my application. I am using an MDI Form as the main parent form. I am using the MDI Parent form for this purpose becase I want all the other forms to stay within the boundaries of the of the main application form and the MDI Parent form has served this purpose well form me in the past. This app will not be a traditional MDI app as there will not multiple instances of some forms, such as a login form, an about form, a splash screen and a change password form. I still want these forms to have a certain startup position in relationship to the MDI ...Show All

  • Visual Basic ListItem unavailable

    I am not able to use the ListItem Class in my VB 2003. When I try to declare an instance of ListItem as follows, it is not recognized. Dim objListItem As ListItem Is there something I am missing Error message is: "Type ListItem is not defined". In any case, when I am declaring, ListItem does not appear as one of the types. I tried to import the namespace "system.web.ui..." but the 'ui' bit does not exist. ...Show All

  • .NET Development Processing Binary (GRIB) files

    Hi, I am looking to develop a product that reads binary GRIB files (files that contain gridded weather forecast data - http://www.wmo.ch/web/www/WDM/Guides/Guide-binary-2.html ) and displays weather data for certain sites around the world I have been developing in .net for about 3 years (fairly well!) but have no idea of: 1. how to process these binary files 2. extract the correct data 3. how to understand how the data is organised a description of the files can be found here - http://polar.ncep.noaa.gov/waves/products.html#grib  and an exmaple file is ftp://polar.ncep.noaa.gov/pub/waves/latest_run/nww3.HTSGW.grb i have experimented wi ...Show All

  • Software Development for Windows Vista Can not Deserialize a XOML that uses a signed assembly

    Hi, I can't seem to deserialize a XOML that uses a signed assembly. When I not sign the assembly I can deserialize. The assembly is not in the GAC. I am using the following test code to deserialize: string filename = @"C:\Program Files\Microsoft SDKs\Windows Workflow Foundation\Samples\WorkflowMonitor\CS\WorkflowMonitor\bin\Debug\Test2.xoml" ; DesignerSerializationManager serializationManager = new DesignerSerializationManager (); WorkflowMarkupSerializer serializer = new WorkflowMarkupSerializer (); using (serializationManager.CreateSession()) { try { using ( XmlReader reader = XmlRea ...Show All

  • Windows Forms Setting Properties on Dynamic objects

    I'm trying to write a function that sets properties on an unknown object. Here is the code I've tried:private void button1_Click(object sender, System.EventArgs e) { object oTarget;  string PropertyValue = "14"; string PropertyName = "Size"; oTarget = label1.Font; SetControlProperty(oTarget, PropertyName, PropertyValue); oTarget = button1.Font; SetControlProperty(oTarget, PropertyName, PropertyValue); } private void SetContro ...Show All

  • SQL Server large tables overflow rows

    In SS05, I see that I can get more than 8KB on a page. Has anyone tried this -- will it hurt performance a lot Is it useful. Do you recommend it Hi Learningdba,   Larger rows will always hurt performance, since more I/O is required to handle the same amount of rows.   On the other hand - if you NEED to store that many data, than SQL Server 2005 handles it a lot better than SQL Server 2000. The text and image datatypes were, frankly, quite a pain to manipulate. varchar(max) and varbinary(max) are an enormous improvement.   -- Hugo Kornelis, SQL ...Show All

  • SQL Server Advanced Select based on multiple field combinations

    I have developed an ASP.NET form with 12 different fields that will allow end users the cability to query 3 tables that are relational to one another. I was curious what is the best way to perform this in a Stored Procedure Can I use a UNION -- Not sure if this is the best choice or account for evey kind of WHERE clause based off IF statements on the data that is passed through the parameters If these drop down's are simply filters for the end-user to retrieve more specific results, you can add to each of the drop-downs an item with a value of 0 and a text value of something like "Any". Then when calling your pro ...Show All

  • Visual Basic Traversing all subdirectories and all files in those subdirectories

    Hello all, I know in .NET 2.0 there's a flag that you can set for your .GetDirectories(somePath) method, but in .NET 1.1, is there a clean way of traversing all subdirectories without using whiles, and for each's and what not Props to the hardcore programmers going at it on a Sat night haha Thanks. N. Farr That's what I ended up doing, it doesn't seem that 1.1 has a function that would one-line it for you. Cheers all. NRF ...Show All

  • Visual Studio Team System How to get code coverage from Web Tests?

    Hi, I'd like to get code coverage information from Web Tests. I configure the testo configuration in order to instrument the Web Site. I Run my web test but no coverage information was generated. Is there any additional Step Thanks Hello MunjalD, Unfortunately, when I attempt to follow your example in #1 above, I get the result that was originally reported. I have a solution with a Web Service project and a test project. The unit test I am running is a data driven unit test. I enabled Code Coverage in a new test configuration and set it as the one to be run. I ticked the checkbox for the Web Service in the list of assemblies. When&nbs ...Show All

  • Visual C# MSDE and C#

    hi there I am developing a software that needs a database to be shared, I've heard about MSDE, can someone tell me if There is a newer version than MSDE 2000 It's possible to use MSDE with C#.Net I would like a tutorial or something about deploying MSDE with my application. I hope to have some feedback, and thanks in advance Hi, There is a newer version than MSDE 2000 yes SQL Server Express, but it is still beta. It's possible to use MSDE with C#.Net You can do this. I would like a tutorial or something about deploying MSDE with my application. Just look in the internet. http://www.microsoft.com/sql/msde ...Show All

©2008 Software Development Network