|
rwestgraham wrote:
C++ is still the best choice if you have issues like hardware control and other low level functions
I have to access to serial and parallel port, so I think VB .Net has full access to this. In the near future I'm planning to access via sockets so I think it either won't be a problem in dot net.
What about using VC++ mixing managed and unmanaged code? Is it a solution to make the classical VC++ coder having their mouths closed or it's, and it'll be, a good option?
I know that these questions are difficult to answer because they depends on microsoft plans ... I just want to know your impressions.
Thanks,
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Hello everybody. One small question:
How can i make a console window not to be visible and hide it from Task manager. I am trying to make a program that it's not visible to the users and since app.Taskvisible is not supported in vb.net, i need to create a console application to bypass this.
Thank you.
Still trying to find the way
|
|
|
|
|
You may want to consider making the program a service.
|
|
|
|
|
KaptinKrunch, I forgot to mention that i have the Standard version of VB.NET and it doesn't make programs as services. I am tinkering with an Application Console, but i can't hide it from the Task Manager. I have heard that you can do that. But how??????
Thank you though for your input.
Still trying to find the way
|
|
|
|
|
Can some guide me?
Actually I want to convert a Java Class into the .Net DLL.
What should I do for this?
|
|
|
|
|
Well, your best bet is definately C# and not VB, because C# looks a lot more like Java. Create a dll, then start porting the code, line by line.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
What is wrong with this code?
<br />
Structure PP<br />
<br />
Public Name As String<br />
Public Archive As Boolean<br />
<br />
End Structure<br />
<br />
Public Sub Inst()<br />
<br />
Dim AddPP As New PP<br />
With AddPP<br />
.Name = txtPPName.Text<br />
.Archive = True<br />
End With<br />
<br />
cmd = "INSERT INTO Pub_Points (PPName,Archive) VALUES ('" + AddPP.Name + "'," + AddPP.Archive + ")"<br />
<br />
End Sub<br />
It chokes with 'System.FormatException: Input string was not in a correct format.'
This is my current kluge:
cmd = "INSERT INTO Pub_Points (PPName,Archive) VALUES ('" + AddPP.Name + "'," " + CInt(AddPP.Archive).ToString + ")"<br />
But what is the point in defining a property as boolean if I have to convert it back to string to use it?
________________________________________________________________________
Dave
Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-- modified at 17:20 Tuesday 6th September, 2005
|
|
|
|
|
DaveC426913 wrote:
But what is the point in defining a property as boolean if I have to convert it back to string to use it?
You do have to convert it into a string, it's a string because it's part of cmd, which is a string. VB is doing this for you implicitly in the first instance. What does cmd look like in the debugger in the first instance ? What's the type of the Archive column in the database ? If you go into Query Analyser, what changes do you need to make to the string in cmd in the first instance, for it to work ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
"You do have to convert it into a string, it's a string because it's part of cmd, which is a string."
Did you mean *I do* or *I do not* have to?
"What does cmd look like in the debugger in the first instance ?"
It doesn't. It chokes trying to parse that line of code. This isn't a db problem, it's a VB problem.
"What's the type of the Archive column in the database ?"
Sorry, it is bit.
"If you go into Query Analyser, what changes do you need to make to the string in cmd in the first instance, for it to work?"
Well, I have to change T/F to 1/0, which is what I'm doing.
Which brings me back to my question: why am I bothering to Dimension it as boolean?
A thought: Should my structure have a get/set that automatically converts between T/F and 0/1?
________________________________________________________________________
Dave
Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-- modified at 9:13 Wednesday 7th September, 2005
|
|
|
|
|
DaveC426913 wrote:
Did you mean *I do* or *I do not* have to?
You *do*. the variable cmd is a string. Therefore, you have to turn whatever you pass through into a string, to make it part of the string command.
DaveC426913 wrote:
It doesn't. It chokes trying to parse that line of code. This isn't a db problem, it's a VB problem.
OK, in that case, VB isn't magically turning your boolean into a string, call it's .ToString method to get what you need.
DaveC426913 wrote:
Well, I have to change T/F to 1/0, which is what I'm doing.
Query Analyzer needs a 1 or 0, not true or false ? In that case, does VB support ? : notation ? As in myBool ? 1 : 0, returns 1 if myBool is true, otherwise returns false ?
DaveC426913 wrote:
A thought: Should my structure have a get/set that automatically converts between T/F and 0/1?
I'd try to do it inline. Or, if you used stored procedures, you can pass them a bool as a parameter, and the SP will turn it into what is needed. That's what I do, which is why I wasn't sure if SQL Server accepts true/false as bit values.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Is there a function in .NET web stuff that will test a string for script attacks. For example, it tests for javascript code and html in the string the user entered in a first name blank
Thanks,
Tom
|
|
|
|
|
No there isn't. Also, if a user types that kind of code into a textbox and you directly use that value in your code, there's no way that the contents of that TextBox can be executed. So it's a moot point to begin with.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks you for the information - I thought there was but I must have been wrong
|
|
|
|
|
There are Validation controls, but they don't check for any attacks.
What you may be thinking of is the SqlParameter and OledbParameter objects that do SQL Injection attack checking before they pass any data to an SQL Stored Procedure.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Well, maybe is not as hard as I think, but I was wondering if it was possible to call mozilla mail from VB.NET to create a new message with an attachment...
Thanks a lot for reading
|
|
|
|
|
Hi Guys,
I Really Really need help, i got this big project at work that is creating an application for video analisys in sports, so the thing is that i need draw over video while this is running, i got to be able to free draw or draw shapes into it, i been able to do the draw part with no problem, but i'm having a really hard time doing the overlay over the video, i had it working, but it flicks too much , and also flicks when drawing another object, anyways the question is , does anyone have links to something that can help me?? i been looking trough forums, websites, etc. and find msgs but not solutions.
Thanks.
Alex.
|
|
|
|
|
How are you playing the video ? I believe if you use DirectShow, you can impliment filters, which could concievably use the DX framework to draw over the video.
Here[^] is a C++ article - you're calling COM objects, so the end result is the same ( that is, it's not hard to port ). However, Direct Show is VERY limited in the managed DX version, and very buggy. You should use COM interop to call the full DirectShow and avoid the crap they put into Managed DX.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
What are the minimum properties to set and code required to get a repeater or datalist ('lookless' controls) to show up? I follow the examples in the book as best I can, considering I'm using a different database, but they still show up invisible.
________________________________________________________________________
Dave
Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
|
|
|
|
|
I think I am going nuts over this .NET thing.
As far as I can tell, the MSDN documentation is just wrong. There is no such thing as a listbox.refresh method, nor is there such a thing as a listbox.multicolumns property, as just two examples. The docs say there is, but VS.NET gives me a compile error.
I have this wretched,sinking feeling that my confusion lies in the difference between ASP.NET programming and Visual Basic.NET programming.
Is it possible that listobx behaves two completely different ways in each? Is it possible that MSDN doesn't bother to clarify the language context of its instructions? Is it possible that not being able to filter results for one vs. the other (VB.NET vs. ASP.NET) in searches is an awful idea?
I am very frustrated.
________________________________________________________________________
Dave
Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
|
|
|
|
|
DaveC426913 wrote:
Is it possible that listobx behaves two completely different ways in each
Yes, they do behave differently. The Windows.Forms version supports a .Refresh() method, where the WebForms version doesn't. The .Refresh method just redrwas the control and it's contents in Windows Form. This can't be done on a browser version. The browser version is just a wrapper for an INPUT tag in HTML.
ListBox[^] control in ASP.NET, or WebForms.
ListBox[^] control in Windows Forms.
If you scroll up the navigation pane on the left, you'll see which namespace these controls are under. System.Windows.Forms contains all the standard Windows Forms controls, while all the standard ASP.NET, or WebForms, controls are under System.Web.UI.WebControls .
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Arg. OK, I'm giving up on all the OledbConnect and SQLConnect examples, and sticking with ADO.
________________________________________________________________________
Dave
Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
|
|
|
|
|
OleDbConnect and SqlConnect aren't part of the .NET Base Class Library or ADO.NET. Where did these come from?
And, they don't have anything to do with your original post, so I'm afraid I'm lost.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
"OleDbConnect and SqlConnect aren't part of the .NET Base Class Library or ADO.NET. Where did these come from?"
They are controls available to me it VS.NET when I am designing ASP.NET or VB.NET apps, and used in the tutorials and samples I'm reading in these ASP.NET and VB.NET books and at MSDN.
I'm sure if I read the books and MSDN website page by page, it will explain the difference. I guess I can't just presume that prior VB and ASP knowledge would have saved me from this confusion.
________________________________________________________________________
Dave
Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
|
|
|
|
|
OleDbConnection and SqlConnection are objects, but not OleDbConnect or SqlConnect.
I never use the database controls in the ToolBox. I always code my database stuff by hand. It gives greater control and you don't have to worry about code being generated that you can't see without going into the "Windows Form Designed generated code" region. Do it by hand and everything is in one place.
ADO.NET is strickley for database access. ASP.NET is a server-side HTML generation technology.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Forgive me if this is turning into a .NET tutorial, but it is very helpful to me...
So, does that mean all your code is on the .ASP page, not in the codebehind page? Is there *anything* on the codebehind page?
I confess I am confused about the relationship between the ASP page and the codebehind page in terms of what exists on each. I tried mapping one to the other, but some parts are there and some aren't. Is it possible to code ASP.NET pages without any need for a codebehind page?
________________________________________________________________________
Dave
Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
|
|
|
|
|