|
When you add a file to a source-controlled project, the file is in a checked-out state event though it hasn't been added to the VCS (like SourceSafe, CVS, etc.). When you check-in the file, it is added automatically. There's really no point in adding the file to a VCS when you just created it. If you created a file then promptly removed it, the VCS wouldn't even care since you made all these changes locally.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Interesting, that concept certainly makes a lot of sense, but I'm still missing something. We are using Perforce and I use Perforce to submit my changelists rather than .NET. When I do so, the new file I have "checked out" doesn't exist in the changelist so when I submit, it doesn't get added.
What do you suggest?
|
|
|
|
|
After you add it, check in your project (recursive check-in) or just the file itself. If you click the options button on the toolbar, you can select "Check-in but leave Checked-out" or something like that so that it is added but remains checked-out so you can edit it.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Okay, I'm going to start using VS.NET to check in my changes in the meantime.
The difference with Perforce that actually makes this a non-issue with VC6 is that when VC6 prompted you to add the new file to Source Control, it would add it to a your pending changelist. If you decide against adding the new file before submitting, you can simply revert the file from Source Control before you submit it and it will never show up.
SourceSafe was much more annoying because when you added the file to SourceControl, it was immediately added to SourceSafe, you would keep the file checked out, and if you later changed your mind you had to delete it.
Basically, it comes down to .NET not giving me the option to automatically add files to source control. But now that it's fixed for the SourceSafe case, it breaks Perforce's case . So either .NET needs to add the feature back or Perforce needs to add support for figuring out that a new file has been added and add it to the changelist prior to submission. Or both!
EDIT: Okay, this is bringing up a number of issues that remind me of the reasons why we use Perforce to submit rather than VS.NET.
- No support for multiple changelists
- Our solution doesn't have any of our data files (other than INI type files) -- effectively making gets useless.
- Also because of the previous point, I still need to check out files like EXEs that aren't in the solution before submitting.
- It doesn't automatically add the new files, I have to check them first.
- Probably lots of other things.
Do you see where I'm coming from now? I appreciate all your help. I guess I just want my check box back
|
|
|
|
|
I'm writing an .NET Windows Forms application in VB.NET for a customer and have to send mails thru their Lotus Notes (v5.11) mailing system.
I'm not allowed to use SMTP due their to security policy so I'm forced to somehow send mails directly to Lotus Notes.
Any ideas on how to accomplish this ?
Any 3. part controls I can use or sample code maybe ?
TIA
/Klaus
|
|
|
|
|
IIRC (I worked with Lotus Notes a long, long time ago), the Lotus Notes client has an ActiveX interface. If you install the client on a machine, you can send e-mails directly.
BTW, good luck (you'll need it): Lotus Notes is the most buggy piece of software I have worked with.
Perl combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript. -- Jamie Zawinski
|
|
|
|
|
I have created a dll file and 2 lib files using VC++6.0. I have a tester application which test the functions in these dll and lib files. Now I want to debug my project using vc7.0. I have the .NET framework 1.1 installed(I don't have the MDE). How can I compile the project from the command prompt(cl.exe)? Is there any article which gives me information on this.
I have seen the options given in MSDN. Can anyone give me some sample commands. I have tried certain options, but it gives me an error, undeclared, in Program Files\Visual Studio\vc98\Include\Utility.
Can anyone help me pls..
Thanks
Vini
|
|
|
|
|
If you created the project in VC6.0 then you don't need the .NET Framework as your application won't be using any of this framework. (Unless of course there is some detail that you've not mentioned that necessitates the presence of the .NET Framework)
You may find your answer if you post your question in the Visual C++ Forum.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
|
|
|
|
|
Thanks.. but the dlls and lib's I have created , I want to test it from a vc.net debugger. So, as the first step i wanted to execute the existing vc6.0 project in .net framework. Can anyone help me with the compiler options? How to link multiple lib files(system lib and user libs), during compilation.
Thanks...
Vini
|
|
|
|
|
Hi all,
Can any one show me how to write a method which can reset my PDA in VB.net?
Thanks a lot,
Mai Thoa
|
|
|
|
|
You need to use the KernelIoControl Windows CE API function from coredll.dll
<br />
[DllImport("coredll.dll")]<br />
private static extern void KernelIoControl( <br />
int dwIoControlCode, <br />
IntPtr lpInBuf, <br />
IntPtr nInBufSize, <br />
IntPtr lpOutBuf, <br />
int nOutBufSize, <br />
IntPtr lpBytesReturned <br />
);<br />
<br />
private static int METHOD_BUFFERED = 0;<br />
private static int FILE_ANY_ACCESS = 0<br />
private static int FILE_DEVICE_HAL = 0x101;<br />
<br />
private static int IOCTL_HAL_REBOOT= (0x10000 * FILE_DEVICE_HAL) | (0x4000 * FILE_ANY_ACCESS) | (0x4 * 15) | METHOD_BUFFERED;<br />
<br />
No call KernelIoControl like this:
KernelIoControl(IOCTL_HAL_REBOOT, IntPtr.Zero, 0, IntPtr.Zero, 0, IntPtr.Zero);
hope this helps
|
|
|
|
|
Hi,
I did it in VB.net following your suggestion
Thanks a lot
|
|
|
|
|
Hi all,
I have a webservice which put on a windows 2003 pc. If i use a window application to call web methods of my webservice, it does smoothly. But when i used a PDA (Pocket PC) or a Pocket PC emulator 2003 to call methods of my web service, i met the following error message
System.PlatformNotSupportedException.
If i put my web service on a windows xp PC , then everything goes smoothly. I don't understand why. My problem is that i have to install my webservice on a windows 2003 server machine.
Thanks a lot.
Mai Thoa
|
|
|
|
|
I am attempting to load some controls at runtime based on information from an XML file. However, I can't get the System.Type object created properly. Documentation alludes to the idea that the System.Type object can only represent simple/base data types. Does anyone out there know if this is correct or not?
Thanks
Dan Broomall
|
|
|
|
|
How are you getting the Type object. Some code might be helpful. There is a type for every class that you create.
If you are using Assembly.GetType(string) for exampe, make sure you use the fully qualified name for the type including namespaces.
My goal is to look at code like a chessmaster looks at a chessboard to see positions and possibilites beyond lines and characters.
|
|
|
|
|
if you have for example a type name string in a file for example
string typeName = "System.Security.Permissions.FileIOPermission";
you can do the following to get the type
Type permType = Type.GetType(typeName);
and then you can instanciate your type like so:
object permission = Activator.CreateInstance(permType);
|
|
|
|
|
What class is/are used to send and receive file( any files ) between client program and server program on TCP/IP?
Sample will be Good!
Thank you!
|
|
|
|
|
System.Net.Socket is a good place to start if you want to use TCP/IP.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
|
|
|
|
|
Can you give few line example? Thank you!
|
|
|
|
|
Anonymous wrote:
Can you give few line example?
It would be better if you got a book on the subject. C# Network Programming by Richard Blum[^] is quite a good book on the subject. (Although all the examples in the book are in C# it is really the .NET Framework that is the important part. So everything mentioned will work for C#, VB.NET, Fujitsu COBOL.NET or whatever).
You will probably find that there is a better way from the book. You haven't really mentioned what you are trying to do, other than sending a file via TCP/IP (which is a bit vague and doesn't take into account things like people having firewalls that block your connection. You may decide a better way is using a web service - which would send the file via HTTP and therefor pass through a firewall)
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
|
|
|
|
|
|
You can send files to and from a share in your network if you only need to stay within an intranet. I've done this with system.IO.
Is this what you're refering to?
|
|
|
|
|
Hi To one and all
I am a web developer, now i have got an oppurtunity to grow in design part, but i have problem,
Since this is the first time i am working in design side , can anybody let me know the good approach, what is the best way to learn...
|
|
|
|
|
Hi,
I would like to know the Administrator Rights are there are not for the current user.
My application gives the computer name etc., when the user runs on his machine, at the same time I would like to know whether the user have Administrator rights or not.
Can any one help me.
Thanks,
Sreepathi
Sreepathi
|
|
|
|
|
<br />
using System.Security.Principal;<br />
using System.Threading;<br />
<br />
...<br />
...<br />
...<br />
<br />
WindowsPrincipal winId = (WindowsPrincipal)Thread.CurrentPrincipal;<br />
bool isAdmin = winId.IsInRole(WindowsBuiltInRole.Administrator);<br />
bool isPowerUser = winId.IsInRole(WindowsBuiltInRole.PowerUser);<br />
|
|
|
|