|
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
|
|
|
|
|
Hello
You mean shell??
Here, take a look at this article[^].
Regards
|
|
|
|
|
I have the need to output text to a file in which when its printed on a pre-printed form, the values in the outputted text file will match up with the boxes on the form. Like an automated typewriter of sorts. I'm doing this so far with the System.IO namespace. The issue i'm having is the space between carrage returns. I'm using a char[] and creating 5000 ' ' char in it and ever 80 chars i'm putting a '\n' char. Then using that to insert at a specific point in that char[] so when it prints its on the specified line and distance from L to R. But on a carrage return, there is a default gap, that gap is throwing off some of the lines. Does anyone know how to correct this, or have a better way of achieving this?
Think of it as a Doctor form that is preprinted blank... and I need to access data from a database and write it to a text file in such a way that when the text file is printed on this preprinted template... the outcome is matched up like you did it on a type writer. Make sense?
Thanks in Advance,
Scott
|
|
|
|
|
Hi
i want to know memory function in c#
just like
we use in vc++ are
memcpy();
memcmp();
memset();
what we call in c#
|
|
|
|
|
System.Buffer
|
|
|
|
|
I am using Multi-Column ListBox Control in my project and now i am facing a problem whenever i click on scroll bar side i am getting an exception -Cross-thread operation not valid: Control 'McListBox1' accessed from a thread other than the thread it was created on. i am not in a position to handle that exception , please help me in this regards.
REFRERENCE:
http://www.codeproject.com/vb/net/mclb.asp
|
|
|
|
|
If you are dynamically creating the control in your code, please check what thread that code is executing on. If it is not executing on the main thread of the application you might get these types of errors. Try doing the adding within a BeginInvoke or Invoke. That might resolve the issue.
--------------------------------------------------
|
|
|
|
|
Hello eveyone,
I wonder if I can make a webservice work via a desktop application in which this webservice manipulates a web application (for example change a label) ?
Lets me explain in detail. I want to click a button on my destop application (which is currently viewing a web application) and this will make a webservice start to work. This webservice -then- will change a label on the web applications.
Thanks for your helps and best regards.
.:: Something is Wrong ::.
|
|
|
|
|
Hi
I have a problem. I need your help.
In my Program, have file: app.Config
In file app.Config, I wrote.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="strConn" value="Data source = (local);Integrated Security =SSPI;Initial Catalog = Northwind">
</add>
</appSettings>
</configuration>
<
Now, I want change content in "value". New value put in from textbox.after it will update to file app.Config
|
|
|
|