PaTwo's Q&A profile
Visual FoxPro daylight saving time
does anyone know what commands to use to see if what time format your computer is on * buffer to receive TIME_ZONE_INFORMATION TZInfo = Space ( 172 ) Declare Integer GetTimeZoneInformation In kernel32 String @TZInfo liRetCode = GetTimeZoneInformation(@TZInfo) * Daylight savings time bias might be a negative value * stored in 2s complement * so subtract 2^32 if high bit is set liDaylightBias = str2num( Substr (TZInfo, 169 , 4 )) liDaylightBias = Iif ( Bittest (liDaylightBias, 31 ), ; liDaylightBias - 2 ^ 32 , liDaylightBias) lUsingDayLight = ( liDaylightBias # 0 ) Procedure str2num Lparameters m.tcStr Local ix, lnRetVal m.lnRetVal = 0 For ix = 1 To Len (m. ...Show All
Visual C++ Re-Use Old Macro DLL
Hi All, I have Macro DLL which I have been using in Visual C++ 6.0 can I re-use it in Visual C++ 2003 if yes, how Thanks in advance ...Show All
Visual Studio Express Editions Creating a windows service to run DOS commands
First off apologies if this is in the wrong forum. Any ideas on how I can do this. Is it possible even. I would prefer to imbed the DOS commands inside the C# rather than reading from a file. Hopefully someone has done something like this before and can offer advice. you can't really. instead you would need to create a batch file with the commands to execute, then run a process of that batch file. you could redirect the input/output and do it via that but can perhaps be a bit more tricky. http://msdn2.microsoft.com/en-us/library/system.diagnostics.processstartinfo.aspx ...Show All
Architecture SOA and Banks
Dear All. What do you think How much SOA is suitable Banking Application Is there any sample or presetation about it In real word, which bank has applied SOA in productiivity How much is extendable SOA Application in a Bank I mean if ISV sold his Bank Application based on SOA, and later Bank's developer may add new Service wtihout ISV's interaction. Thanks in advance. Teymur In the early days we hadn t SOA. It was dificult to centralize reference to data and there logic. We had to copy references and logic in the applications. With updates we also had to update all the applications With SOA we nowdays can centrelize services, which can be consumed by other applications. In this way it just uses the ...Show All
.NET Development How do I NOT use GAC?
I have an assembly loaded in the GAC. I want to reference a private (local) version of the assembly instead of using the one in the GAC; how do I accomplish this. (I'm using C#.) Thanks, dougzhoez Hi Dougzhoez, In the CodeBase tag in the app.config file specify the URL which points to your local bin. <codeBase version= " Assembly version " href= " URL of assembly " /> Hope this solves your query. Thanks ...Show All
Software Development for Windows Vista how to make the connector line at topmost z-index.
hi, all. i have a custom activity designer which derived FreeformDesigner. this activity is container activity which can contains child activity. when i will connected child activities which contained in respective two container activity. but the connector has not topmost z-index. the connector part in container bounds be hiden. i draw a simple diagram demo below. _______________ | containerA | &nb ...Show All
Visual C# Visual studio excluding files from configuration building
In native code (C++ projects) you can right click on a file select properties and select "Exclude from build" to exclude a file from a specific configuration build. So I can have a file built in the release configuration but not the debug configuration. Is there a way to do this in managed projects. All I see is build action in the properties window but this excudes the file from the project and not a specific configuration. What am I missing Thanks Hi, As far as my knowledge goes, to remove a file from a release version, we can only exclude a file from the project while build action is performed. Thank you, Bhanu. ...Show All
.NET Development Passing login information to remote windows file share
I have looked all over the net for information on how to do this and am still lost. I want to copy files from a remote server that has file sharing enabled, however the login information does not match the local domain. So when I try a File.Copy on the remote file I get a error unless I first launch iexplore to the URL of the site ( \\10.100.1.1 for instance) and then it will allow the user to manually authenticate and after that it works. Is there any way to automate this and pass the login info Since no one ever really gave me a answer, I'll answer it myself. The above method was the solution to getting logged into the remote server on a different domain. The problem with my call to mapnetworkdrive() wa ...Show All
SQL Server using query export to flat file
Hi i have a temp table i want to export the columns to flat file with delimeter eg : temp table Empid Empname Date_of_birth 1 Xyz 12/12/2000 2 Abc 01/11/1987 3 Adf 05/12//1982 Using T-Sql i want to insert into a flat file and the format for the flat file is like |1|;|Xyz|;|12/12/2000| |2|;|Abc|;|01/11/1987| |3|;|Adf|;|05/12/1982| please help me out this issue , thank in advanc Sunil This may be help full.. master..xp_cmdshell 'bcp "select * from master..sysobjects" queryout c:\exported.txt -S.MYSERVER -Usa -pmypassword -c -t "|;|" ...Show All
.NET Development Will assembly be functional after sending it with WCF?
My question extends from the second part of Zhisheng Huang's reply in this post: http://forums.microsoft.com/MSDN/showpost.aspx postid=1205641&siteid=1 I am trying to create a WCF service, that should enable the user to create his own plugins, install them on the server at runtime and make them available to the clients. So basically the server loads plugins that implements an IModule interface with Assembly.LoadFrom and creates instances with Activator.CreateInterface. These instances are then returned to clients. The modules implement 4 methods that I want to execute on the clients. But when the client tries to deserialize an actual module received, I get the following FileNotFoundException: "Could not load ...Show All
Visual Basic writing bytes to a file
I have a program which generates data which I want to write to a file so that I can access it later. How do I open a file to append data and later open it to acess the data In your solution, create a new Class Library project. Actually, I wrote this very article up in either vb language or vb general forum. It tells you how to make a dll from beginning to end. Do searches in those two fora for Reneec and DLL. It'll turn up. Good luck! ...Show All
Visual Studio Team System unused objects
Is there any way to list the objects that are no longer referenced anywhere in the database Many times it is useful to check where an object is referenced and it is used at all. Something like caller/callee graph. Thanks, Martin Kulov http://www.codeattest.com/blogs/martin OK since the beans have spilled :) Let me manage expectations; what we are adding is a simple dependecy viewer, this will allow you to walk the dependency chain up and down. This will however not show which objects in the target database are no longer used. We know the list of objects because if you select the build option "Generate DROP statements for objevts that are in the target database but that are not in the database projec ...Show All
SQL Server help in sql server 2000
i have sql server 2000 database in my office. i want to access that sql server in LAN how to access that database plz help me mail me on abhijitwakde@gmail.com Mr. Abhijit, plz tell us about you complete requirements, On LAN, what your server is , do you have client at the other end what is the version of SQL Server you are using & many more... Sorry no mail, no chat. Gurpreet S. Gill ...Show All
Visual C++ Adding a feature to CPP
Hello, I want to add a feature to CPP, which already have a realtive feature in CPP. It is similar to the Dtr. Every class have a default Dtr, the default Dtr calls all the Dtr of its sub members, but also you can write your own Dtr for each class specifically. What I want is to add a recursive method, called Recur. Every class will have a default Recur method which will simply call all the Recur methods of its sub members. It will be possible to write your own Recur method for each class specifically. However, I do not want Recur to be invokes when the class exits its scope like in Dtr. How do I do this Thanks in advance. It has a different purpose. If I knew how to ...Show All
SQL Server date parmeter converts into drop down
I am working in SSRS 2005. I have three parameters on the reports Parmeter 1 is Date filter which is drop down and values are MTD,QTD,YTD... 2nd and 3rd parameters are fromdate and todate which are datetime parameters. When user select let's say MTD from parameter1 then i have Stored procedure which populate the fromdate paramter with 1st date of the month and, todate populate the todays's date. The problem i am facing is the moment these date parameters get populated it converts into drop down. i want these date parameters should be still datetime so user can select the date. The value i am passing to these parameters are datetime type( Now() ) .Still the date parameters controls are showing as dropdown. I don't know how to hand ...Show All
