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

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

b0bd0gz

Member List

DragonWolfZ
NorCis
Mehta Vikas
Jaime Stuardo
ZopoStyle
wleizero
abssoft2000
Jeanvo
Matt_343
Aleniko29139
InvalidSynTax
Richard Purchas
Delphieur
Kennon2005
Michael Bolland
StGeorge
Batikit
Gravy
johnny83
Duncan Woods
Only Title

b0bd0gz's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. [HLSL] How to pass a value to a function?

    Hi, I'm rewriting my shader, which performs separable Gaussian blur using different kernel sizes. Right now for every kernel size I have 2 pixel shader functions and 2 techniques. Is it possible to pass the size of the kernel to the function, so I could write only 2 functions (one for horizontal and one for vertical pass) and multiple techniques Something like this: float4 PS_VerticalPass( VSOutput input, int size) : COLOR { float gauss= 0.0f; for( int i = 0; i < size; i++ ) gauss += tex2D( gaussTextureSampler, input.TexCoords + float2(0.0f, offsets .b) ).r * offsets .a; return float4(gauss , 0.0f, 0.0f, 0.0f); } technique Gaussian3x3Vertical { pass P0 { VertexShader = null; PixelShader = compile ps_3_0 PS_Vertic ...Show All

  • .NET Development UsernameToken Authentication using WSE 3.0

    Hi, I am having a bit of trouble finding information on how to implement a username token for authentication of my web service. I am able to implement this token when I pass these in to the constructor to create my username token: (username,password,PasswordOption.sendPlainText), however I am looking to pass in the option PasswordOption.sendHashed instead of PasswordOption.sendPlainText. I am unsure what I have to do on the service side (and possibly in the web.config file on the service side) to implement this option. Does anyone know if there are any articles that explain how to do this. I am validating the user credentials against Active Directory. Here is the code I am currently using which works fine: Dim token As New Microso ...Show All

  • Internet Explorer Development IE7 problem

    Unable to change the security settings in IE7 ... boxes are greyed out and I am the Admin Account on the computer Windows XP Home with SP2 How can I get this back to the way it is supposed to be Is there a reg key that can be fixed to correct this Thanks >> -removed content Looks like you will have to Google for the answer. The moderators are removing them when posted. ...Show All

  • SQL Server Internal SQL Statement

    Need 1 SQL Statement to find out which databases have what tables with what Columns with what datatypes Thank you Jens. What I had in mind was something like: SELECT dbo.sysobjects.name as Tabellenname, dbo.syscolumns.name as Spaltenname, dbo.systypes.name as Datentyp, dbo.systypes.length as 'Laenge in Byte' FROM <dbname>.dbo.syscolumns,<dbname>.dbo.sysobjects,<dbname>.dbo.systypes where dbo.sysobjects.xtype='U' and dbo.sysobjects.id = dbo.syscolumns.id and dbo.systypes.xtype=dbo.syscolumns.xtype Can you help me with a loop in order to run through all databases automatically regards matthias P.S. Whats wrong with sqlserv2005.de. Is the server down ...Show All

  • Visual C++ C2248 error again

    Hi, I have seen a few instances of this problem described in relation to derivation from classes with private copy constructors in VS 2005, but the behaviour does not seem consistent. Here is a simple example class:   #include <sstream> class MyException : public std::stringstream { public : MyException( void ); ~MyException( void ); MyException( const MyException & x){} MyException & operator =( const MyException & x){ return * this ;} }; And some code that calls it: int _tmain( int argc, _TCHAR* argv[]) {   MyException x; // Construct   MyException y(x); // Copy constructor   MyException z;   z = x; // assignment ...Show All

  • Visual Studio 2008 (Pre-release) Terminating worker thread

    I've got an UserControl which loads images in the background. Since I want to avoid the overhead of new thread creation, I do not create new thread for every image which needs to be loaded, but instead I create one long-running thread which loads the images one by one. Left aside struggles with using BitmapImage in non-UI thread, I've got a problem with the thread termination. Thought Unloaded event handler is where the thread should be terminated, but it seems it might be never called (when app shuts down). The finalizer/destructor might also be never called, so I wonder what is the right place to terminate such user-control-owned long running threads in WPF model. Please advice. Thanks, Martin Thanks for ...Show All

  • .NET Development writing an advanced filestream class

    I am trying to create a stream that writes text to a file and: automatically creates a new file once the current file exceeds a certain size makes it possible to be used by multiple threads and/or processes so that multiple threads/processes can write to the same file (all threads use the same instance of the stream, processes use a different instance but still may point to the same file) Could you point me in the correct direction how this would ideally be implemented What class should I derive from How would I solve the problem of multiple threads acessing the same stream or multiple processes acess the same file Additional information that might be helpful: The stream will be used with TraceListener (passed ...Show All

  • Smart Device Development Exception when accessing ResourceManager object...

    Hi Guys! I need some urgent help.This whole ResourceManager malachie is a complete mystery to me. First of all. Belows code works 100%. I get all images out of that ResourceManager class that i need. However the things throws exceptions like mad. The Program does not crash or anything. I just get these really disturbing exceptions in the output window of Visual Studio 2005. --- private ResourceManager imageRes; private ImageList imageListClienticex; ... if (Utility.IsHighDPI()) { imageRes = new ResourceManager("MyNamespace.ResourceVGA", typeof(ResourceVGA).Assembly); imageList.ImageSize = new System.Drawing.Size(32, 32); } else { imageRes = new ResourceManager("My ...Show All

  • .NET Development Login failed

    I tried the following code Sub CreateDataAccessObjects( ByVal db As Database) ' Create relational datasource Dim ds As New RelationalDataSource( "THYROID" , "THYROID" ) ds.ConnectionString = " Integrated Security=SSPI; Provider=MSOLAP.3;Data Source=localhost;Initial Catalog=THYROID" db.DataSources.Add(ds) ' Create connection to datasource to extract schema to dataset Dim dset As New DataSet() Dim cn As New SqlConnection( " Integrated Security=SSPI; Data Source=localhost;Initial Catalog=" & CbDatabase.Text) ' Create the customers data adapter with the ' calculated column appended Dim daCustomers As New SqlDataAdapter( &quo ...Show All

  • Visual Studio Team System Can I not use Team Foundation Server for other IIS hosting?

    We installed TFS on a server. But now I want to host a totally separate website (virtual directory) on the same box. When I set it up, I can't browse to the content. Is this not allowed somehow in TFS Thanks, Ron Thanks Andreas, but I'm not seeing a particular link within that section to exclude my particular virtual directory from SharePoint. It shows the default virtual server and then the TFS virtual server but does not list any virtual directories under. Can you please tell me more specifically what I'm looking for Thanks again very much for the help. Ron Cook ...Show All

  • SQL Server Adjusting the priority of the replication process (SQL 2000)

    Hi, I need information on adjusting the priority of the replication thread(s) within SQL Server 2000. All I've been able to find is how-to's on adjusting the priority of the SQL Server process itself, as well as information on how to adjust the relative priority of changes made to the database by subscribers. Here's the situation, from time to time our replication system goes down, it starts itself up after waiting 5 minutes but this causes a problem. When its starting up it seems to be taking up far too many CPU cycles. As such the server is unable to process SQL queries, which forces its subscribers to time out. This is a bad thing as the subscribers are control systems on an assembly line. What I want to do is lower the priority o ...Show All

  • Visual Studio 2008 (Pre-release) SmartTag

    Hi all! Any idea how to implement something like SmartTag into your WPF application Thanks, Jan Well, in my application I want to have a drawing surface and for example, if the user draws a rectangle, I want to display my own smart tag near it, for example to... switch to round corners. I was afraid of drawing or animating not persistent graphics on the surface, but Mr. Goutsev suggested me on discussion group to use a control to do that, so...I will probably try it, but if you have any comments or ideas I would really welcome them. Thanks ...Show All

  • SQL Server Management Studio and Enterprise Manager on Same Machine?

    Greetings! Do any of you know whether or not it's possible to install Enterprise Manager onto a box with SQL Server 2005 installed I've come across a couple of problems when trying to admin some SQL 2000 servers, so I need EM somewhere. Also, it's incompatable with SQL Server 7.0, of course, and I've got two of them to admin as well. Thanks! I am running into the same problem, and have try downloading and installing SQL 2000 SP4, but the problem still persists. SQL 2000 SP4 has multiple files, can you tell me what you have downloaded and installed I applied SP4 to my own computer only and not to the data base server because the problem is happening after I installed SQL Server Management Stud ...Show All

  • Visual Studio Tools for Office Cannot attach VSTO Customization via Custom Properties when doc has "No Changes" Protection turned on

    The other day, I posted that I was having problems attaching VSTO Customizations via Custom properties. McLean Schofield correctly identified my issue, and I thought I was in the clear (see thread here http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=501788&SiteID=1 ) However, as my work progressed, I was still getting intermittent failures, even on examples that had worked just a few moments prior. After a little while, I realized that having Protection turned on and set to "No Changes (Read Only)" for your document will cause the VSTO Customization attachment process to fail when doing so via Custom Properties. In fact, you will see that it didn't even get around to converting the manifest's path to a GUID; the orig ...Show All

  • Visual Studio Tools for Office Problem finding comments in a Word bookmark range

    I am adding bookmarks and a comments to the same range, like this: object text = "foo"; object range = this.Application.Selection.Range; Word.Bookmark bookmark = this.Bookmarks.Add("_" + text, ref range); Word.Comment comment = this.Comments.Add(bookmark.Range, ref text); But, the following code yields zero comments: object id = "_foo"; Word.Bookmark bookmark = this.Bookmarks.get_Item(ref id); Word.Comments comments = bookmark.Range.Comments; However, if I increment the End property of the bookmark's Range: object id = "_foo"; Word.Bookmark bookmark = this.Bookmarks.get_Item(ref id); Word.Range range = bookmark.Range; range.End = range.End + 1; Word.Comments comments = range.Comments; ...Show All

©2008 Software Development Network