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

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

youngDev

Member List

Kaligero
Jim Shipley
Conor Long
tarquiniusRex
Robert Pinkerton
jamieo1908
Regeneratez
kndr
VinuM
De Keguelin
co-rd1
JasonInTacoma
Rburkhal
ajlopez
Shadowsoul
sc1036
jfyfe
Tom Tilque
Michael Sync
Thomas55
Only Title

youngDev's Q&A profile

  • Visual C# Bitmap from Byte[]

    Dear All, I have a bitmap image stored in a byte[] in GBR format. I want to point a bitmap to it so that i can easily display in a picture box. This is the code I am using and it’s definitely too slow (even reading from a file is much faster than this). I have looked at the “ class EffectBuffer” but it does not seem to relate directly to my problem now. Can anyone be of help DBack = new Bitmap (Img_Width, Img_Height); byte[] myByte = new byte[640*480] lock (myByte) { fixed ( byte * ptr = myByte) { byte * ptrByte; ptrByte = ptr + 40; for (i = 0; i < Img_Height; i++) { for (j ...Show All

  • Visual C# Printing text directly to a printer (NOT as a graphic)

    I can print text if i do a e.Graphics.DrawString(......) My problem is that I am trying to print to a card printer, and usually it checks what text it is printing, and if it hits a '~' it then encodes the magnetic stripe. When i print from Microsoft word, or Access, it works fine because text is sent to the printer. But using "PrintDocument" object and drawing to a bitmap, it is unable to parse the text. Any ideas on how to print text directly to the printer at locations, instead of rendering them onto a bitmap first Hi, Since the .NET Framework cannot send preformatted data to a printer direct ...Show All

  • SQL Server Disable password policy enforcement SQL server 2005

    Is there a way to do this at the server level Thanks I guess yes there is you have to open the Local Security settings using the mmc plugin and disable the Enforcements of policy settings like complexity etc. and you should be done. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

  • Windows Forms Making my app the default email client

    I am creating an email client. How do I go about making my program the default email client once it has been installed Hi there, To set an application as the default for Internet or Email requires some registry work. I would envisage that you have an installer or some functionality in your application to set it as the default If you do, then whatever you are using will need to modify the registry. Here is an article on the registry keys that need to be edited: Setting Default Internet & Email Applications If you wanted to have some functionality in your code to change registry settings, the ways ...Show All

  • Visual Studio Tools for Office VSTO project does not appear in "VSTOprojects" CAS list

    Hiya, I am going thru the VSTO articles, trying to build a VSTO app in whidbey. When I run the app, I get an error < error > The current .net security policy does not permit the customization to run. <\ error > So, I  follow the advice on how to assign a strongName to the assembly: http://msdn2.microsoft.com/library/0c0116yz(en-us,vs.80).aspx However, when i navigate  to the "VSTOProjects" folder, the project that I have created isn't present. (there are other, previous projects though) I can confirm that: 1) I have successfully built  the project (as I only get the error atruntime) 2) I am log ...Show All

  • Visual Studio visual source safe internet was not enabled on this computer because IIS is not installed

    I am trying to enable VSS internet http access on an existing Windows 2003 server w/ IIS installed. When i go into the VSS server configure and attempt to select checkboxes "Enable source safe internet for this computer" and "enable source safe internet for this database" i get this error: "visual source safe internet was not enabled on this computer because IIS is not installed" I did some research and it looks as if maybe VSS internet is looking for the Default Web Site node in IIS. This has been deleted and only the few websites we have on this server are there. In IIS 5.0 there was a way ...Show All

  • Windows Forms AutoToolboxPopulate not working

    Hi One of the great things I liked when beta testing VS 2005 was the AutoToolboxPopulate feature that would populate a special tab in your solution toolbox whenever you create a new Control or Component. The feature seems to still be there (seen it in the Windows Forms Designer UI options tab) but it is not working properly. Whenever I build my app, the controls built in are not showing up in the toolbox. Is it related to the fact that I create simple classes files instead of custom control files (which at the end are just source code files) Thanks Amadrias I have just tried on my C# express, and it works. I ...Show All

  • Software Development for Windows Vista Writing Directshow Filters

    I want to write a directsow filter. I am using Platform SDK documentation to do it. There is a topic "Building DirectShow Filters" that I am using. So I follow this topics: 1.Include the header file Streams.h.  2.Use the __stdcall calling convention. 3.Use the multithreaded C run-time library (debug or retail, as appropriate). 4.Include a definition (.def) file that exports the DLL functions. The following is an example of a definition file. It assumes that the output file is named MyFilter.dll. LIBRARY MYFILTER.DLLEXPORTS DllMain PRIVATE DllGetClassObject PRIVATE DllCanUnloadNow PRIVATE DllRegisterSe ...Show All

  • Visual C++ In VC++ 8, does "Disable Language Extensions" mean no __declspec?

    I have been using VC++ 8 Express for the last day or so.  Today I noticed the "Disable Language Extensions" in the Project Properties -> Configuration Properites -> C/C++ -> Language page. What does turing this to Yes mean for creating a dll file   After removing all "__declspec(dllexport)"  declarations, do ALL functions and classes get exported to the lib/dll, just as if you had put that on everything If you have sed.exe or are willing to download it from SourceForge ( http://gnuwin32.sourceforge.net/packages/sed.htm ), I think the following may be sufficient to get the list of s ...Show All

  • SQL Server Should I uninstall SQL Server Management Studio before...

    ...installing SQL Server Express Advanced Or before installing the Toolkit Or should I just leave it there and everything will be ok Thanks! It is probably a good idea to uninstall SSMSE first. There is a known problem where uninstalling SSMSE will cause a failure in Visual Studio, this is documented in the readme and in a KB artilce. You need to make an update to the registry to address the problem as documented in the KB: http://support.microsoft.com/kb/917635 Regards, Mike Wachal SQL Express team ---- Please mark your thread as Answered when you get your solution. ...Show All

  • Windows Forms DisplayMember and ValueMember Attributes in Custom Control

    I want the user of the Custom Control to see available "Columns" for the selected DataMember. I accomplished this on the DataMmber using: [Editor("System.Windows.Forms.Design.DataMemberListEditor, System.Design",               typeof (System.Drawing.Design.UITypeEditor))]   I have tried searching for a decent article or something explaing the editors, but nothing useful. Can someone please guide me in the right direction, or if you know just the Editor specs that is fine too. Thanks I am looking for information on the "Attributes" used with ...Show All

  • SQL Server Scripting: Dumb Q.. How can I store a DTS variable inside a script variable?

    Hi I want to pass in a variable to a script, store it's contents in a varaible, increment it by one and pass it back out.   This sounds pretty easy but I'm struggling finding any good docs on how to pass in a dts variable and store it.  The script component is called within a control Flow, foreach loop container.  I wanted to count each time the loop picked up a file to work with and store the results in a variable to be later written out to a table.  I suppoer I have two questions, the first is how can I get this script to work and the second is do I even need a script   The row count object only works in a D ...Show All

  • Smart Device Development initiating times for synchronisation

    Hello, I'm looking for best practices for making synchronising transparent to the user of the pda. (thus: the user don't know the device is synchronising-> eg. the user don't have to press on a button synchronise for example) The synchronising itself is no problem, the times for synchronising is my problem PDA side, server side server side: Not a good practice I think. I thinking of PDA's, with dynamic addresses. So I think it's better to make it PDA side. PDA side: -Following the steps of the user: Every after x actions synchronise. An "action" still can be specified. -making a backgroundser ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Texture array in HLSL

    I want to access a bunch of textures in the shader and want to access them as an array. How can I do that What I want to do is like: float i = tex2D(texture[a mod 3], texCoord); Without using an array I have to to do it like: if (a mod 3 == 0) i = tex2D(texture1, texCoord); else if (a mod 3 == 1) i = tex2D(texture2, texCoord); else if (a mod 3 == 2) i = tex2D(texture3, texCoord); which looks urgly.   is there a way to index into the sampler array using a variable it seems to work fine if i do int i = 2; sampler[ i ]; but if i try to pass a variable from the vertex shader and use tha ...Show All

  • Windows Forms Databinding to a DateTimePicker control

    I'm trying to bind a DataView to several DateTimePicker controls.  Problem is the binding is happening on a newly created row so the datetime columns are all null.  I transformed the null values to nothing but the DateTimePicker does not allow no date selection, it has to be a valid date greater than the minimum (I beleive nothing on a dateti ...Show All

©2008 Software Development Network