|
Hello,
I get this error when the program compiles, when the message box asks me to continue i can click yes and the program will still run. However, l would like to get rid of this error.
The only things l have done before l got this error was changing the startup object in the project properties and changing the Void main into another form. Thats all l think.
Could not open incremental build file 'C:\IBS LibrarySystem\LibrarySystem\obj\Debug\LibrarySystem.exe.incr' for writing
Hope someone can help me,
Steve
|
|
|
|
|
While all those changes should've touched the files so that they get rebuilt and re-linked correctly, that apparently hasn't happened.
Use Rebuild instead of Build and see if that sorts out the problem. That will clean (delete) the project targets and rebuild again.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Hi,
I am using Process.Start("file.pdf") to launch the default pdf reader and open a file. This works the majority of the time. However during deployment I came across a few computers where this does not work. It does absolutely nothing. The reader is not launched and the file is not opened. However, on those computers if they manually launch their reader and then run the above code the file gets opened.
Has anyone come across this problem before? Does anyone know what is happening?
It is not a problem with the reader not being associated with the pdf file format. I know this because when they double click a pdf file from explorer it opens just fine.
Thanks,
Karl
Karl Baum
|
|
|
|
|
And what exception handling do you have around Process.Start ? Are you just catching exceptions and not doing anything with the exception data (like displaying a user-friendly error, which is the least you should do)?
Process.Start - the way you're calling it - uses ShellExecuteEx , the same API that the Windows Shell uses when you double-click files. There's really no difference.
So then you should ask yourself what the other factors may be. Are you expecting that the current working directory will be the directory in which the EXE is located? This doesn't have to be the case. The working directory can be any directory.
So, if this was some sort of help file and you expected it to be in the same directory as your application, then you should construct the fully-qualified path using either the Assembly.Location property or Application.StartupPath like so:
string path = Path.GetDirectoryName(Application.StartupPath);
path = Path.Combine(path, "help.pdf");
Process.Start(path);
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Thanks for your response. I am dealing with exceptions and none are getting thrown. It is also not a problem with the path. I can be sure of this because if you already have your reader open then the code will open the pdf file in your reader.
Why would Process.Start behave differently when the reader is already open? This may not be a problem with my code, it may be a problem with the .NET framework, the windows API, or even Adobe's stuff. I am unable to find the cause.
Thanks
Karl
|
|
|
|
|
Some applications - like Office and Adobe Acrobat/Reader - register documents (file monikers) into the ROT (running object table) associated with the application. When a new document is opened, the file persistence handler (typically; this is actually implementation-specific, but is a fundamental technology in COM) checks for running objects and if it is found, activates it. Since the application is running, it doesn't need to be opened again. The new document is opened and registered in the ROT. If this was an existing document, it activates it.
It still shouldn't behave differently, however.
Perhaps try being more explicit, like so:
ProcessStartInfo psi = new ProcessStartInfo("file.pdf");
psi.UseShellExecute = true;
psi.Verb = "open";
Process.Start(psi); Depending on the operating system this could yield different results. On Win96 the verb "open" is always assumed where with NT its whatever the default is (which could be different than "open"). You can find this out by looking at the File Types tab in the Folder Options control panel.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Thanks for your help.
I will attempt this to see if it has any impact.
Karl
Karl
|
|
|
|
|
how can i to insert or paste d dynamic image (gif) into a richtextbox? not a bitmap etc.
|
|
|
|
|
|
I perform the select statement on the table TBRECEIPTS
I receive:
There are for fields in the TBRECEIPTS
RC_PAYMNB Number(10)
RC_CASHNB Number(8)
RC_DATE Varchar2(19)
RC_DATA Varchar2(2500)
Now I would like to perform with the information below an insert but I need help.
RC_PAYMNB RC_CASHNB RC_DATE
---------- ---------- -------------------
42884297 888888 10-10-2004
RC_DATA
-------
T S T T
IND.SQUARE/EDWARD ST
VAT REG# 100476
Bill Payment 2004/07/1 1.00
Account: 91013698-0000
Chantal Rigaud
A/c Balance: 2,534.33
TOTAL 1.00
TENDERED
Cash 1.00
TOTAL TENDERED 1.00
CHANGE 0.00
Payment No: 42884297 Cashier: 888888
18-Oct-2004 09:12
IF YOU NEED TO KNOW
HOW MUCH YOU OWE !
CALL 800-BILL (2455)
|
|
|
|
|
And this has what to do with C#?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
No Call To Be RUDE, I refuse to be spoken to like that! Would you like to be spoken to when you need help.Your mother didnt teach you manners did she, shame on her!
Dave Kreskowiak wrote:
And this has what to do with C#?
|
|
|
|
|
If you don't like it - and I'd certainly say the same thing - then don't post non-C#-related questions here. Do you ask your doctor about car troubles?
This forum is only for C#-related question and how to make the proper calls with the .NET BCL. No third-party library questions are accepted, and ASP.NET-related questions (whether written in C#, VB.NET, or any other managed language) should be sent to the ASP.NET forum (it's more specific).
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Wow. I'm not sure how to help you. There's a lot of information that you want to insert into a small table. Well the syntax for insert goes as follows:
INSERT INTO table_name(colname, colname, colname) VALUES (val, val, val...)
Try asking in SQL forum[^] next time.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
I am having a problem with the RCDATA the square box. It will not run.I will be sure to post this in sql next time. Sorry!
|
|
|
|
|
Hi, I would like to add .avi movie media to an windows forrm. I need to show that the aplication is deleting oor copy files to the user.
I want to use files in ...Microsoft Visual Studio .NET\Common7\Graphics\videos folder in my applications.
How can I do that? I need a control or another thingg?
Thank you!
Luis Ruiz
La realidad no es más que impulsos eléctricos del cerebro - Morpheus
|
|
|
|
|
The simplest way is to customize your toolbox in VS.NET to add the Windows Media Player. Then simply drag that to your form and set the variables.
If you're looking to play an AVI like for a copy dialog, it must have no audio and must not use a compression codec (like DivX or something, since AVI files can really use any codec) and you can encapsulate the Animation Windows Common Control. This requires quite a bit of work.
Surprisingly, it's the only Common Control that's not encapsulated in the .NET BCL. Most of those controls you typically use are just encapsulating the Windows Common Controls to present a consistent user interface (Java defines their controls from the ground-up, which is why - even with the loook-and-feel code - it never really matches the OS).
I've already written such a control but I'm not yet ready to share it. Just know that's its not an easy control to encapsulate and is quite a bit of work. If you're not familiar with the Window APIs, P/Invoke, and marshaling and need an animation control ASAP, just use the Windows Media Player. It's a quick, easy, and common approach for playing audio and video in a Windows Forms application.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
hi............
i`m a new comer to sockets,, i`m trying to develop a small server client chatting application,,, so if any one knows a link to any useful page or e-book.....that will be great
youssef
|
|
|
|
|
Google returns quite a few results for "sockets c# sample". Also search for TcpClient
By the way...
I'm not sure if its applicable in your case but you should give remoting a chance. It's a lot easier to implement IMHO.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
I'm writing a validator that will run in a batch build process.
I cannot find docs as to how to set the return code prior to termination of the application. Anyone know of such an article???
Thx.
There are 10 kinds of people in the world.
Those that read binary...
...and those who don't.
|
|
|
|
|
Either use Environment.Exit(int) or define your entry point with an int return type:
static int Main(string[] args)
{
if (args.Length != 1) return ERROR_INVALID_PARAMETER;
}
const int ERROR_INVALID_PARAMETER = 87;
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Thanks much, Heath.
Michael
There are 10 kinds of people in the world.
Those that read binary...
...and those who don't.
|
|
|
|
|
I have an array of bytes like :
<b0><00><01><b0><01><03><c0><00><b0><00><01><b0><01><03>
I would like to compare if one byte is in the array ( <c0>) an copy at the index of this byte selected to the end of the array
ex :
Select the <c0> and copy it to another array
<b0><00><01><b0><01><03><c0><00><b0><00><01><b0><01><03>
=> result : <c0><00><b0><00><01><b0><01><03>
Best Regards
youssef
|
|
|
|
|
Check the System.Buffer class.
It has a static copy method which you can use.
|
|
|
|
|
If you already have this in a byte[] array, too, you can use Array.Copy (inheritted by your byte[] thanks to hook-ups in the CLR) to pass the start index or even the index into the destination array at which you want to write the new array (the array elements must first exist). This is common throughout the .NET BCL for classes that deal with buffers like this.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|