|
Right click the error message and Show Error Help.
At the top of the help window you will see a message like:
Visual C# Reference: Errors and Warnings
Compiler Error CS1501
|
|
|
|
|
I am creating Custom Workflow Activities for our company. One of the main hurdles to this is in order to make the activities easy to use, I need to access to a database. This way, I can present the users with choices for correctly configuring the activities. I have not done a lot with creating UITypeEditors. VS will be initially be used for configuring the properties.
Does anybody have any recommendations/tips for how to go about doing this?
|
|
|
|
|
Hello all,
I'm working on a project written by someone else that links to an encryption library using interop. I'm getting about 50 warnings about types in that assembly that cannot be marshalled by the runtime marshaller and will be passed as a pointer, blah blah.
The fact is, the program is still running. I would like to ignore these specific warnings during the build so I can find any others that may pop up. Replacing the encryption component or changing its interaction with the program is not allowed at this time, so any help would be very useful.
Thanks,
Will
|
|
|
|
|
In the project properties under "Build" you can enter the numbers of warnings to suppress.
There's an edit box named "Suppress warnings:"
#pragma warning disable 1234 will also work
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I have a windows service called "XcontrolService" programmed in C#.
From a cmd - Batch, i'll start the installed service with net start XcontrolService.
In the OnStart-Method of service, i will do some jobs and on the end i
would like to return a own defined value to batch.
OnStart returns void!, and ServiceBase.ExitCode does not match %ERRORLEVEL% from batch.
Can you help me about this problem?
Thanks!
Kind Regards
Daniel
|
|
|
|
|
OK. I have an project and setup project for it. How can I add or create my own setup dialog in Setup User Interface pane? I want place on it controls like listbox, textbox, in different coordinates...
|
|
|
|
|
Hi:
I am trying to invoke a base class method, but I find I can only walk down 1 level of inheritance. Is there a way to go down more levels with some more explicit way of specifying which level I am interested?
eg.
public class a
{
protected virtual void Method1()
{
...
}
}
public class b: a
{
protected override void Method1()
{
...
}
}
public class c: b
{
protected override void Method1()
{
...
}
}
public class d: c
{
protected override void Method1()
{
...
}
protected void SomeMethod()
{
....
-- here I want to invoke Method1() of class b
base.Method1(); // this would invoke c.Method1()
}
}
Regards, smurfy
|
|
|
|
|
smurfy34 wrote: -- here I want to invoke Method1() of class b
base.Method1(); // this would invoke c.Method1()
That is correct. You call the imediate base, which calls the next base and so on. Skipping a class is not recommended and probably suggests that your design isn't quite right.
|
|
|
|
|
How can I disable JavaScript error messages in axWebBrowser?
|
|
|
|
|
|
I have a dll that is written in c++ and I want to send a char *. Pointer of array of chars.
So, I need a equivalent of:
char *path = new char[300];
some_function(path);
for C# application.
|
|
|
|
|
Hello
Send it as StringBuilder .
Regards
|
|
|
|
|
Can you provide some code sample for this?
I've tried, but no luck.
|
|
|
|
|
Hello
StringBuilder path = new StringBuilder();
some_function(path);
Regards
|
|
|
|
|
Iam sorry, but I haven't managed to solved this.
When I do as you said, I get an errors:
C:\Backup\Development\Current Projects\BlackBox\frmMainForm.cs(980): The best overloaded method match for 'bb.bbox_table_open(char*)' has some invalid arguments
Pointing at: bb.bbox_table_open(s);
And
C:\Backup\Development\Current Projects\BlackBox\frmMainForm.cs(980): Argument '1': cannot convert from 'System.Text.StringBuilder' to 'char*'
Pointing at: s in functions parameter. (s is StringBuilder s = new StringBuilder())
|
|
|
|
|
how do you import the unmanaged code in your C#?
Regards
|
|
|
|
|
Through DllImport.
[DllImport("bb.dll", CharSet=CharSet.Auto)]
[return: MarshalAs(UnmanagedType.SysUInt)]
unsafe public static extern uint bbox_table_open(char *archive_path);
|
|
|
|
|
Hello
Why do you declare it as unsafe? I belive your declaration should be this
[DllImport("bb.dll", CharSet=CharSet.Auto)]
[return: MarshalAs(UnmanagedType.SysUInt)]
public static extern uint bbox_table_open(StringBuilder archive_path);
Try it! Otherwise you'd have to make an unsafe bloock in your code and create tha char* inside it.
Regards
|
|
|
|
|
Now is good. Now it compiles and function now work.
Unsafe was becouse in prototype function (parameter) was char *, but now it makes sense.
Thank you.
-- modified at 7:43 Thursday 14th September, 2006
|
|
|
|
|
Hi. Does anyone know how to access the Windows system color by code? (The one set in the control panel)
[edit: ...Ok. I think it's SystemColors.AppWorkspace; But the MSDN was very, very ambiguous in their description. Sorry for wasting anyone's time]
-- modified at 12:05 Tuesday 12th September, 2006
|
|
|
|
|
The SystemColors class ?
-----------------------------------------
|
|
|
|
|
Sorry that my question was kind of non-descript. I'm trying to get access to the background color of an MDI parent. In the MSDN documentation for MDI, it states "be aware that the edge of the MDI parent form will pick up the system color (set in the Windows System control panel), rather than the back color you set using the Control.BackColor property." I want to know where Visual Studio gets access to this color and how I pick it.
|
|
|
|
|
Hi,
I have a process that batch prints reports to the default printer on a client
machine.
However some reports are longer than others so it would be useful to know
when the printing of each reports is complete (at least in the eyes of the driver/spooler...)
Is there a way using C# where I can check the state of the current job therefore
delaying the printing of the next item?
It would also help with delaying printing when the printer has run out of paper etc...
Thanks in advance.
Andrew
|
|
|
|
|
Hi everyone !!
I am using nUnit to test my production code. I came to know that nCover will pinpoint the code that has not been tested yet.
How to use it in VS.net...
Can any one give me a quick start...thanks
ihtesham
|
|
|
|
|
If I want to add an item to the windows explorer right-click menu for my C# WinApp. How do I do?
_____________________________
...and justice for all
APe
|
|
|
|