|
You must install the .NET Framework on the machine first, before you can install your app.
There are a bunch of articles here on CP that deal with installing the .NET Framework with your application. Look at these[^] search results.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have installed the managed directx sdk version 9. I have written an application in vb.net that displays some very basic artificial life forms that move in flocks around the screen using Microsoft.DirectX.DirectDraw. I am successfully drawing to both surfaces (Microsoft.DirectX.DirectDraw.Surface) and calling the Surface.Flip method to put the buffer surface's content onto the main surface (Surface.Flip makes the surface memory associated with the BackBuffer surface become associated with the front-buffer surface). What I can't manage to do is keep the back surface's content without it dissapearing i.e. I want to carry on overlaying what I am drawing onto it with each flip. I know why it is lost - when a flip is carried out the pixels are blitted to the main surface. I need some way of maintaining it on the back surface. Does anybody know how to do this?
Jim
|
|
|
|
|
To adapt your engine to this, after the flip, you'd have to copy the image on the surface that's displayed to the back page surface.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for your reply.
I did try doing that using the Surface.Draw method. This "copies" the contents of one surface to another. However it defeats the object of what I am trying to do because it merely performs the same bit block transfer that the Flip method does i.e. transfers not copies. The main problem I have is finding a way to copy the contents of a surface, retain it and draw it back onto a surface.
Jim
|
|
|
|
|
Then I don't get what the problem is. In all the code examples I've seen for DX, I've actually had to clear the drawing surface myself before I started drawing the new frame. If I didn't, then I'd se trails of everything. I guess I don't understand the effect your looking for?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Doh, I have made a schoolboy error in my code and I have been clearing the render surface. Thanks for your answer it did point me in the right direction!
Jim
|
|
|
|
|
please any one can help me........
i m deleteting a file using fso.DeleteFile(Filename) where fso is a file system object and filename contains the path and the file name.then file is in network ...its...i m getting error "Exception From HRESULT:0x800a0046 (CTL_E_Permission denied)" can any body tell me how do slove the error...
payal sheth
|
|
|
|
|
Easy. Get the appropriate rights to delete the file. That's the error that was returned. You, or the account that your app is running under, does not have sufficient rights to the file your trying to delete.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
I created a website using VB.Net that needs the userId value from the textbox from an existing ASP website. The old ASP website didn't declare the userId varible as a session varible.
How do I use request command to read the userID into my webform?
Any help would be helpful. Thanks!
|
|
|
|
|
This question really belongs in the ASP.NET Forum, regardless of the language it's written in.
But, if I understand this right, you want one ASP.NET web page to read the values stored in a textbox in another ASP.NET site page that is in an entirely different site (or application)?
If that's true, then you can't. There is no way for the server to query the client machine for what's in one of its textboxes. Once ASP builds the HTML and sends it to the client, all traces of it are lost forever. The ASP page has hidden fields in it that maintain the state of the page and are sent back to the server on every page request, thus telling the application on the server what the values of all the control on the page are. Once the processing on that request is finished, that hidden field is updated with the values that are going to be put into the page and then the page is sent to the client and destroyed on the server.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
can some 1 plz send me a cyber cafe management system in vb.net code? the system include the server client connection and client computer remote control function, can some 1 plz plz help me on this? thnkz a lot ~"~ my email is yinghong81@yahoo.com
|
|
|
|
|
I see you have a Yahoo address, use it! Search Results for Cyber Cafe Management[^]
This kind of software is not free and noone is going to send it to you...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to save an image located on the clipboard to an IMAGE field in SQLServer without having to save to disk first.
When I run the code listed under CASE1 everything works file.
When I run the code listed under CASE2 I get a "invalid parameter used" error.
Windows does not recognize this as an image file when the stream is saved to file after retrieving from the database.
Does anybody have a solution why the FileStream works and the MemoryStream doesn't?
Tim
Dim oImgObj As Image = oDataObject.GetData(DataFormats.Bitmap, True)
'CASE1
oImgObj.Save("c:\Test.bmp", Imaging.ImageFormat.Bmp)
Dim fs As New FileStream("c:\Test.bmp", FileMode.OpenOrCreate, FileAccess.Read)
Dim bImageFile(fs.Length - 1) As Byte
fs.Read(bImageFile, 0, fs.Length)
fs.Close()
'CASE2
Dim ms As New MemoryStream
oImgObj.Save(ms, Imaging.ImageFormat.Bmp)
Dim bImageMemory(ms.Length - 1) As Byte
ms.Read(bImageMemory, 0, ms.Length)
ms.Close()
|
|
|
|
|
I'm a newbie to vb.net (and c# for that matter) but I've been tasked with writing a config app for an educational tool. The app should have a sophisticated gui for configuring hierarchical lists of commands, e.g in the form a of a tree structure. I'll probably need DB access and eventually have to talk to some kind of bluetooth device. I've got pretty extensive experience with visual c++, but that was a few years ago.
My simple question is: what are the main considerations when deciding between coding in vb versus C#? In other words, what are the main limitations/advantages in using vb relative to c#?
thanks
ckk
|
|
|
|
|
They are basically the same. If you come from the C++ background C# may be easier for you, though.
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|
In the world of .NET, where all the managed languages compile down to just about the exact same IL, there is no difference. Well, there are some things that C# can do that VB can't and a few that VB can that C# can't, but those are language differences. There are really no differences when it comes down to what kind of app you can and cannot code in either language. This minor "gap" will become much smaller in with the forthcoming release of VS.NET 2005 and the .NET Framework 2.0.
It's really a matter of personal preference...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am writing a custom grid, inherited from datagrid. I use data-binding to populate grid from an ArrayList.
When I click the column header, I am capturing the click and sorting the arraylist and re assign the data source to populate grid with sorted data.
My problem is, I do not get the sort arrow in the column header. How can get this?
Thanks in advance.
- TOJO
|
|
|
|
|
There is no icon that is drawn for you automatically when sorting. You can't do it in a DataGrid. Although in a ListView controls Details view, you can. You have to draw it yourself using owner drawn header controls. There are a couple of articles here on CP (though searching for them is nearly impossible right now.) I've seen this done and have done it myself in ListView controls, but never a DataGrid. This will be possible to do in the next release of VS.NET 2005 and the .NET Framework 2.0.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Well, if I set the allow sorting property to true and click on the header column to sort, the datagrid shows the up/down arrow by default. This works fine if my data source is a DataTable. Problem comes when I use an ArrayList as the data source. Any more thoughts on this?
TOJO
|
|
|
|
|
No. I never used an array as a source for a DataGrid.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hello,
i am using a checkbox in a template column in datagrid.
The problem is that when i wan to get its value, i.e. checked is true of false.
after postback : it always give me, checked, if it is chchked by default.
and
false always, when it's not checked.
don't know y is this so ?
it's standalone, i.e. not linked with any database field.
plz help me in this.
here is the code sample:
if (e.CommandName == "Delete")
{
String Result = "";
foreach(DataGridItem dataGridItem in DataGrid1.Items)
{
//Get Checked property of Checkbox control
bool IsGraduate = ((CheckBox)dataGridItem.FindControl("CheckBox1")).Checked;
if (IsGraduate)
{
Result += "Is Graduate , ";
}
else
{
Result += "Is not Graduate , ";
}
Label1.Text = Result;
}
}
Looking for help.
what am i missing ?
Asim
Regards,
Asim
|
|
|
|
|
ASP.NET questions are better handled in the ASP.NET Forum, regardless of the language the code is written in.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am working on the office Com Addin.
Is there any way to get print preview and convert to jpeg file?
Shin
|
|
|
|
|
I wrote a small program for work, that contains a timer, and a clock. The idea of this program, was to control the work bells. I hard coded the times for the bell to ring and attached a control for the printer (LPT1) port. My problem is that over the course of the day, the timer funtion seems to fail. By this i mean that what should be a timer for 10000 works fine at the start of the day, but by the time it makes it to the 5th pre-programmed time, the timer seems to act like it was programmed for 1000000. Any ideas on how to fix this.
|
|
|
|
|
There are no issues with the timer controls with a problem like this.
Are you using VB6 or VB.NET?
If VB.NET, how is your app written? As a Service or Windows Forms app?
Are you using the Windows.Forms.Timer or System.Timer?
How is your code setting up and using the Timer? Code snippets help alot!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|