dDude's Q&A profile
Visual C++ Need help with a program...
Hey everybody. I've written this program and cannot figure out why it won't work. Here are my requirements... A teacher wants a program which will test students’ memory of the values of small integers squared. She asks for a program which prompts the students for an integer. It then asks them for that number’s square. If their answer is correct they are congratulated if it is incorrect the correct value is given. Because she wants the class to practice with this she asks that the program continue to prompt the students until they enter the integer: 0. The program will then thank the student and terminate. INPUT: ...Show All
Visual Studio How to get the information of any file checked out by a user longer than a certain date
Hi there, Again its me. I wondering, can we get the information of: "Any file checked out by a user longer than a certain date" What i mean regarding the statement is, i would like to know what file has been checked out more than a certain date. Example, any file that check out more than 3 days, Thanks. Hi, You can use VSS automation and write your own program to retrieve this kind of information. See IVSS documentation at: http://msdn.microsoft.com/library/en-us/dnvss/html/msdn_vssole.asp http://msdn.microsoft.com/library/en-us/dnvss/html/vssauto.asp http://msdn2.microsoft.com/en-us/library/kdxsa91h(en-US,VS.80).aspx VSS comman ...Show All
SQL Server Retrieving url parameters
I have a 2 reports - Product Master and Product Details. I have the ProductID parameter being passed properly from the Master via the URL to the Details Report, but the Details report doesn't seem to be picking up the paramater from the URL and keeps prompting for the ProductID. What settings should I be configuring in my Details report to say - "Get the parameter from the URL" I've tried multiple configs within the Report Parameters dialog box but I seem to be missing something... In the first report, on the navigation tab for the textbox: Choose the Report action, choose a rep ...Show All
Visual C# Using CDOEX
Hello, I need to access an exchange mailbox and retrieve all the messages from it, with their attributes. I've tried doing this using ADODB and CDO, but both have some flaws. People referred me to using CDOEX. I was wondering whether anybody here has some documentation on the use of CDOEX or some example code that shows how to do something simillar to the mentioned above. Thanks, Catalin. Hello Catalin, I just wondering wether you found any usefull information on the subject If so it'd be great if you could share the links! I'm having a similar problem at the moment as I'm tryin ...Show All
Visual C++ Can VS2005 export makefile
I used to be able to export makefile from VC++ 6.0. Not any more from VS2005. So, is this feature removed from VS2005 and why Thanks, This feature was removed either in VS.net or VS.et 2003. It was because the makefiles generated didn't always work. I think this could be down to the difference in format between the dsw/dsp and the sln/vcproj files. ...Show All
SQL Server Where is the old Enterprise Manager :(
Why is this new version of SQL Manager so difficult to use Tasks I was able to do in one step, now I have to do in several steps: 1) Genrate Drop Scripts for tables, views, stored procedures 2) Generate Create Scripts for tables, views, stored procedures 3) Import data to the server I used to be able to do all this in Enterprise Manager in one DTS package . Which I could automate to synchronize data beteween two databases. Is there some other/new way I am not aware of Another problem is when I open remote hosting server, it shows me hundreads of databases, I used to be able to see only my database in Enterprise Manager. I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. IndexBuffer leaking Memory
If I create an IndexBuffer like 1) the memory consumption increases dramatically after some device reset's caused by window resizing. Even if the indexbuffer is not recreated after the reset this strange thing happens. If I create the indexbuffer the second way, everything works fine. Even if I put 1) in the CreateDevice function of one of the D3D SDK examples the error arises. Thanks for hints or suggestions about what's going wrong. 1) IndexBuffer buffer = new IndexBuffer(device, 16384, Usage.Dynamic | Usage.WriteOnly, Pool.Default, false ); 2) IndexBuffer buffer = new IndexBuffer( typeof ( int ), 4096, device, ...Show All
Visual Basic An Efficient Way to Check String Variables?
I have a program that needs to check through strings and retrieve contents from them. The strings are formatted like so: ex: dim string1 as string = "5467,5829 keyword" Now, what I need to do is to check to see if input from a textbox matches the text in place of "keyword", and if it does, to then extract the pixel coordinates at the beginning of that particular string to then be converted into integers. So, I was looking for an efficient way to check thorugh the strings 1 by 1, so that I don't have to write an 'if - then' statement for every single string. Unfortunately, I haven't had any luck doing this, and so ...Show All
SQL Server SVG in report?
I'd like to create a report which contains SVG vector data. Right now, I have an ASP.NET application which displays this data in an EMBED block of the web page, and it requires Adobe's SVG Viewer plugin to be installed. Is it possible to display SVG in a report There is no native support for SVG in Reporting Services at this point. With the CustomReportItem extensibility in RS 2005, third parties could implement a CustomReportItem control for RS 2005 that is capable of drawing SVG into a static image. -- Robert ...Show All
Game Technologies: DirectX, XNA, XACT, etc. No texture coordinates for Mesh.Sphere, box etc?
I am trying to use a mesh from Mesh.Sphere, but odly enough I can not make it generate texture coordinates. Sure, I could calculate them myself, but can it really be true that I have to do that My vertices in the mesh is always PositionNormal No you can't But see http://msdn.microsoft.com/coding4fun/zman/default.aspx for samples on how to do it (for managed code) ...Show All
SQL Server The AcquireConnection method call failed with error code 0xC0202009.
I have a SQL Server Agent job with a step to execute an SSIS package. The package has as one of it's connection managers the Connection Manager For Excel Files. When I run the job it fails every time. I have implemented logging and in the OnError event it states "The AcquireConnection method call to the connection manager "LOBMappingExcel" failed with error code 0xC0202009". Note that if I execute this package via dtexecui or dtexec it runs successfully. Only when I have the SQL server Agent Job run the package does this occur. What am I missing Hello Euan, The accou ...Show All
Visual Studio Team System Load test for pre defined Number of Iterations
Is it possible to configure a load test to perform a particular number of iterations ACT used to have this functionality but I can't seem to see it in the load test configuration wizard. Not sure you can as of right now but the workaround you can do is create yourself X amount of Ordered Test and put them all inside One single Ordered Test. This way it'll work, unless one of the test fails inside your first Ordered Test. For example: First Create yourself an Ordered Test called OrderedTest1 then place the tests you want to execute inside that Ordered Test. Secondly, create yourself a se ...Show All
Visual C++ mfc : loading a jpeg - 2 questions
hi . i have a simple question . i am loading a bmp into my mfc application, using the following piece of code : CPaintDC dc( this ); CPen PenGreen; PenGreen.CreatePen(PS_SOLID, 2, RGB(0, 255, 0)); dc.SelectObject(&PenGreen); CRect Recto; // Retrive the size of the drawing area GetClientRect(&Recto); CDC dcMem; dcMem.CreateCompatibleDC(&dc); CBitmap bitmap; BOOL tempboo1 = bitmap.LoadBitmap(IDB_BITMAP1); CBitmap* pOldBitmap = dcMem.SelectObject(&bitmap); BITMAP bmp; bitmap.GetBitmap(&bmp); int nWidth = bmp.bmWidth; int nHeight = bmp.bmHeight; int x = (Recto.Width() / 2) - (nWidth / 2); int y = (Recto.Hei ...Show All
Visual Studio Tools for Office Office Document Customization in not available Excel 2003
I get the above message when I tried to launch my excel 2003 project, that was built in .net. I am not sure how it happened; I had made some code changes during the day. I checked it into Source Safe to update my project. Then when I tried to check it back out it gave me the about message. I had not deleted anything form the project. Help... I don’t want to have to re-create my project, my excel sheets have too may named ranges on them to have to do over again…I have tried to undo check out form source safe and that isn't working... Hi Alisa, Do you get this error when you run the project ...Show All
Visual Basic XmlWriter: what's wrong with this code? VB.NET 2005 beta 2
Hi, I am not sure what's going on here, but when I look at the content of Buffer in the last line I find that the first three bytes represent invalid characters &HEF, &HBB, &HBF, the forth one finally is the first character of the xml document &H3C wich represents "<". Is this a bug or is it my stupidity Dim xmlW As XmlWriter = XmlWriter.Create( "C:\test.xml" ) xmlW.WriteComment( "Test Comment" ) xmlW.Close() Dim testFile As New FileStream( "C:\test.xml" , FileMode.Open) Dim Buffer(testFile.Length - 1) As Byte Dim count As Integer = testFile.Read(Buffer, 0, Buffer.Length) Please help! Meini ...Show All
