Jean-Philippe Pagé's Q&A profile
Visual C++ problem in retrieving "Time" from database using _RecordsetPtr
Here i am developing a application which require to fetch Time from database . But i am getting 00:00:00 AM as a time everytime. We are using MySql database. Code fragment is.... ======================================================== _variant_t vtValue; vtValue = RsSession->Fields->GetItem("StartTime")->GetValue(); COleDateTime d( vtValue ); sprintf( name, "%02d:%02d:%02d",d.GetHour(),d.GetMinute(),d.GetSecond() ); ======================================================== in "name" i am getting "00:00:00" ..everytime.. All the other values i am retrieving from ResultSetPtr are OK. Can any one tell me what is to be done ther .... Thanks in advance Using the debugg ...Show All
SQL Server MSOLAP.DLL Version Numbers
I have been trying to install some third party software that checks for pre-requisite software in my computer. The third party software is returning the following diagnostic result (saying I do not heve the correct version of PTS). Microsoft PivotTable Service 2000 Required: OLAP Server 8 .0.986.0 Currently: OLAP Server 8.0.760.0 Status: Error It is my understanding that "PTS" is MSOLAP.DLL. I have Analysis Server 2000 SP3 installed and all appears OK. According to other posts in this group, the correct version of msolap.dll (pivot table services) for SP3 and SP3A is 8.0.760.0. My version of msolap.dll currently installed is 8.0.2039.0, which I believe to be the SP4 version of PTS The third party software is searching for a ...Show All
Visual Studio Team System Build failing - write permission problem.
Hi folks, i'm trying to set up my team build but the out of the box setup isn't working to well :( the following error is .. Solution: ProjectX.sln, Project: Web Site, Compilation errors and warnings ASPNETCOMPILER(0,0): error ASPRUNTIME: The current identity (DOMAIN\tfsservice) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'. Solution: ProjectX Deployment.wdproj, Project: Web Site, Compilation errors and warnings ASPNETCOMPILER(0,0): error ASPRUNTIME: The current identity (DOMAIN\tfsservice) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'. Edit: I found some hints -> " If you change the se ...Show All
SQL Server Create an index in a PDF file
Hi!! I have a report that is exported to a PDF file... Is possible to get an index in the beginning of the file I have the page number at the bottom of each page but i would need an index... Thx in advance!! Hi Sergio, Do you mean a document map Check out this link: http://msdn2.microsoft.com/en-us/library/ms156383.aspx ...Show All
.NET Development Simulating hardware faults
Hey, I'm trying to do a project where I'd like to simulate 'hardware faults' that occur during the execution of functions from the base class library. Basically, during the execution of a method, I'd like to flip a bit in the memory that the method is using. I've been looking around and have found nothing on how I might be able to do this in the base class libraries because I don't have access to their source code like I do for my own methods. Anyone have any ideas Thanks, Michael It's not that hard. Just starting a .NET program is enough to generate several hundreds of page faults. It just happens that there is code around that puts a pretty little bow on top of that fault, doing the &q ...Show All
Software Development for Windows Vista Force workflow to complete
I've 3 activities in a sequential workflow, and I've added some coding in completed event. In the 2nd acticity, I want to force the workflow to complete based on some conditions, so it can skip 3rd activity and jump to the end of the workflow, and run the coding in completed event. Is it possible to do this ! In a sequential workflow you need to either use a TerminateActivity to finish the worklow in an abnormal way, use a ThrowActivity and catch it in the workflow fault handler or use the WorkflowChanges object to remove the last step from the workflow. Depending on your situation the WorkflowChanges is probably the best way to go. Of course there is also the option of using an IsElseActivity around your ...Show All
SQL Server Backup Software
Hi We are getting ready to rollout a new system in the next few months and I have started to look at backup and recovery strategies for SQL Server 2005 on which this new system will be housed. The proposal is to by Veritas Backup Exec with the server this system will be housed on however my knowledge is "limited" to the backup and restore options available directly from SQL. I have been unable to find any opinion on using third party software to backup and restore SQL Server 2005 databases. Can anyone help to give me an objective opinion on this subject. Should I simply use SQL Server and the tools it ships with or do these third-party applications make it easier Many thanks in advance of your help Cheers Danny ...Show All
Visual Studio Express Editions .vbproj file wont hold subType value
Hi all I think there might be something wrong with my .vbproj file I have added in a new form for testing. Here I can see that QueryForm does not get the <subType>Form</subType> so I add it and then reopen my project it sets it back to the original: <Compile Include="Form1.Designer.vb"> <DependentUpon>Form1.vb</DependentUpon> </Compile> <Compile Include="Form1.vb"> <SubType>Form</SubType> </Compile> <Compile Include="QueryForm.Designer.vb"> <DependentUpon>QueryForm.vb</DependentUpon> </Compile> <Compile Include="QueryForm.vb"> </Compile> So after I add the subType and reopen VS no change to the QueryForm i ...Show All
Visual Basic Please Help me in converting VB6 DataGrid usage to VB2005 DataGridView.
Hi, I am a newbie VB6 programmer looking for assistance in converting the following code into VB2005 code. No matter what I seem to do I cannot get an equivalent that will run using VB2005. I have to stay with the existing file format due to legacy issues. I would like to read and write randomly as shown. I'm also confused on how to get the data into the VB2005 DataGridView. Any help would be greatly appreciated. Thanks PaulZ --- A snippet of my VB6 code ---- Private Type DiskFileLayout dAccount As Integer dActivity As String * 10 dCurrency As Integer dDate As Date dTotal As Currency dContainers As Double dPrice As Currency dCommission As Currency dNote As String * 33 ...Show All
Visual Studio Team System New TFS VersionTree addin
All, I just wanted to let people know that a new TFS version tree addin for Visual Studio is available from the wesite below http://www.cupithome.com/foundationtree/home.html Please feel free to download and try it out. Jem Jem, If I were you, I would create separate version (call it Beta or Trial) to save all the hassle, and then if and when someone wishes to purchase it, would supply signed version download. I have seen that approach working fine with tools like PL/SQL Developer. Product keys just end up being distributed over the newsgroups... Just trying to be helpful... Regards, Eugene ...Show All
Game Technologies: DirectX, XNA, XACT, etc. BasicEffect, adding a texture and redering it.
I'm trying to add a texture to a cube using the built-in BasicEffect class. Can't seem to get the BasicEffect technique to render the texture. How does one set the BasicEffect technique to allow rendering the texture Here is the cube set-up: public static VertexPositionNormalTexture[] MakeCube() { VertexPositionNormalTexture[] nonIndexedCube = new VertexPositionNormalTexture[36]; Vector3 topLeftFront = new Vector3(-0.5f, 0.5f, 0.5f); Vector3 bottomLeftFront = new Vector3(-0.5f, -0.5f, 0.5f); Vector3 topRightFront = new Vector3(0.5f, 0.5f, 0.5f); Vector3 bottomRightFront = new Vector3(0.5f, -0.5f, 0.5f); Vector3 topLeftBack = new Vector3(-0.5f, 0.5f, -0.5f); Vector3 topRightBack = new Vect ...Show All
Visual C++ Extremely memory efficient file sort?
Hello, We need a C function to sort files that are up to 10,000 rows long with 100 bytes per row (1MB), but only have 10KB of memory available to do so (this is an old 16 bit application ... we have over 500K lines of 16 bit code, so upgrading to 32 bit is not an option right now). At most, we can store about 90 of the 10,000 rows in memory at any one time, and the routine needs to be reasonably fast. Previously we had used a very small footprint database to do the sort, but recently had to scrap it since it maxed out at 16KB of memory and our newest upgrade reduced the space available for sorting to 10KB. Any thoughts on the best way to accomplish this Maybe the following articles and samples can help you: ...Show All
Visual Studio Team System Build freezing?
I have run a build a few times now, and it is freezing. I am running a custom installshield task that I have wrote. I have to build about 12 merge modules using the ISSABld.exe, it gets through about 6 of them and then while building it freezes. Does anyone know why this happens Thanks. Jonny_B wrote: So it seems like this is all it printed out while the process was running...seems like it just quit processing. Did you happen to check the Event Log I'm wondering if there's anything there to narrow down the problem. Whenever I see a truncated build log like you are showing, I start to think that the MSBuild process crashed. There should be something in the Event log if this is the ca ...Show All
.NET Development C# REMOTING CANNEL ERROR
ok, well i'd like to thank you for the help with my security issues, worked fine. now i have run into another issue... heres the pose this happens when i once again try to send a msg from the server to the client: System.Runtime.Remoting.RemotingException was unhandled Message="This remoting proxy has no channel sink which means either the server has no registered server channels that are listening, or this application has no suitable client channel to talk to the server." Source="mscorlib" StackTrace: at System.Runtime.Remoting.Proxies.RemotingProxy.InternalInvoke(IMethodCallMessage reqMcmMsg, Boolean useDispatchMessage, Int32 callType) at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(IMessage reqMsg) ...Show All
.NET Development adding Window Media Player into IE Toolbar
Hello: I am facing a problem in adding a Window Media Player Control into IE ToolBar. I found a project written in C# on Code Project site that can add a text into IE toolBar. But I can't add the window Media Player into IE. The Project I found constitutes of 2 projects BandOjLib and SampleBars window Application C sharp where the development is happening in it. So what you do in SampleBars project will be embedded into BandObj Project after compilation and start without debugging both BandObj and SampleBars respectively. When I am adding the Window Media Player into TOOLBOX, then to drag it into window Form => it gives me this error: Assembly generation failed -- Referenced assembly 'AxInterop.WMPLib' does not hav ...Show All
