|
Depending on how your projects are written, you can't just "merge" the two together. You'll most likely have to copy the files into one of the projects and modify them to use a common namespace.
The only other way to do it would be to add the two projects in question to the same Solution. Either way, you'll have to modify the code to work.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Please help. I'm writing a small app that needs to capture individual frames of video from a video file to a picture control.
What's the easiest way to do this in VB?
Any help would be greatly appreciated. Thanks. Thanks, and thanks again.
"Go to, I’ll no more on’t; it hath made me mad." - Hamlet
|
|
|
|
|
Hey, kevnar, great question. Since nobody else answered you I went ahead and found the answer myself after many hours of searching. You'll find the answer to your question here:
http://www.shrinkwrapvb.com/avihelp/avihlp_3.htm[^]
I hope this helps. I just wanted to extend this kindness to a fellow member in the CP community. Have a great day.
"Go to, I’ll no more on’t; it hath made me mad." - Hamlet
|
|
|
|
|
Hi,
I had created a desktop Client-Server application using VB.NET.
I want to create the setup file for it, so that I can use the setup to install in othe PC or computer.
I am using Setup Project given with VS.NET. (File-New-Project-Setup and deployment Projects-Setup project)
by this way I am able to package application.
but I'm facing the problem when Installing the created setup in other PC.
I'm getting the Error as "Client must be installed first with .NET Framework"
how to solve this problem
pls help me out in getting the solution.
Thanx and Regards,
Tthangaraj P.V.
tthangarajpv@yahoo.com
|
|
|
|
|
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
|
|
|
|