Digital Realm Society CEO's Q&A profile
Visual C++ How to do copying files?
Hi, I am writing an MFC program that can copy files (let's say: *.chm) from one directory to another by using API. Any idea Thanks. vcboy Hello vcboy, You can check out Boost.filesystem library which provide many operations on files and directories. file:///D:/Downloaded/3D%20Programming%20Related/c++Libs/boost_1_33_1/libs/filesystem/doc/operations.htm#copy_file Good luck. ...Show All
Windows Forms Property-Collection problem
Hi, For be fast i show the code i used for the collection of items i want to use as a property, here the code: Imports System.ComponentModel Public Class CustomControl1 Inherits System.Windows.Forms.UserControl Public Class MyCollection &nb ...Show All
Visual C# Creating a hidden directory & file!
Hi, Can anyone please tell me how to create a directory and a file as hidden using C#. It would be great if you could provide me with the code. Thanks & Regards, Frenz This is a two step process for each item: Create the item, update its attributes. public void CreateDirectory ( string name, bool hidden ) { if (!Directory.Exists(name)) { //Doesn't create any parent directories that might be missin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MC2 Editor
I can not see the MC2 Editor being part of the XNA project. When I build/rebuild MC2 the editor files are not updated. What do I do wrong or How can I make changes and updates to the MC2 editor Correct, the editor project is not part of the XNA build projects because Visual C++ Express cannot build them as they require MFC. If you have Visual Studio Standard or Professional you can build the projec ...Show All
.NET Development Plz help ...........
How to get using System.IO.Ports I have in VS2003 using System.IO.IsolatedStorage thats alllll............ how to get access to serial port ............. plz help Hi, The SerialPort control is a new addition in v2.0 and is not available in earlier version of the .NET Framework. For the earlier versions - here are some good links: 1. http://www.devhood.com/tutorial ...Show All
Visual C++ Linker issue LNK2019
Hi, I am trying to do a class template for matrices. Everything compiles well but when I try to use it in another project I have a small issue. Source for the matrix class: class Matrix { public: //Generic functions short int Rows(); //Returns the numbers of rows short int Cols(); //Returns the numbers of columns Matrix ...Show All
SQL Server reseeding temporary tables or table data types with identity column
Hi, I have a indexing problem. I have a sequence that needs to has a index number. I want to use a table data type and have a working sample BUT I cannot reseed the table when needed. How do I do this. This works only for the first ExitCoilID then I need to RESEED. Here is my code: DECLARE @EntryCoilCnt AS INT , @ExitCoilID AS INT , @SubtractedFromEntyCoilCnt AS INT DECLARE @ExitCoilID_NotProcessed ...Show All
Visual C++ why this doesn't work?
void show( short * p, int r, int c) { int i; int j; printf("\n"); for (i=0; i<r; i++) { for (j=0; j<c; j++) { printf(" %d",p[r] ); } printf("\n"); } } this programme is to show the array content Even p[r] seams strange to me, shouldn't it be p Because p is a pointer to short, so p[r] gets a short and you can not use the indexer again on this value. If p is a pointer to the field ...Show All
.NET Development [C#][Remoting]
Hello, I'm developping a client/server application. This is the code that connects the client to the server. TcpChannel channel = new TcpChannel(); ChannelServices.RegisterChannel(channel, true); this.CDD.remoteOperation = (RemotingInterfaces.IRemoteOperation)Activator.GetObject( typeof(RemotingInterfaces.IRemoteOperation) ...Show All
SQL Server What are the current best practices for standardizing report layout and appearance?
I am accustomed to the Actuate enterprise reporting system in which it is very easy to define reusable page formats that standardize things like page layout, margins, logo placement, page header and footer formatting, etc. You just drag and drop a page layout from your component library to inherit from it, and ensure that all your reports have the same consistent format. What if any features and tools are there to accomplish this in 2005 Reporti ...Show All
Software Development for Windows Vista Qury Regarding Long Running Workflows ....
Hi to all Well i know that WF had a capability to handle long running workflows , now here are couple of points i want to ask , please provide the detail answer 1) Very simply how you guys handle following scenario , you have workflow running and Machine got resarted/ reboot I mean is the workflow starts next time with previous state / Activity or gona crash as in non destermenistic state 2) hmm what are mimium steps to ac ...Show All
SQL Server default parameter values not updated
For testing purposes, I had placed default values in my report parameters. I deployed the whole suite of reports once and tested them. Then I eliminated the default parameters and redeployed, but the server doesn't pick up the changes. Other changes are updated fine, but for some reason it's hanging on to my default parameter values Why Is there a way around this Using RS 2000 Beta 2, btw. I came across the same thing in Reporting Service ...Show All
Windows Forms farsi label
Hi guys, Iam trying to use a label control in my winforms. When I assign(thru the form designer) a farsi word or any arabic word it becomes reversed(xyz --> zyx). If I assign the value in run time it has no problem. The same problem exists in button control also. Some body please tell me how to overcome this problem. Note: Righttoleft will only align the text to right side will not solve my problem. regards, Siva ...Show All
SQL Server proper way to drop publication?
Hi There According to BOL, the correct procedure for deleting a publication are as follows: These must be run on the publication database. Execute sp_dropsubscription to delete all snapshot subscriptions. Execute sp_droppublication to delete the publication and all of its articles. My only issue is after step 1 the subscription still exists at the subscriber and it marked as failed (does not exist), i always have to go delete the subsc ...Show All
Visual Studio access project files through automation
I have a custom macro that reads a file using the code Dim file As ProjectItem file = DTE.Solution.FindProjectItem( "myfile" ) file.Open() If file.IsOpen Then This works fine when there is only one "myfile" in a solution. What I am really looking for is to open the current "myfile" in the currently selected project. The documentation has me going around in circles. Can anyone point me in the ...Show All
