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

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

d9832834

Member List

Bhavna_sharma
xlordt
Dirk Haest
Vaish
Dawl
azaclauson
Sondre - MSFT Regional Director
qwv
Mike Oleary
JYB
thinkrama
Ian Jorgensen
Dark Pontiac
justin_______
smhaig
RobGiorgi
gafferuk
mspinder
Jan Stuchlík
Milenko81
Only Title

d9832834's Q&A profile

  • Visual Studio Express Editions randomly generate one of four words

    Randomize() lblassign2.Text = Int((10 - 1 + 1) * Rnd() + 1) How can I change this so It will generate one of 4 words. The words are Hearts, Clubs, Spades and Diamonds Also these four words should be capitalized. Dim Suit () As String = New String () { "Hearts" , "Spades" , "Clubs" , "Diamonds" } Randomize () Dim UpperBound As Integer = 3 Dim LowerBound As Integer = 0 Dim value As Integer = CInt ( Int (( UpperBound - LowerBound + 1) * Rnd () + LowerBound )) MessageBox . Show ( Suit ( value )) ...Show All

  • SQL Server using GUID / uniqueidentifier as primary key

    <BACKGROUND INFO> We are in the database design stage of creating a db and we plan to use a GUID as the primary key for our tables (the app will be a smart client and will need to support offline functionality so when the app comes back online and the queued up inserts come thru we want to ensure that the primary keys are unique). We plan to have the app generate the guid and to send the GUID over as a parameter i.e. <code>GUID myPrimaryKey = GUID.NewID(); </code> and will not be using the DEFAULT NEWID clause on the CREATE TABLE statements. </BACKGROUND INFO> <QUESTION > Is it better to make the data type for the primary key columns to be uniqueidentifier or should the datatype be varchar(36).</QUESTION ...Show All

  • .NET Development Help with DES Encryption & Decryption using C#.Net

    Hi, Could you spare some time to help me with a small problem I need to perform encryption and decryption using the DES algorithm. This is the way I want the program to work : My form has 4 textboxes - 1) tbPlaintext --- For the user to enter the plaintext 2) tbCiphertext --- For displaying he ciphertext 3) tbKey --- For displaying the key 4) tbIV --- For displaying the Initialization Vector and 2 buttons - 1) Button1 --- When clicked performs encryption using key form tbKey and the IV from the string - "init vec" 2) Button2 --- When clicked performs decryption using the key in tbKey and the IV "init vec" The user enters the plaintext -"Hello wo ...Show All

  • SQL Server Sql 2005 Deployment Problem

    Hi , I am using SQL 2005 (Developer edition) on XP (SP2)... When I design my report I can see it on the "Preview" tab that it is working but when it comes to deployment I receive this error: Error 1 The report server cannot decrypt the symmetric key used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. Check the documentation for more information. (rsReportServerDisabled) Am I doing something wrong How can I deploy it Thanks in advance Hi Hammer, I didn't understand a thing from the errorlog file, if you did I'd appreciate the help, 2006-11-27 08:49:02.12 Server Microsoft SQL Server 2005 - 9. ...Show All

  • .NET Development dbnull allowed relation fails

    Hello everyone, I am trying to use a relation in a typed dataset. This relation is not obligatory, so i think i could insert nothing values. The property allowdbnull is set to TRUE . But when I add a row to the dataset it throws an exception complaning about a null value. Here is the generated xml code for the field that gives these problems: < xs:element name = " CIT_PARAM_TRABAJADOR " msprop:Generator_UserColumnName = " CIT_PARAM_TRABAJADOR " msprop:Generator_ColumnPropNameInRow = " CIT_PARAM_TRABAJADOR " msprop:Generator_ColumnVarNameInTable = " columnCIT_PARAM_TRABAJADOR " msprop:Generator_ColumnPropNameInTable = " CIT_PARAM_TRABAJADORColumn " minOccurs = &quo ...Show All

  • Visual C++ How do you make a single file compile without making a whole project in vc++ 2005?

    Now this is totally absurd. I am learning C++ as a beginning programmer and bought vc++ 2005 and installed it but its so freaky complicated further more inroder to make simple programs such as heelo world, adding 2 integers, etc you have to make them into projects for them to compile when i used a new file option there wasnt any option for building or compiling. Everytime i have to solve an exercise from my book i have to make a new whole seperate project with there headerfiles,source files etc how can you make a only single .cpp file and get it to compile in vc++ 2005 The following should also help. There are many more that will also help. How to: Create a Standard C++ Program Walkth ...Show All

  • Visual C++ Why doesn't PDH work?

    Hello, I've been trying to develop an application that reads the CPU load from the computer and the free RAM memory available. To do so, I was primarily thinking about using the PDH interface, since we are building to Windows Server 2003 and Windows XP, both of which already come with the PDH.dll. I downloaded the platform SDK from Microsoft's site, and I am using Visual Studio 2005. My dilemma is, every time I try to compile the source code, it gives me several errors, even with example codes taken from Microsoft's site. It gives me several unindentified objects in _main (it cannot understand/localize the commands, datatypes and so on). I don't understand why. I tried copying the pdh.h and pdh.lib to the main i ...Show All

  • Smart Device Development Error while debuging

    Hello All, I am new to Smart Device Development, I have installed Windows Mobile 5.0 Pocket PC SDK on my machine and trying in create simple HelloWorld application but it not working . I gote following error while debuging Error 1 - Deployment and/or registration failed with error: 0x8973190e. Error writing file '%csidl_program_files%\helloworld\mscorlib.dll'. Error 0x80070070: There is not enough space on the disk. File - Device Connectivity Component please help me. I am using Visual Studio 2005 One More thing, I don't have 'Smart Device' like interface when I open WinForm in design view for placing controls. Thanks If you create WinCE application than you'll see WinForm style skin. This is because WinCE based devices ...Show All

  • Visual Studio 2008 (Pre-release) Binding DateTime - formatting issue

    I'm working on a Windows machine which has got CurrentCulture set to "en-AU" but CurrentUICulture set to "en-US" This is causing binding to flip dates around such that 7/2/2007 becomes 2/7/2007 - not good! I've tried setting the CurrentUICulture to CurrentCulture but am guessing that a separate thread is displaying the xaml as the binding still fails. One option is to attribute xml:lang, or the Language dependency property, but this would cause US users to see an Australian date format for example. Is there a way to set the CurrentUICulture to the CurrentCulture so that WPF sees the change And on a side issue, why would the two cultures be different Thanks in advance, Graeme The only ...Show All

  • Visual Basic Assembly does not allow partially trusted users

    Assembly does not allow partially trusted users above is the error I am getting when i try to run my vb.net exe on another machine. How do i go about correcting this problem ...Show All

  • Visual Studio Team System Known Issues - Release Date

    Hi There I am very keen to try out Visual Studio Team System - Database Professionals . However i have had some issues with various CTP's before , is the lastest CTP4 Are there any serious know issues with it By that i mean if i install it my management studio is not going to break or anything And finally is there a rough release date yet for Visual Studio Team System - Database Professionals Thanx The final product will ship by the end of the year. CTP 4 won't touch management studio. It should not break your VS either and it has full uninstall support. Are there known issues Yes there are a number of bugs and items that are not yet implemented but you shouldn't find side-by-sid ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA & DRM

    Hi, im using librares in my project that can't be used in programs that are DRM "protected". My question is: does C# express, or XNA contain anything conected with DRM and is my game free of DRM or there is something hidden in my exe/application TheSonny wrote: Hi, im using librares in my project that can't be used in programs that are DRM "protected". Maybe you should elaborate on that. "Can't" because of the licensing agreement, or "Can't" because the library expects the binary in some format ...Show All

  • SQL Server Error Message: Setup Failed because MSSQL$SQLExpress is disabled for the current hardware profile

    When installing SQLEXPRESS I am getting this message: Setup failed because service MSSQL$SQLExpress is disabled for the current hardware profile. Services must be set with the current Hardware Profile logon property enabled. Anybody knows how to fix this problem Eitan Do you have MSSQL$SQLExpress service installed at all in SCM If so go to service properties and on Log On tab enable HW profile. If the service is not installed open regedit and delete this registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Enum\ROOT\LEGACY_MSSQL$SQLExpress ...Show All

  • Visual Studio 2008 (Pre-release) Flow Custom Principal with WCF

    Hi, I'm using a custom implementation of IPrincipal and I'd like to flow it from the client to the service, how is this done in wcf. In .net remoting I've used a custom sink to take the principal from the thread on the message an on the service back to the thread. Thanks, Markus You can add additional information in headers and send them to the server. It would be better to be able to recreate the custom Principal in the service based on authentication. Otherwise you would trust the client to provide security information - which would extend the trusted subsystem to the client. Technically - you can create a custom Principal on the server by using the "custom" PrincipalPermission ...Show All

  • Internet Explorer Development in IE 7 target is ignored in the form on the modal window

    Hi, This issue has been mentioned on this forum but never explained and no workaround provided. Basically, I have model window, open smth. like this: <a href=" void(0);"" onClick=""var result=showModalDialog('Lookup.aspx ..<some param>....', 'Lookup', 'dialogHeight: 540px; dialogWidth: 580px; center: yes; edge: sunken; help: no; scroll: yes; status: yes; ' ); Inside that dialog there is a regular HTML form: <form id="ReportForm" method="post" runat="server"> Now, if I submit this form IE opens new window instead of refreshing the dialog window. IE6 had same behaviour but we found workaround by putting <base> tag inside <HEAD> with target set to "_s ...Show All

©2008 Software Development Network