Fiddel's Q&A profile
Visual Studio Express Editions DirectX managed code samples for Visual C++ Express 2005 programmers
It is now just a week or so, that I had painstakingly downloaded the DirectX SDK for February 2007. I happily installed it hoping that it would atleast have some (if not all) managed (.NET Framework using code) code samples for Visual C++ 2005 Express Edition. The SDK had samples for C++ but using APIs and the rest of the samples in managed code but in C#. I have always viewed API programming for hardcore low-level programmers able to reinvent the wheel. I knew that if I used APIs I would just give up on the first sample. In addition, to that handling all the memory allocation and release is a tedious and ugly job. By the way, what was the use of using Visual C++ 2005 Express Edition if I used APIs for programming So I had t ...Show All
Visual C# Get selected text form MS Office Word
hi everyone, i want get selected text from ms office word. i use Ms AA 2 component but i dont get any thing . please give me solution. Hi, I guess you want to paste something from word to somewhere else in program. If I've misunderstood you, pls let me know. If so, reference to clipBoard in .NET Framework: http://msdn2.microsoft.com/en-us/library/c2thcsx4(VS.80).aspx Thanks ...Show All
Windows Live Developer Forums Connecting to messenger from php
Hi, does anyone know how to use the messenger proxys I need a very tiny code, just to: Connect with own adress and password, see contacts, write to contacts, get incoming messages. Can anyone maybe make a very simple script to do that (not any graphical elements etc., only the "raw" code). The only thing i can give, is a banner on my page to your page. Feel free to contact me with questions at: Email: kontakt !!at!! reanimation !!dot!! dk Msn: msn !!at!! reanimation !!dot!! dk *only serious questions and comments, all other will be deleted* Thanks, Best Regards, Elias Sorensen Programmer and Graphic artist Unfortunatly, this is not allowed. I don't know what you want to do, but you can archiev ...Show All
Visual C++ how to add header(.h) file in resource file (.rc)
hi, I am getting below error when I compile an resource project in VC++ 2003. error RC2104 : undefined keyword or key name: E_CANTCREATELIST when I rearch about this keyword, I found its definition in one of the header file. please let me know how to add this header file information in above resource file to avoid above error. Reagrds Shiv rudra_shiv wrote: [...]please let me know how to add this header file information in above resource file to avoid above error.[...] If you right-click on your .RC file in Resource View window, you will see the Resource Includes command, and then Read-only include directives field. I think this is the right place for custom #include directives. ...Show All
Visual C# code snippets
From what I've read, C#'s static modifier should work just like Java. So, I created a utilities class which has a public static method to do some things. The utilities class is declared within the same namespace as my form class (just in a separate file), but if I attempt to access the method in the utilities class from the form class, the compiler complains that the name of the utility method or the class (if I attempt to use the FQN of the method) does not exist in the current context. If I attempt to add a "using MyNamespace.Utilities" statement at the top (which I fully expect to be redundant) the compiler also complains that the "Utilities" type or name does not exist in "MyNamespace". Any suggestions are most welcome! According to wr ...Show All
SQL Server How do I break a sql column in to three? please help!!!!!
I have a column look like this Name ---------------------- John^Smith^P^^^^ Peter^Johnson^M^^^^ Joe^Tedone^^^ I want to break this column in to three as follow FirstName LastName Middle ----------------- ----------------- ------------- John Smith P Peter Johnson M Joe Tedon '^' is the delimiter, how can I do this some one please help me out, thanks a million Please take a look at the link below for few generic solutions: http://www.sommarskog.se/arrays-in-sql.html You can use one of those for example to split the value. ...Show All
Visual Basic How to Hide a DataGrid Column
Hi, I am currently building a VB.NET windows form application. I am using a DataGrid with a DataView as DataSource. The DataView has 5 columns so the DataGird does too. But I want to Hide the Columns 0, 1 and 4. Can't figure out how, does any one have an idea I also want to allow the user to select a row in the datagrid but I dont want to allow the data modificatin , how can I do that Thanks for helping Me . DataGridView1 . Columns (0). Visible = False ...Show All
Windows Forms Setup and Deployment Project FAQ
Deployment FAQ Q: I am now getting the following error when I build: " Unable to update the dependencies of the project. The dependencies for the object ' name.dll ' cannot be determined" A: Workaround : Try to adjust the order of the Projects in the Solution and leave the Database project to the end. We can either edit the Solution (*.sln) file with notepad OR remove and add the Database Project back in the solution. (This also isn’t a great work-around as the addition of a project later in the development cycle will cause the corruption to re-appear). HotFix :Contact PSS and ask for the Hotfix for KBB917036: http://support.microsoft.com/default.aspx scid=kb%3Ben-us%3B917036 Q: Is it p ...Show All
.NET Development I don't have initializeData attribute for the <add> element
Hi, I use vs 2005. I try to add a listener to the listeners collection in the web.config(or app.config) file . I try this example from vs help : <configuration> <system.diagnostics> <trace autoflush="true" indentsize="0"> <listeners> <add name="myListener" type="System.Diagnostics. TextWriterTraceListener , system version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" initializeData ="c:\myListener.log" /> </listeners> </trace> & ...Show All
Audio and Video Development Adding iHD Definitions to VS 2005
I decided to make the switch from Eclipse to VS 2005. I'm new to VS 2005 and am wondering if anyone could give me the steps to get 'iHD' intellisense configured. I imagine it is just a matter of pointing to the xsds http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=652683&SiteID=1 ...Show All
Windows Forms Bitmap Images
Hi there! I am making images out of data arrays, and then displaying them in a form inside a picture box. The thing is, the display seems to be interpolating between pixel values in order to smooth out the image, to make it look better I guess. But I actually want a purely pixelated image, so that each pixel looks like a square block of a single colour (gray scale actually). I havent been able to find any setting or methods in the bitmap class to change the interpolation method, so if anyone can help me out that'd be great! Thanks a lot Joe When you look at your image im Picture manager etc are you just looking at the image really close or are you zooming in Different programs handle zooming in differe ...Show All
Windows Forms how to make valdation to my input data
my application should have full validation on data... but I do not know how to make validations ... for example ... the name should be no more than 50 chars .. date should be yyyymmdd gender should be 4 chars or 6 chars ( male or female ) and so on ... hot o make validation on text numbers dates help me or give me a source to learn but before that I hope to write me exaples here thanks in advance Hi one thing you could do is the following: in your objects implement a custom validation interface bool isValid() then in the isValid method if (myString.Length > 50) {return false;} etc. so then you can call your object IsValid method to see if it's valid : ...Show All
Software Development for Windows Vista TC13
Hi, How to determine whether the application is using a Non-Self-Containing Bootstrapper or Chainer to install the application Thanks in advance Thanks, Vasu An example of a non self containing boot strapper would be a setup.exe file that sets some parameters up and then starts up an msi that is external to the setup.exe to begin the installation. ...Show All
Software Development for Windows Vista ICertConfig->->GetConfig(CC_FIRSTCONFIG, &bstrConfig) fails in windows Vista but successful in windows xp
Hi, I am trying to enumerate my exising CAs on local network by using ICertConfig->GetConfig(CC_FIRSTCONFIG, &bstrConfig); - Fails but my call to ICertConfig->->Reset(0, &nCount); Retuns nCount=0; Which in Windows XP code returns me 1 as i have one local CA server configured on my loacl network. Can anybody tell me why is this behaviour in windows Vista even though i am logged in as an administrator in windows Vista. Regards, Gennie ...Show All
Software Development for Windows Vista Any one with ASP.NET Example
hi guys i am in urgent need of sample showing Workflows initaling and integrated in ASP.NET 2.0 , i happen to read article in MSDN i think DON ESPITO , its focus on basics and issues . Can any one point good source on asp.net 2.0 and WF integration. a complete sample of ASP.NET integration with Workflow: http://wf.netfx3.com/files/folders/control_flow/entry4354.aspx ...Show All
